Merge branch 'master' of https://git.yuzhankeji.cn/linyiman/heping-api
This commit is contained in:
@@ -105,6 +105,7 @@ class Article
|
|||||||
$where = "userid={$student_userid} and id<".$lastIndex;
|
$where = "userid={$student_userid} and id<".$lastIndex;
|
||||||
}
|
}
|
||||||
$result["lastIndex"] = 0;
|
$result["lastIndex"] = 0;
|
||||||
|
$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")->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'];
|
||||||
|
|||||||
Reference in New Issue
Block a user