ZxcZxc123 пре 2 година
родитељ
комит
3921911c2c
1 измењених фајлова са 3 додато и 1 уклоњено
  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]);
     }