From f5f96dbc6c4671bc6faef9f6a81f6974fda6d0ec Mon Sep 17 00:00:00 2001 From: knowpia <9812993@qq.com> Date: Fri, 9 Sep 2022 13:52:46 +0800 Subject: [PATCH] code add --- app/controller/Article.php | 1 + 1 file changed, 1 insertion(+) diff --git a/app/controller/Article.php b/app/controller/Article.php index fcb56db..c4f3b16 100644 --- a/app/controller/Article.php +++ b/app/controller/Article.php @@ -105,6 +105,7 @@ class Article $where = "userid={$student_userid} and id<".$lastIndex; } $result["lastIndex"] = 0; + $result["list"] = []; $list = Db::name("app_article")->where($where)->order("id desc")->order('id desc')->limit(env("page_count"))->select()->toArray(); foreach($list as $vo){ $result['lastIndex'] = $vo['id'];