Преглед изворни кода

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

yingzi пре 2 година
родитељ
комит
6ad30ddc4a
1 измењених фајлова са 4 додато и 4 уклоњено
  1. 4 4
      app/api/controller/User.php

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

@@ -171,11 +171,11 @@ class User extends BaseController
         $time = $request->param('time');
         $times = $request->param('times');
         $users = (new UserModel())
-//            ->where('parent_uid', '<>', 0)
-//            ->where('regtime', '>=', $time)
-//            ->where('regtime', '<=', $times)
-            ->field('parent_uid as uid, count(*) as invite_count')
+            ->where('parent_uid', '<>', 0)
+            ->where('regtime', '>=', $time)
+            ->where('regtime', '<=', $times)
             ->group('parent_uid')
+            ->field('parent_uid as uid, count(*) as invite_count')
             ->order('invite_count', 'desc')
             ->select();
         $rankList = [];