From 4a2a4e1dd69c6bc9690fb9b3754319b2f79f871e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=99=88=E7=8B=BC?= <2468023037@qq.com> Date: Mon, 17 Feb 2025 23:27:45 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E6=96=B0=E5=A2=9E?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/controller/api/UserbankController.php | 2 -- app/controller/api/WithdrawController.php | 16 ++++++++-------- 2 files changed, 8 insertions(+), 10 deletions(-) diff --git a/app/controller/api/UserbankController.php b/app/controller/api/UserbankController.php index bafce9d..63f59db 100644 --- a/app/controller/api/UserbankController.php +++ b/app/controller/api/UserbankController.php @@ -60,8 +60,6 @@ class UserbankController 'remark' => $remark, ]); }else{ - var_dump(22); - Userbank::create([ 'user_id' => $user_id, 'account' => $account, diff --git a/app/controller/api/WithdrawController.php b/app/controller/api/WithdrawController.php index 0a99059..85435da 100644 --- a/app/controller/api/WithdrawController.php +++ b/app/controller/api/WithdrawController.php @@ -144,19 +144,19 @@ class WithdrawController $res = Payment::pushMoney($amount,$bank_username,$account,$bank_name); var_dump($res); if ($res['Success'] == 200) { - $userbank = Userbank::where('id',$id)->first(); - $userbank->status = 2; - $userbank->status_text = '已到账'; - $userbank->save(); + $Withdraw = Withdraw::where('id',$id)->first(); + $Withdraw->status = 2; + $Withdraw->status_text = '已到账'; + $Withdraw->save(); return ApiResponseApp::success(null,'转账成功'); }else{ return ApiResponseApp::error(null,'转账失败'); } }else{ - $userbank = Userbank::where('id',$id)->first(); - $userbank->status = 3; - $userbank->status_text = '已驳回'; - $userbank->save(); + $Withdraw = Withdraw::where('id',$id)->first(); + $Withdraw->status = 3; + $Withdraw->status_text = '已驳回'; + $Withdraw->save(); $rate = ExchangeRate::where('type','BDT')->get(); //计算积分 $money = $amount*100/$rate[0]['points']+300;