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'];