浏览代码

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

yingzi 1 年之前
父节点
当前提交
ab2497224c
共有 1 个文件被更改,包括 2 次插入2 次删除
  1. 2 2
      app/api/controller/User.php

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

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