ZxcZxc123 2 years ago
parent
commit
0805f8f345
1 changed files with 9 additions and 8 deletions
  1. 9 8
      app/system/controller/GroupController.php

+ 9 - 8
app/system/controller/GroupController.php

@@ -38,15 +38,16 @@ class GroupController extends BaseController
             'list_rows' => $pagesize,
         ]);
 
+        $data = [
+            'list' => $list->items(),
+            'total' => $list->total(),
+            'page' => $list->currentPage(),
+            'pagesize' => $list->listRows(),
+        ];
+
         return json([
-            'code' => 200,
-            'msg' => 'success',
-            'data' => [
-                'list' => $list->items(),
-                'total' => $list->total(),
-                'page' => $list->currentPage(),
-                'pagesize' => $list->listRows(),
-            ],
+            'success' => true,
+            'data' => $data,
         ]);
     }