ZxcZxc123 2 years ago
parent
commit
3921911c2c
1 changed files with 3 additions and 1 deletions
  1. 3 1
      app/system/controller/EducationController.php

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

@@ -33,7 +33,9 @@ class EducationController
             }
             }
         }
         }
 
 
-        return json($tree);
+        $data = array_values($tree);
+        $msg = '获取分类成功';
+        return json(['msg' => $msg, 'data' => $data]);
     }
     }