From e8894d95cf0c53cac96c6ff3d098a8ebfdeb0779 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=88=98=E5=8D=8E=E6=B8=85?= <18691022700@163.com> Date: Tue, 27 Jan 2026 20:35:25 +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 | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/application/common/library/LotteryGiftLua.php b/application/common/library/LotteryGiftLua.php index 4c40c05e..d726b4d0 100644 --- a/application/common/library/LotteryGiftLua.php +++ b/application/common/library/LotteryGiftLua.php @@ -35,7 +35,8 @@ redis.call('set', small_round_key, small_round) local small_total_times = tonumber(redis.call('incr', small_total_times_key)) local small_total_gold = tonumber(redis.call('get', small_total_gold_key) or 0) small_total_gold = small_total_gold + small_pool_add -redis.call('set', small_total_gold_key, small_total_gold) +local small_total_golds = string.format("%.2f", small_total_gold) +redis.call('set', small_total_gold_key, small_total_golds) -- 4. 返回结果初始化(区分大小轮次) local result = { @@ -101,7 +102,8 @@ redis.call('set', small_round_key, small_round) local small_total_times = tonumber(redis.call('incr', small_total_times_key)) local small_total_gold = tonumber(redis.call('get', small_total_gold_key) or 0) small_total_gold = small_total_gold + small_pool_add -redis.call('set', small_total_gold_key, small_total_gold) +local small_total_golds = string.format("%.2f", small_total_gold) +redis.call('set', small_total_gold_key, small_total_golds) -- 4. 返回结果初始化(区分大小轮次) local result = {