From dcd9791f799e0f656dc151ae1aeda60ab228ca04 Mon Sep 17 00:00:00 2001 From: zhanglingsheng Date: Mon, 25 Nov 2019 20:09:29 +0800 Subject: [PATCH] =?UTF-8?q?=E6=8E=A8=E5=B9=BF=E5=91=98oa=E5=85=B3=E8=81=94?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Application/Admin/Controller/PromoteController.class.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Application/Admin/Controller/PromoteController.class.php b/Application/Admin/Controller/PromoteController.class.php index 3c264ca95..041433688 100644 --- a/Application/Admin/Controller/PromoteController.class.php +++ b/Application/Admin/Controller/PromoteController.class.php @@ -71,6 +71,7 @@ unset($_REQUEST['parent_id']); if(isset($_REQUEST['row'])) {$row = $_REQUEST['row'];}else{$row = 10;} if(!empty(I('oa_associated'))) { + $map['oa_associated'] = I('oa_associated'); $oa_data = []; for($i = 1; $i > 0; $i++) { $arr['time'] = time(); @@ -127,7 +128,7 @@ unset($_REQUEST['parent_id']); } } } - $count = D(self::model_name)->count(); + $count = I('oa_associated') ? count($list_data) : D(self::model_name)->count(); $page = set_pagination($count,$row); if($page) {$this->assign('_page', $page);} $this->assign('list_data', $list_data);