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);