This commit is contained in:
2025-12-21 20:59:41 +08:00
parent b9d876437a
commit 8191237775
2 changed files with 2 additions and 2 deletions

View File

@@ -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)

View File

@@ -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脚本执行失败');