버그 수정

This commit is contained in:
2020-04-30 16:47:11 +09:00
parent 39ea45eb51
commit 366cba2102
5 changed files with 10 additions and 7 deletions
+2 -1
View File
@@ -779,7 +779,8 @@ function setGift($tnmt_type, $tnmt, $phase) {
$winnerSlot = ($winnerGrp - 20) * 2 + $winnerGrpNo;
//당첨칸에 베팅한 사람들만
$globalBet = array_splice($db->queryFirstList('SELECT * FROM betting WHERE general_id = 0'), -16);
$globalBet = $db->queryFirstList('SELECT * FROM betting WHERE general_id = 0');
$globalBet = array_splice($globalBet, -16);
$globalBetTotal = array_sum($globalBet);
$rewardRate = round($globalBetTotal / max($globalBet[$winnerSlot], 1), 2);