From 6b486331b5e925b79e9075671137d3d571bb6ad2 Mon Sep 17 00:00:00 2001 From: zhengyongxing Date: Mon, 28 Sep 2020 15:14:54 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B1=87=E6=80=BB=E6=9D=83=E9=99=90=E6=B5=8B?= =?UTF-8?q?=E8=AF=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Admin/Controller/AggregateRelationController.class.php | 4 ++-- .../Controller/AggregateStatementLackController.class.php | 5 +++-- .../Controller/AggregateStatementPoolController.class.php | 7 ++++--- 3 files changed, 9 insertions(+), 7 deletions(-) diff --git a/Application/Admin/Controller/AggregateRelationController.class.php b/Application/Admin/Controller/AggregateRelationController.class.php index 8d0346fd7..c627e132a 100644 --- a/Application/Admin/Controller/AggregateRelationController.class.php +++ b/Application/Admin/Controller/AggregateRelationController.class.php @@ -728,7 +728,7 @@ class AggregateRelationController extends AdminController if(IS_ROOT){ $resarr[] = $opBtn[$v]; }else{ - if(in_array($v,$this->OpAuthList)){ + if(in_array('Admin/aggregateRelation/'.$v,$this->OpAuthList)){ $resarr[] = $opBtn[$v]; } } @@ -750,7 +750,7 @@ class AggregateRelationController extends AdminController if(IS_ROOT){ $resarr[] = $v; }else{ - if(in_array($k,$this->OpAuthList)){ + if(in_array('Admin/aggregateRelation/'.$k,$this->OpAuthList)){ $resarr[] = $v; } } diff --git a/Application/Admin/Controller/AggregateStatementLackController.class.php b/Application/Admin/Controller/AggregateStatementLackController.class.php index 2f8ac5645..554e2b790 100644 --- a/Application/Admin/Controller/AggregateStatementLackController.class.php +++ b/Application/Admin/Controller/AggregateStatementLackController.class.php @@ -33,6 +33,7 @@ class AggregateStatementLackController extends ThinkController if(!IS_ROOT){ $this->OpAuthList= getModuleControllerAuth(); } +// dump($this->OpAuthList);die(); $this->assign('menubtn',$this->menuAuth()); $map = [ @@ -350,7 +351,7 @@ class AggregateStatementLackController extends ThinkController if(IS_ROOT){ $resarr[] = $opBtn[$v]; }else{ - if(in_array($v,$this->OpAuthList)){ + if(in_array("Admin/aggregateStatementLack/".$v,$this->OpAuthList)){ $resarr[] = $opBtn[$v]; } } @@ -368,7 +369,7 @@ class AggregateStatementLackController extends ThinkController if(IS_ROOT){ $resarr[] = $v; }else{ - if(in_array($k,$this->OpAuthList)){ + if(in_array("Admin/aggregateStatementLack/".$k,$this->OpAuthList)){ $resarr[] = $v; } } diff --git a/Application/Admin/Controller/AggregateStatementPoolController.class.php b/Application/Admin/Controller/AggregateStatementPoolController.class.php index c8a7b9942..10ce92cf5 100644 --- a/Application/Admin/Controller/AggregateStatementPoolController.class.php +++ b/Application/Admin/Controller/AggregateStatementPoolController.class.php @@ -921,6 +921,7 @@ class AggregateStatementPoolController extends ThinkController default: break; } + $optist = ["viewPool","cancelPool"]; // if($info['platform_amount'] <= 0 && $info['company_type'] != 2){ @@ -942,7 +943,7 @@ class AggregateStatementPoolController extends ThinkController }else{ $optist = array_diff($optist, ["cancelPool","reCount"]); } - + if(empty($info['ext_file'])){ //未上传凭证 $optist = array_diff($optist, ["viewVoucher", "editVoucher"]); @@ -969,7 +970,7 @@ class AggregateStatementPoolController extends ThinkController if(IS_ROOT){ $resarr[] = $opBtn[$v]; }else{ - if(in_array($v,$this->OpAuthList)){ + if(in_array("Admin/aggregateStatementPool/".$v,$this->OpAuthList)){ $resarr[] = $opBtn[$v]; } } @@ -988,7 +989,7 @@ class AggregateStatementPoolController extends ThinkController if(IS_ROOT){ $resarr[] = $v; }else{ - if(in_array($k,$this->OpAuthList)){ + if(in_array("Admin/aggregateStatementPool/".$k,$this->OpAuthList)){ $resarr[] = $v; } }