Ver código fonte

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

yingzi 2 anos atrás
pai
commit
5f655ec758
1 arquivos alterados com 1 adições e 1 exclusões
  1. 1 1
      app/api/controller/User.php

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

@@ -174,8 +174,8 @@ class User extends BaseController
             ->where('parent_uid', '<>', 0)
             ->where('regtime', '>=', $time)
             ->where('regtime', '<=', $times)
-            ->group('parent_uid')
             ->field('parent_uid as uid, count(*) as invite_count')
+            ->group('parent_uid')
             ->order('invite_count', 'desc')
             ->select();
         $rankList = [];