@@ -134,11 +134,7 @@ class Bet extends \sammo\BaseAPI
|
|||||||
'amount'=>$amount
|
'amount'=>$amount
|
||||||
]);
|
]);
|
||||||
|
|
||||||
$db->insertUpdate(
|
$db->insertUpdate('ng_betting', $bettingItem->toArray());
|
||||||
'ng_betting',
|
|
||||||
$bettingItem->toArray(),
|
|
||||||
['amount' => $db->sqleval('amount + %i', $amount)]
|
|
||||||
);
|
|
||||||
if($bettingInfo->reqInheritancePoint){
|
if($bettingInfo->reqInheritancePoint){
|
||||||
$inheritStor->setValue('previous', [$remainPoint - $amount, null]);
|
$inheritStor->setValue('previous', [$remainPoint - $amount, null]);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user