Prechádzať zdrojové kódy

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

yingzi 1 rok pred
rodič
commit
6ad30ddc4a
1 zmenil súbory, kde vykonal 4 pridanie a 4 odobranie
  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 = [];