shish 4 anni fa
parent
commit
b2871b8c36
1 ha cambiato i file con 2 aggiunte e 1 eliminazioni
  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);
         return CategoryClass::changeStatus($categoryId, $status);
     }
     }
 
 
-    //更新分类 ssh 2019.12.8
+    //更新分类 ssh 20220404
     public static function updateCategory($category, $post)
     public static function updateCategory($category, $post)
     {
     {
         $categoryId = $category['id'];
         $categoryId = $category['id'];
@@ -113,6 +113,7 @@ class CategoryService extends BaseService
                 util::fail('分类名称已经存在');
                 util::fail('分类名称已经存在');
             }
             }
         }
         }
+        unset($post['flower']);
         CategoryClass::updateById($categoryId, $post);
         CategoryClass::updateById($categoryId, $post);
         //同步更新分类商品表
         //同步更新分类商品表
         GoodsCategoryClass::updateByCondition(['cId' => $categoryId], ['cName' => $post['categoryName']]);
         GoodsCategoryClass::updateByCondition(['cId' => $categoryId], ['cName' => $post['categoryName']]);