公会流水展示修改。
This commit is contained in:
@@ -400,8 +400,10 @@ class BlindBoxTurntableGiftDrawWorldNew extends Model
|
|||||||
Db::name("vs_gift_bag_detail")
|
Db::name("vs_gift_bag_detail")
|
||||||
->where(['gift_bag_id' => $gift_bag_id])
|
->where(['gift_bag_id' => $gift_bag_id])
|
||||||
->update(['remaining_number' => Db::raw('quantity')]);
|
->update(['remaining_number' => Db::raw('quantity')]);
|
||||||
|
//更新期数
|
||||||
|
db::name("vs_gift_bag")->where('id',$gift_bag_id)->setInc('periods');
|
||||||
// 清除缓存
|
// 清除缓存
|
||||||
|
Cache::rm("pan_gift_bag".$gift_bag_id);
|
||||||
Cache::rm("pan_gift_bag_detail".$gift_bag_id);
|
Cache::rm("pan_gift_bag_detail".$gift_bag_id);
|
||||||
|
|
||||||
// 重新获取可用礼物
|
// 重新获取可用礼物
|
||||||
@@ -1509,7 +1511,7 @@ class BlindBoxTurntableGiftDrawWorldNew extends Model
|
|||||||
if ($pool_status['code'] !== 1) {
|
if ($pool_status['code'] !== 1) {
|
||||||
throw new \Exception($pool_status['msg']);
|
throw new \Exception($pool_status['msg']);
|
||||||
}
|
}
|
||||||
|
$bag_data = $this->getCachedGiftBag($gift_bag_id);//防止重置奖池后数据有跟新-期数
|
||||||
$available_gifts = $pool_status['data']['available_gifts'];
|
$available_gifts = $pool_status['data']['available_gifts'];
|
||||||
$remaining_available_gifts = $pool_status['data']['remaining_gifts'] ?? [];
|
$remaining_available_gifts = $pool_status['data']['remaining_gifts'] ?? [];
|
||||||
$periods = $bag_data['periods'];
|
$periods = $bag_data['periods'];
|
||||||
|
|||||||
Reference in New Issue
Block a user