From d88062b4f6247d5abe2d4055e40508cf14c6a25d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=99=88=E7=8B=BC?= <2468023037@qq.com> Date: Sat, 22 Feb 2025 23:32:37 +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/admin/api/v1/WithdrawController.php | 3 +++ app/controller/api/WithdrawController.php | 1 + 2 files changed, 4 insertions(+) diff --git a/app/controller/admin/api/v1/WithdrawController.php b/app/controller/admin/api/v1/WithdrawController.php index ed5d5ac..cabb448 100644 --- a/app/controller/admin/api/v1/WithdrawController.php +++ b/app/controller/admin/api/v1/WithdrawController.php @@ -102,6 +102,7 @@ class WithdrawController $Withdraw = Withdraw::where('id', $id)->first(); $Withdraw->status = 5; $Withdraw->status_text = '支付失败:用户银行信息存在问题'; + $Withdraw->order_number = $res->TrackingNumber ?? null; $Withdraw->save(); UserRewardDao::base($user_id, 1, $money, '提现失败返还'); return ApiResponse::error(null, '用户银行信息存在问题'); @@ -109,12 +110,14 @@ class WithdrawController $Withdraw = Withdraw::where('id', $id)->first(); $Withdraw->status = 2; $Withdraw->status_text = '已到账'; + $Withdraw->order_number = $res->TrackingNumber ?? null; $Withdraw->save(); return ApiResponse::success(200, null, '操作成功'); } else { $Withdraw = Withdraw::where('id', $id)->first(); $Withdraw->status = 5; $Withdraw->status_text = '支付失败:用户银行信息存在问题'; + $Withdraw->order_number = $res->TrackingNumber ?? null; $Withdraw->save(); UserRewardDao::base($user_id, 1, $money, '提现失败返还'); return ApiResponse::error(200, null, '用户银行信息存在问题'); diff --git a/app/controller/api/WithdrawController.php b/app/controller/api/WithdrawController.php index 9ab514d..22144d7 100644 --- a/app/controller/api/WithdrawController.php +++ b/app/controller/api/WithdrawController.php @@ -110,6 +110,7 @@ class WithdrawController return ApiResponseApp::error(null, '每天只能提现三次'); } $user = User::find($user_id); + //提现金额 $rate = ExchangeRate::where('type', 'BDT')->get(); $money = $money_no / 100 * $rate[0]['points'];