From f32e862db84dd8231f9b2ec8d8b59d76492d0c0b Mon Sep 17 00:00:00 2001 From: knowpia <9812993@qq.com> Date: Tue, 13 Sep 2022 13:25:11 +0800 Subject: [PATCH] fix bug --- app/controller/Article.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/controller/Article.php b/app/controller/Article.php index 10b0751..29bd643 100644 --- a/app/controller/Article.php +++ b/app/controller/Article.php @@ -65,7 +65,7 @@ class Article $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']; - $result["data"][] = $vo; + $result["list"][] = $vo; } if(count($list)