diff --git a/application/api/model/BlindBoxTurntableGiftDrawWorldNew.php b/application/api/model/BlindBoxTurntableGiftDrawWorldNew.php index ab7d62a..59737d2 100644 --- a/application/api/model/BlindBoxTurntableGiftDrawWorldNew.php +++ b/application/api/model/BlindBoxTurntableGiftDrawWorldNew.php @@ -199,7 +199,10 @@ class BlindBoxTurntableGiftDrawWorldNew extends Model 'draw_times' => $this->getCachedPanDrawTimes($gift_bag_id), 'periods' => $periods, ]; - $this->getCachedXlhPeriodsNum("set");//添加寻乐会条件次数 + $xlh_ext = $this->getCachedGiftBag(13); + if(!empty($xlh_ext) && $xlh_ext['inlet_bag_id'] == $gift_bag_id) { + $this->getCachedXlhPeriodsNum("set");//添加寻乐会条件次数 + } $pan_total_draw_times = $this->getCachedPanDrawTimes($gift_bag_id,"set"); // 总抽奖次数 } } @@ -257,7 +260,10 @@ class BlindBoxTurntableGiftDrawWorldNew extends Model $pan_total_draw_times = $this->getCachedPanDrawTimes($gift_bag_id,"set"); //总抽奖次数+1 $pan_total_remaining = $this->getCachedPanTotalRemaining($gift_bag_id,"set"); //剩余数量-1 // 更新房间巡乐会次数 - $this->getCachedXlhPeriodsNum("set"); + $xlh_ext = $this->getCachedGiftBag(13); + if(!empty($xlh_ext) && $xlh_ext['inlet_bag_id'] == $gift_bag_id) { + $this->getCachedXlhPeriodsNum("set");//添加寻乐会条件次数 + } // 更新Alias表 $this->updateAliasTable($aliasTableForNew, $selectedGift['id']); $this->updateCachedGiftBagDetail($gift_bag_id, $selectedGift['id']); //更新缓存中礼物的数量