This commit is contained in:
“wanyongkang”
2021-04-23 18:37:43 +08:00
parent aa7c5aac49
commit 31535fcd71

View File

@@ -30,7 +30,7 @@ class CashOutIndex extends Controller
$data['real_name'] = $post['real_name'];
$user = new UserModel;
$user_rest = $user->getOne(['id'=>$data['userid']],'RestAmount')['RestAmount'];
$rest = $user_rest - $post['cash_out_money'];
$rest = $user_rest - abs($post['cash_out_money']);
if($data['money']<=0){
die;