diff --git a/app/api/controller/Index.php b/app/api/controller/Index.php index 42cbfdb..9f13287 100755 --- a/app/api/controller/Index.php +++ b/app/api/controller/Index.php @@ -148,7 +148,7 @@ class Index extends Base $list = User::where('pid', '>', 0) ->field('pid, COUNT(1) as n') // 选取 pid 和 计数字段 ->group('pid') - ->having('n', '>', 1) // `having` 需要使用 `as` 取别名 + ->having('n', '>',30) // `having` 需要使用 `as` 取别名 ->order('n desc') // ->limit(10) // 添加限制条数 ->select();