优化:钱包表更换。
This commit is contained in:
@@ -181,12 +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);
|
||||
}
|
||||
// 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