diff --git a/application/common/service/LotteryService.php b/application/common/service/LotteryService.php index e66c32f0..d00f5b77 100644 --- a/application/common/service/LotteryService.php +++ b/application/common/service/LotteryService.php @@ -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,