shish 1 年之前
父節點
當前提交
934f8269d5
共有 1 個文件被更改,包括 8 次插入0 次删除
  1. 8 0
      app-hd/controllers/CategoryController.php

+ 8 - 0
app-hd/controllers/CategoryController.php

@@ -2,6 +2,7 @@
 
 namespace hd\controllers;
 
+use bizHd\goods\classes\CategoryClass;
 use bizHd\goods\services\CategoryService;
 use bizHd\goods\services\GoodsCategoryService;
 use Yii;
@@ -10,6 +11,13 @@ use common\components\util;
 class CategoryController extends BaseController
 {
 
+    public function actionGetAllCategory()
+    {
+        $where = ['mainId' => $this->mainId, 'delStatus' => 0];
+        $list = CategoryClass::getAllByCondition($where, null, '*');
+        util::success(['list' => $list]);
+    }
+
     //分类列表
     public function actionList()
     {