From 7008a6a5bfdd9c1c58478fb1aeff3cd9e9a3ebdc Mon Sep 17 00:00:00 2001 From: weigang Date: Sat, 19 Sep 2020 08:14:15 +0800 Subject: [PATCH] =?UTF-8?q?=E5=95=86=E6=88=B7=E9=80=80=E5=8D=95=E6=89=A3?= =?UTF-8?q?=E9=92=B1?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/Service/v3/Implementations/FinancialRecordService.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/Service/v3/Implementations/FinancialRecordService.php b/app/Service/v3/Implementations/FinancialRecordService.php index 4ccde5d..61e3b7d 100644 --- a/app/Service/v3/Implementations/FinancialRecordService.php +++ b/app/Service/v3/Implementations/FinancialRecordService.php @@ -352,7 +352,7 @@ class FinancialRecordService implements FinancialRecordServiceInterface 'user_type' => $user_type, 'source_id' => $user_id ]); - $balance->balance = bcadd($balance->balance, $money, 2); + $balance->balance = bcsub($balance->balance, $money, 2); $balance->save(); }