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