From 2da9821caf7eed16900e55f744b97d023cef9054 Mon Sep 17 00:00:00 2001 From: zhengyongxing Date: Thu, 2 Jul 2020 14:13:15 +0800 Subject: [PATCH] =?UTF-8?q?=E5=B8=82=E5=9C=BA=E4=B8=93=E5=91=98=E4=B8=9A?= =?UTF-8?q?=E7=BB=A9=E8=AE=A1=E7=AE=97=E4=BF=AE=E6=AD=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Application/Admin/Controller/AdminController.class.php | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/Application/Admin/Controller/AdminController.class.php b/Application/Admin/Controller/AdminController.class.php index d882fae33..f932da18e 100644 --- a/Application/Admin/Controller/AdminController.class.php +++ b/Application/Admin/Controller/AdminController.class.php @@ -640,6 +640,7 @@ class AdminController extends Controller { public function checkListOrCountAuthRestMap(&$map,$checkarr = false,$countfield = "rule_count_check"){ //验证count if(IS_ROOT){ + $this->assign('caculate_check',true); $this->assign('role_export_check',true); $this->assign($countfield,true); }else{ @@ -651,10 +652,10 @@ class AdminController extends Controller { - $exportRule = strtolower(MODULE_NAME.'/'.CONTROLLER_NAME.'/'.ACTION_NAME."_caculate_check"); - - $this->assign('caculate_check',$this->checkRule($exportRule,array('in','1,2'))); + $caculateRule = strtolower(MODULE_NAME.'/'.CONTROLLER_NAME.'/'.ACTION_NAME."_caculate_check"); + $this->assign('caculate_check',$this->checkRule($caculateRule,array('in','1,2'))); +// var_dump($caculateRule);die(); $countRule = strtolower(MODULE_NAME.'/'.CONTROLLER_NAME.'/'.ACTION_NAME."_count_check"); $this->assign($countfield,$this->checkRule($countRule,array('in','1,2')));