ZxcZxc123 2 years ago
parent
commit
552ff7a3c1
1 changed files with 2 additions and 2 deletions
  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()
     {
@@ -40,7 +40,7 @@ class EducationModel extends Model
             }
         }
 
-        return  array_values($tree);
+        return $this->success(array_values($tree));
     }
 
 //    public function getGrList($userId)