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