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