feat: 베팅 시스템 재 설계, 이벤트 테이블 수정 #205

Merged
Hide_D merged 45 commits from ng_bet into devel 2022-02-05 16:43:28 +09:00
Showing only changes of commit 4d84396cf6 - Show all commits
+1 -1
View File
@@ -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 '베팅을 실패했습니다.';
}