|
@@ -209,8 +209,8 @@ class GoodsService
|
|
|
$goodsName = $request->get('goods_name', '');
|
|
|
|
|
|
$categorySuperId = $request->get('category_super_id', '');
|
|
|
- $categoryIds = $request->get('category_id', []);
|
|
|
- if (!empty($categorySuperId)) {
|
|
|
+ $categoryIds = $request->get('join_goods_category_id', []);
|
|
|
+ if (!empty($categorySuperId) && empty($categoryIds)) {
|
|
|
$category = SysCategory::where('category_id', $categorySuperId)->first();
|
|
|
if (empty($category->category_super_path)) {
|
|
|
$category->category_super_path = '#' . $categorySuperId . '#';
|