From 34dc09a0900b6a4606d0b6fc2402adb21fcdfa4a Mon Sep 17 00:00:00 2001
From: heshupeng <hsp@bronet.cn>
Date: Sat, 30 Jan 2021 20:15:30 +0800
Subject: [PATCH] 测试

---
 application/api/controller/Goods.php | 18 +-----------------
 1 file changed, 1 insertion(+), 17 deletions(-)

diff --git a/application/api/controller/Goods.php b/application/api/controller/Goods.php
index 9a26837..d264ec1 100644
--- a/application/api/controller/Goods.php
+++ b/application/api/controller/Goods.php
@@ -209,23 +209,7 @@ class Goods extends Base
         $detail = json_decode(json_encode($detail), true);
         $detail['sku_price'] = $sku_price;
 
-        // 活动商品,不是活动规格过滤掉
-        $goods_sku_id_arr = [];
-        foreach ($detail['sku_price'] as $v) {
-            $goods_sku_id_arr = array_merge($v['goods_sku_id_arr'],$goods_sku_id_arr);
-        }
-        $new_sku = [];
-        foreach ($detail['sku'] as $val) {
-            $new_content = [];
-            foreach ($val['content'] as $value){
-                if(in_array($value['id'],$goods_sku_id_arr)){
-                    $new_content[] = $value;
-                }
-            }
-            $val['content'] = $new_content;
-            $new_sku[] = $val;
-        }
-        $detail['sku'] = $new_sku;
+        
 
         $this->success('商品详情', $detail);
     }
--
libgit2 0.24.0