shish 2 лет назад
Родитель
Сommit
deef602211
1 измененных файлов с 7 добавлено и 4 удалено
  1. 7 4
      app-pt/controllers/ItemCatController.php

+ 7 - 4
app-pt/controllers/ItemCatController.php

@@ -1,8 +1,4 @@
 <?php
-/**
- * User: admin
- * Date Time: 2021/4/10 14:38
- */
 
 namespace pt\controllers;
 
@@ -25,4 +21,11 @@ class ItemCatController extends BaseController
         util::success($list);
     }
 
+    //获取所有建议分类 ssh 20240127
+    public function actionGetAllCat()
+    {
+        $list = PtItemCatClass::getAllByCondition(['type' => 0], null, '*', null);
+        util::success(['list' => $list]);
+    }
+
 }