From 87bd5fedf3018909d41b1d5a8d381f830e27a28a Mon Sep 17 00:00:00 2001 From: wanghongjun <1445693971@qq,com> Date: Thu, 28 Sep 2023 18:39:23 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BB=A3=E7=A0=81=E9=94=99=E8=AF=AF=E4=BC=98?= =?UTF-8?q?=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/model/User.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/model/User.php b/app/model/User.php index bc04721..507efc4 100644 --- a/app/model/User.php +++ b/app/model/User.php @@ -288,7 +288,7 @@ class User extends Model $User = self::find($user_id); if ($User->withdrawal_balance <= 0) return ['status' => 0,'msg' => '可提余额不足,无法转移']; - $User->balance = bcadd($User->balance + $User->withdrawal_balance,2); + $User->balance = bcadd($User->balance,$User->withdrawal_balance,2); $User->withdrawal_balance = 0; $User->save();