爆币
This commit is contained in:
@@ -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)
|
||||
|
||||
@@ -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脚本执行失败');
|
||||
|
||||
Reference in New Issue
Block a user