Browse Source

完善功能

gorden 10 months ago
parent
commit
2368870b10
1 changed files with 2 additions and 1 deletions
  1. 2 1
      app/admin/service/goods/GoodsService.php

+ 2 - 1
app/admin/service/goods/GoodsService.php

@@ -146,7 +146,7 @@ class GoodsService
 //            return json_success('暂无数据');
 //        }
 
-        $categoryIds = SysCategory::whereIn('category_super_id', [6, 7, 8, 9, 10, 11, 12, 31, 32, 42, 66, 70, 72])->pluck('category_id');
+        $categoryIds = SysCategory::whereIn('category_super_id', [5, 31, 32, 42, 66, 70, 72])->pluck('category_id');
 
         $goods = Goods::with('sku')
             ->whereIn('join_goods_category_id', $categoryIds)
@@ -784,6 +784,7 @@ class GoodsService
                     'goods_component_addtimes' => time()
                 ];
             }
+            dump($data);
 
             if ($data) {
                 GoodsComponent::insert($data);