ZxcZxc123 2 年之前
父節點
當前提交
053157e8b9
共有 2 個文件被更改,包括 2 次插入2 次删除
  1. 1 1
      app/model/api/EducationModel.php
  2. 1 1
      app/system/controller/EducationController.php

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

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

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