Sfoglia il codice sorgente

分类弃用 flower 做区分

shizhongqi 1 anno fa
parent
commit
ab47e71077

+ 2 - 2
app-ghs/controllers/CategoryController.php

@@ -21,8 +21,8 @@ class CategoryController extends BaseController
     public function actionList()
     {
         $get = Yii::$app->request->get();
-        $property = $get['property'] ?? '';
-        $list = CategoryService::getCategoryList($this->mainId, $property);
+        //$property = $get['property'] ?? '';
+        $list = CategoryService::getCategoryList($this->mainId);
         util::success($list);
     }
 

+ 2 - 2
app-hd/controllers/CategoryController.php

@@ -23,8 +23,8 @@ class CategoryController extends BaseController
     public function actionList()
     {
         $get = Yii::$app->request->get();
-        $flower = $get['flower'] ?? '';
-        $list = CategoryService::getCategoryList($this->mainId, $flower);
+        //$flower = $get['flower'] ?? '';
+        $list = CategoryService::getCategoryList($this->mainId);
         util::success($list);
     }
 

+ 5 - 6
biz-hd/goods/services/CategoryService.php

@@ -10,17 +10,16 @@ use common\components\util;
 
 class CategoryService extends BaseService
 {
-
-
     public static $baseFile = '\bizHd\goods\classes\CategoryClass';
 
     //取所有的分类 ssh 2019.12.7
-    public static function getCategoryList($mainId, $flower = '')
+    public static function getCategoryList($mainId)
     {
         $where = ['mainId' => $mainId, 'delStatus' => 0];
-        if (is_numeric($flower)) {
-            $where['flower'] = $flower;
-        }
+        // 需求变动:不再用 flower 做区分
+        //if (is_numeric($flower)) {
+            //$where['flower'] = $flower;
+        //}
         $cat = CategoryClass::getAllByCondition($where, 'inTurn DESC', '*');
         if (empty($cat)) {
             return $cat;