线上bug修改
This commit is contained in:
@@ -150,7 +150,7 @@ class PerformPerSecond
|
||||
public function withdraw_order_status(){
|
||||
//一个月内的数据
|
||||
$time = time() - 7 * 86400;
|
||||
$withdrawal = db::name('vs_user_withdrawal')->where(['deal_type'=>2,'status'=>['in',[4,5]]])->where(['submit_yun_time'=>['>=',$time]])->select();
|
||||
$withdrawal = db::name('vs_user_withdrawal')->where(['deal_type'=>2,'status'=>['in',[4,5]],'refund_time'=>0])->where(['submit_yun_time'=>['>=',$time]])->select();
|
||||
echo "提现云账号订单状态查询条数(".count($withdrawal)."):\n";
|
||||
foreach ($withdrawal as $key => $value) {
|
||||
if($value['status'] == 5){
|
||||
@@ -172,7 +172,7 @@ class PerformPerSecond
|
||||
continue;
|
||||
}
|
||||
}
|
||||
db::name('vs_user_withdrawal')->where('order_sn',$value['order_sn'])->update([
|
||||
$up_result = db::name('vs_user_withdrawal')->where('order_sn',$value['order_sn'])->update([
|
||||
'status' => 6,
|
||||
'pay_time' => time(),
|
||||
'pay_message' => $result['data']['msg'],
|
||||
@@ -181,6 +181,12 @@ class PerformPerSecond
|
||||
// 'personal_tax_rate' => $result['personal_tax_rate'] ?? 0,
|
||||
'received_tax_amount' => $result['data']['received_tax_amount'] ?? 0,
|
||||
]);
|
||||
if($up_result){
|
||||
//扣除冻结金额
|
||||
$diamond_to_rmb_ratio = get_system_config_value('diamond_to_rmb_ratio');
|
||||
$money = $value['money'] * $diamond_to_rmb_ratio; //提现金额转换 人民币转为钻石
|
||||
$result = db::name('user_wallet')->where('user_id', $value['user_id'])->setDec('frozen_earnings', $money);
|
||||
}
|
||||
}else{
|
||||
db::name('vs_user_withdrawal')->where('order_sn',$value['order_sn'])->update([
|
||||
'status' => 5,
|
||||
|
||||
Reference in New Issue
Block a user