This commit is contained in:
knowpia
2022-09-13 15:48:46 +08:00
parent f32e862db8
commit f4eec7077f

View File

@@ -62,7 +62,8 @@ class Article
} }
$result["lastIndex"] = 0; $result["lastIndex"] = 0;
$result["list"] = []; $result["list"] = [];
$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')->limit(env("page_count"))->select()->toArray();
print_r($list);
foreach($list as $vo){ foreach($list as $vo){
$result['lastIndex'] = $vo['id']; $result['lastIndex'] = $vo['id'];
$result["list"][] = $vo; $result["list"][] = $vo;