This commit is contained in:
knowpia
2022-09-13 13:25:11 +08:00
parent c808d0fa44
commit f32e862db8

View File

@@ -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(); $list = Db::name("app_article")->where($where)->order("id desc")->order('id desc')->limit(env("page_count"))->select()->toArray();
foreach($list as $vo){ foreach($list as $vo){
$result['lastIndex'] = $vo['id']; $result['lastIndex'] = $vo['id'];
$result["data"][] = $vo; $result["list"][] = $vo;
} }
if(count($list)<env("PAGE_COUNT")){ if(count($list)<env("PAGE_COUNT")){
$result["lastIndex"] = 0; $result["lastIndex"] = 0;