diff --git a/application/common/library/LotteryGiftLua.php b/application/common/library/LotteryGiftLua.php index 53254d9e..26249d06 100644 --- a/application/common/library/LotteryGiftLua.php +++ b/application/common/library/LotteryGiftLua.php @@ -171,7 +171,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) +small_total_golds = string.format("%.2f", small_total_gold) +redis.call('set', small_total_gold_key, small_total_golds) -- 4. 返回结果初始化(区分大小轮次) local result = {