fix bug
This commit is contained in:
@@ -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;
|
||||||
|
|||||||
Reference in New Issue
Block a user