fix: 베팅시 추가 포인트 부여 불가

This commit is contained in:
2022-02-05 07:43:27 +00:00
committed by Gitea
parent 6afedb35df
commit 3d966ec076
+5 -2
View File
@@ -134,8 +134,11 @@ class Bet extends \sammo\BaseAPI
'amount'=>$amount
]);
$db->insertUpdate('ng_betting', $bettingItem->toArray());
if($bettingInfo->reqInheritancePoint){
$db->insertUpdate(
'ng_betting',
$bettingItem->toArray(),
['amount' => $db->sqleval('amount + %i', $amount)]
); if($bettingInfo->reqInheritancePoint){
$inheritStor->setValue('previous', [$remainPoint - $amount, null]);
}
else{