From 4b2f9f7fe3f2d501aeb0af9d45b0783502e3fa74 Mon Sep 17 00:00:00 2001 From: knowpia <9812993@qq.com> Date: Mon, 19 Sep 2022 16:28:40 +0800 Subject: [PATCH] fix bug --- app/controller/Share.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/controller/Share.php b/app/controller/Share.php index 25daa0c..abe5415 100644 --- a/app/controller/Share.php +++ b/app/controller/Share.php @@ -14,7 +14,7 @@ class Share $where = "id < ".$lastIndex; } $result['lastIndex'] = 0; - $list = Db::name("app_users")->where($where)->order("share_count desc,id desc")->select()->toArray(); + $list = Db::name("app_users")->where($where)->order("share_count desc,id desc")->limit(env("PAGE_COUNT"))->select()->toArray(); foreach($list as $vo){ $result['lastIndex'] = $vo['id']; $result['data'] = [