|
|
@@ -101,7 +101,7 @@ class CategoryService extends BaseService
|
|
|
return CategoryClass::changeStatus($categoryId, $status);
|
|
|
}
|
|
|
|
|
|
- //更新分类 ssh 2019.12.8
|
|
|
+ //更新分类 ssh 20220404
|
|
|
public static function updateCategory($category, $post)
|
|
|
{
|
|
|
$categoryId = $category['id'];
|
|
|
@@ -113,6 +113,7 @@ class CategoryService extends BaseService
|
|
|
util::fail('分类名称已经存在');
|
|
|
}
|
|
|
}
|
|
|
+ unset($post['flower']);
|
|
|
CategoryClass::updateById($categoryId, $post);
|
|
|
//同步更新分类商品表
|
|
|
GoodsCategoryClass::updateByCondition(['cId' => $categoryId], ['cName' => $post['categoryName']]);
|