This commit is contained in:
2022-09-09 13:53:38 +08:00

View File

@@ -105,6 +105,7 @@ class Article
$where = "userid={$student_userid} and id<".$lastIndex;
}
$result["lastIndex"] = 0;
$result["list"] = [];
$list = Db::name("app_article")->where($where)->order("id desc")->order('id desc')->limit(env("page_count"))->select()->toArray();
foreach($list as $vo){
$result['lastIndex'] = $vo['id'];