From cbd2786b96b0fb4a89b967fe031a5f7f5c8e27b4 Mon Sep 17 00:00:00 2001 From: knowpia <9812993@qq.com> Date: Wed, 14 Sep 2022 10:53:38 +0800 Subject: [PATCH] fix bug --- app/controller/Help.php | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/app/controller/Help.php b/app/controller/Help.php index 9951210..aced41e 100644 --- a/app/controller/Help.php +++ b/app/controller/Help.php @@ -64,9 +64,7 @@ class Help $lastIndex = lastindex(); - if($lastIndex == 0) { - $lastIndex = 1; - } + $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_rows"=>env("PAGE_COUNT"),