From d106668bb578fd7608d0f296f30131a6cc33a9f1 Mon Sep 17 00:00:00 2001 From: knowpia <9812993@qq.com> Date: Mon, 19 Sep 2022 16:28:05 +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 17514db..25daa0c 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,order id desc")->select()->toArray(); + $list = Db::name("app_users")->where($where)->order("share_count desc,id desc")->select()->toArray(); foreach($list as $vo){ $result['lastIndex'] = $vo['id']; $result['data'] = [