From 8040cc28c48a5278f9db3a0c5f54f966b7fbf553 Mon Sep 17 00:00:00 2001 From: Hide_D Date: Fri, 28 Jan 2022 14:02:12 +0900 Subject: [PATCH] =?UTF-8?q?fix:=20=EB=B2=A0=ED=8C=85=20=EC=88=9C=EC=84=9C?= =?UTF-8?q?=20=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- hwe/sammo/API/Betting/Bet.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hwe/sammo/API/Betting/Bet.php b/hwe/sammo/API/Betting/Bet.php index 40bb3d81..3102eb89 100644 --- a/hwe/sammo/API/Betting/Bet.php +++ b/hwe/sammo/API/Betting/Bet.php @@ -134,6 +134,7 @@ class Bet extends \sammo\BaseAPI 'amount'=>$amount ]); + $db->insertUpdate('ng_betting', $bettingItem->toArray()); if($bettingInfo->reqInheritancePoint){ $inheritStor->setValue('previous', [$remainPoint - $amount, null]); } @@ -142,7 +143,6 @@ class Bet extends \sammo\BaseAPI 'gold' => $db->sqleval('gold - %i', $amount) ], 'no = %i', $session->generalID); } - $db->insertUpdate('ng_betting', $bettingItem->toArray()); if(!$db->affected_rows){ return '베팅을 실패했습니다.'; }