ZxcZxc123 2 years ago
parent
commit
053157e8b9

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

@@ -40,7 +40,7 @@ class EducationModel extends Model
             }
             }
         }
         }
 
 
-        return app('json') -> success($items);
+        return app('json') -> success($tree);
     }
     }
 
 
 //    public function getGrList($userId)
 //    public function getGrList($userId)

+ 1 - 1
app/system/controller/EducationController.php

@@ -35,7 +35,7 @@ class EducationController
 
 
 //        $data = array_values($tree);
 //        $data = array_values($tree);
 //        $msg = '获取分类成功';
 //        $msg = '获取分类成功';
-        return app('json') -> success($items);
+        return app('json') -> success($tree);
     }
     }