fix bug
This commit is contained in:
@@ -64,9 +64,7 @@ class Help
|
|||||||
|
|
||||||
|
|
||||||
$lastIndex = lastindex();
|
$lastIndex = lastindex();
|
||||||
if($lastIndex == 0) {
|
|
||||||
$lastIndex = 1;
|
|
||||||
}
|
|
||||||
$result = [];
|
$result = [];
|
||||||
|
|
||||||
|
|
||||||
@@ -78,6 +76,9 @@ class Help
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if($lastIndex == 0) {
|
||||||
|
$lastIndex = 1;
|
||||||
|
}
|
||||||
|
|
||||||
$list = Db::name("appHelp")->where("student_id",$student_id)->limit(env("page_count"))->order('count desc')->paginate([
|
$list = Db::name("appHelp")->where("student_id",$student_id)->limit(env("page_count"))->order('count desc')->paginate([
|
||||||
"list_rows"=>env("PAGE_COUNT"),
|
"list_rows"=>env("PAGE_COUNT"),
|
||||||
|
|||||||
Reference in New Issue
Block a user