diff --git a/application/common/library/LotteryGiftLua.php b/application/common/library/LotteryGiftLua.php index b705f0c4..d39bcf59 100644 --- a/application/common/library/LotteryGiftLua.php +++ b/application/common/library/LotteryGiftLua.php @@ -246,7 +246,7 @@ if small_total_times >= small_trigger_times then -- 大奖金额计算(基于开奖前的总金额) result.big_prize_amount = math.floor(big_threshold * big_ratio / 100) - result.big_release_amount = math.floor(big_total_gold - result.big_prize_amount) + result.big_release_amount = math.floor(big_total_gold - result.big_prize_amount) -- 重置大奖池,大轮次+1 redis.call('set', big_total_gold_key, 0) diff --git a/application/common/service/LotteryService.php b/application/common/service/LotteryService.php index f94300e6..6ac676f7 100644 --- a/application/common/service/LotteryService.php +++ b/application/common/service/LotteryService.php @@ -124,7 +124,7 @@ class LotteryService $this->bigPrizeWeights['80'], $this->bigPrizeWeights['total'] ], 0); - var_dump($result);die; +// var_dump($result);die; $result = json_decode($result, true); if (json_last_error() !== JSON_ERROR_NONE) { throw new Exception('Lua脚本执行失败');