From 8bb1a5a15d36339fd19abba096e6edb4535b6b72 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=B7=B4=E6=8E=8C?= Date: Wed, 29 Dec 2021 11:04:30 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E5=9C=A8=E7=BA=BF=E5=BD=95?= =?UTF-8?q?=E5=85=A5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/kaohao/model/SearchMore.php | 5 +++-- app/luru/controller/Index.php | 5 ++++- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/app/kaohao/model/SearchMore.php b/app/kaohao/model/SearchMore.php index 07a94642..a927c4b0 100755 --- a/app/kaohao/model/SearchMore.php +++ b/app/kaohao/model/SearchMore.php @@ -261,8 +261,9 @@ class SearchMore extends BaseModel ,'subject_id' => array() ,'field' => 'student_xingming' ,'order' => 'desc' - ,'page' - ,'limit' + ,'page' => 1 + ,'limit' => 50 + ,'all' => false ); // 用新值替换初始值 $src = array_cover($srcfrom, $src); diff --git a/app/luru/controller/Index.php b/app/luru/controller/Index.php index 1364f885..44b7e467 100755 --- a/app/luru/controller/Index.php +++ b/app/luru/controller/Index.php @@ -801,12 +801,15 @@ class Index extends AdminBase ,'kaoshi_id' ,'banji_id' => array() ,'subject_id' => array() + ,'all' => false ], 'POST'); // 实例化并查询成绩 $cj = new \app\kaohao\model\SearchMore; $data = $cj->srcOnlineEdit($src); - $data = reset_data($data, $src); + $src['all'] = true; + $cnt = count($cj->srcOnlineEdit($src)); + $data = reset_data($data, $cnt); return json($data); }