|
|
@@ -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)
|