From cdac63e05a4a4d553299af70a3bb9706b685cecd Mon Sep 17 00:00:00 2001 From: Hide_D Date: Fri, 28 Jan 2022 14:11:51 +0900 Subject: [PATCH] =?UTF-8?q?fix:=20=EB=B2=A0=ED=8C=85=EC=8B=9C=20=EC=B6=94?= =?UTF-8?q?=EA=B0=80=20=ED=8F=AC=EC=9D=B8=ED=8A=B8=20=EB=B6=80=EC=97=AC=20?= =?UTF-8?q?=EB=B6=88=EA=B0=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- hwe/sammo/API/Betting/Bet.php | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/hwe/sammo/API/Betting/Bet.php b/hwe/sammo/API/Betting/Bet.php index 3102eb89..91005cb5 100644 --- a/hwe/sammo/API/Betting/Bet.php +++ b/hwe/sammo/API/Betting/Bet.php @@ -134,7 +134,11 @@ class Bet extends \sammo\BaseAPI 'amount'=>$amount ]); - $db->insertUpdate('ng_betting', $bettingItem->toArray()); + $db->insertUpdate( + 'ng_betting', + $bettingItem->toArray(), + ['amount' => $db->sqleval('amount + %i', $amount)] + ); if($bettingInfo->reqInheritancePoint){ $inheritStor->setValue('previous', [$remainPoint - $amount, null]); }