shish 4 лет назад
Родитель
Сommit
b2871b8c36
1 измененных файлов с 2 добавлено и 1 удалено
  1. 2 1
      biz-hd/goods/services/CategoryService.php

+ 2 - 1
biz-hd/goods/services/CategoryService.php

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