From 2814c8a7b7ccbb344261a59a11aae6eb3cfdac3a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=B5=B5=E9=92=8A?= Date: Wed, 29 Oct 2025 12:58:51 +0800 Subject: [PATCH] =?UTF-8?q?=E7=9B=B2=E7=9B=92=E8=BD=AC=E7=9B=98=E4=BC=98?= =?UTF-8?q?=E5=8C=96-=E9=87=8D=E6=9E=84-=E4=BF=AE=E6=94=B9=E8=B0=83?= =?UTF-8?q?=E8=AF=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../api/model/BlindBoxTurntableGiftDrawWorldNew.php | 11 ----------- 1 file changed, 11 deletions(-) diff --git a/application/api/model/BlindBoxTurntableGiftDrawWorldNew.php b/application/api/model/BlindBoxTurntableGiftDrawWorldNew.php index 733360f..3b5e2c6 100644 --- a/application/api/model/BlindBoxTurntableGiftDrawWorldNew.php +++ b/application/api/model/BlindBoxTurntableGiftDrawWorldNew.php @@ -333,18 +333,7 @@ class BlindBoxTurntableGiftDrawWorldNew extends Model $total_remaining = array_sum(array_column($pan_gift_bag_detail, 'remaining_number')); $total_draw_times = max(0, $total_quantity - $total_remaining); //总抽奖次数 - $gift_info_map = []; - $gift_ids = array_unique(array_column($pan_gift_bag_detail, 'foreign_id')); - if (!empty($gift_ids)) { - foreach ($gift_ids as $gift_id) { - $gift_info_map[$gift_id] = db::name("vs_gift") - ->field('gid,gift_name,gift_price,base_image') - ->where(['gid' => $gift_id]) - ->find(); - } - } Cache::set($cacheKey, $pan_gift_bag_detail, $this->cache_time); - Cache::set("pan_gift_info_map".$gift_bag_id, $gift_info_map, $this->cache_time); Cache::set("pan_total_quantity".$gift_bag_id, $total_quantity, $this->cache_time); Cache::set("pan_total_remaining".$gift_bag_id, $total_remaining, $this->cache_time); Cache::set("pan_total_draw_times".$gift_bag_id, $total_draw_times, $this->cache_time);