This commit is contained in:
knowpia
2022-09-13 15:49:37 +08:00
parent f4eec7077f
commit 3e1aaf3ea7

View File

@@ -63,7 +63,6 @@ class Article
$result["lastIndex"] = 0; $result["lastIndex"] = 0;
$result["list"] = []; $result["list"] = [];
$list = Db::name("app_article")->where($where)->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;