Browse Source

2023-5-22-1 新增服务区-2

yingzi 2 năm trước cách đây
mục cha
commit
87bc4852dd
1 tập tin đã thay đổi với 3 bổ sung3 xóa
  1. 3 3
      app/api/controller/User.php

+ 3 - 3
app/api/controller/User.php

@@ -127,7 +127,6 @@ class User extends BaseController
     {
         $time = $request->param('time');
         $times = $request->param('times');
-
         $users = (new UserModel())
             ->where('parent_uid', '<>', 0)
             ->where('regtime', '>=', $time)
@@ -136,7 +135,6 @@ class User extends BaseController
             ->group('parent_uid')
             ->order('invite_count', 'desc')
             ->select();
-
         $rankList = [];
         foreach ($users as $key => $value) {
             $userInfo = (new UserModel)->where('uid', $value['uid'])->find();
@@ -159,7 +157,9 @@ class User extends BaseController
             return !empty($item['ancestral_place']);
         }));
 
-        return app('json')->success($rankList);
+        $data['list'] = $rankList;
+
+        return app('json')->success($data);
     }