From 81912377753405e2ef2ec4650801fdd90c01f1c4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=88=98=E5=8D=8E=E6=B8=85?= <18691022700@163.com> Date: Sun, 21 Dec 2025 20:59:41 +0800 Subject: [PATCH] =?UTF-8?q?=E7=88=86=E5=B8=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- application/common/library/LotteryGiftLua.php | 2 +- application/common/service/LotteryService.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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脚本执行失败');