diff --git a/app/controller/api/WithdrawController.php b/app/controller/api/WithdrawController.php index add4e49..9ab514d 100644 --- a/app/controller/api/WithdrawController.php +++ b/app/controller/api/WithdrawController.php @@ -124,6 +124,8 @@ class WithdrawController ]); //大于1000等待管理员审核 if ($money >= 100000) { + //用户积分减少$money + UserRewardDao::base($user_id, 1, - ($money_no + 300), '提现'); return ApiResponseApp::success(null, '等待管理员审核'); } //用户积分减少$money @@ -165,7 +167,7 @@ class WithdrawController $orderId = $callbackData['TrackingNumber'] ?? null; $failedMessage = $callbackData['FailedMessage'] ?? null; $amount = $callbackData['Amount'] ?? null; - + $withdraw = Withdraw::where('order_number', $orderId)->first(); //$failedMessage为null就是成功 if ($failedMessage != null) { @@ -176,7 +178,7 @@ class WithdrawController 'status' => 5, 'status_text' => '支付失败: ' . $failedMessage, ]); - }else{ + } else { $withdraw->update([ 'status' => 2, 'status_text' => '已到账',