ZxcZxc123 2 年之前
父节点
当前提交
552ff7a3c1
共有 1 个文件被更改,包括 2 次插入2 次删除
  1. 2 2
      app/model/api/EducationModel.php

+ 2 - 2
app/model/api/EducationModel.php

@@ -21,7 +21,7 @@ class EducationModel extends Model
     /**
     /**
      * 获取所有分类
      * 获取所有分类
      *
      *
-     * @return mixed
+     * @return \think\response\Json
      */
      */
     public function getCate()
     public function getCate()
     {
     {
@@ -40,7 +40,7 @@ class EducationModel extends Model
             }
             }
         }
         }
 
 
-        return  array_values($tree);
+        return $this->success(array_values($tree));
     }
     }
 
 
 //    public function getGrList($userId)
 //    public function getGrList($userId)