This commit is contained in:
2025-12-21 19:58:30 +08:00
parent 43c188e8a9
commit cc922eceb8

View File

@@ -83,10 +83,8 @@ class LotteryService
$bigAddGold = Db::name('bb_lottery_pool_flow')
->where(['pool_type' => 2, 'type' => 3, 'times' => $big_round])
->sum('amount') ?: 0;
$bigReduceGold = Db::name('bb_lottery_pool_flow')
->where(['pool_type' => 2, 'type' => ['in',[2,4]], 'times' => $big_round])
->sum('amount') ?: 0;
$this->redis->set('lottery:big_pool:total_gold', $bigAddGold + $bigReduceGold);
$this->redis->set('lottery:big_pool:total_gold', $bigAddGold );
}
}
@@ -178,7 +176,7 @@ class LotteryService
$this->addPoolFlow(
2, // 大奖池
4, // 释放
-$result['big_release_amount'],//释放金额
$result['big_release_amount'],//释放金额
$result['big_pool_total_before_open'],// 开奖时大奖池金额
0,
$giftId,
@@ -212,7 +210,7 @@ class LotteryService
$this->addPoolFlow(
1, // 小奖池
2, // 开奖扣除
-$result['small_total_gold'],
$result['small_total_gold'],
$result['small_total_gold'],
0,
$giftId,