From 511f53e83c2a7e7ef93902767c06ebb35d29af95 Mon Sep 17 00:00:00 2001 From: chenzhi Date: Mon, 22 Jun 2020 15:41:24 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96=E6=9D=83=E9=99=90?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Application/Admin/Common/function.php | 3 ++- .../Admin/Controller/CompanyStatementController.class.php | 2 +- .../Admin/Controller/CompanyStatementLackController.class.php | 2 +- .../Admin/Controller/CompanyStatementPoolController.class.php | 2 +- Application/Payment/Common/function.php | 2 +- 5 files changed, 6 insertions(+), 5 deletions(-) diff --git a/Application/Admin/Common/function.php b/Application/Admin/Common/function.php index 408114613..b014228ea 100644 --- a/Application/Admin/Common/function.php +++ b/Application/Admin/Common/function.php @@ -975,8 +975,9 @@ function getModuleControllerAuth() $group = $_SESSION['onethink_admin']['user_group_id']; //获取全部权限列表 $ruleList = M("AuthGroup")->field("rules")->where("id='{$group}'")->find()['rules']; + //获取所有含有规则的数据 - $mc = "MODULE_NAME."/".CONTROLLER_NAME"; + $mc = MODULE_NAME."/".CONTROLLER_NAME; $authlist = M("AuthRule")->field('name')->where("name like '{$mc}%' AND id in ($ruleList)")->select(); $Auth = []; foreach ($authlist as $k => $v) { diff --git a/Application/Admin/Controller/CompanyStatementController.class.php b/Application/Admin/Controller/CompanyStatementController.class.php index d9b584f24..84062767f 100644 --- a/Application/Admin/Controller/CompanyStatementController.class.php +++ b/Application/Admin/Controller/CompanyStatementController.class.php @@ -112,7 +112,7 @@ class CompanyStatementController extends ThinkController if(isset($_REQUEST['verify_status'])){ $map['verify_status'] = $_REQUEST['verify_status']; } - $this->checkListOrCountAuthRestMap($map);//导出权限 + // $this->checkListOrCountAuthRestMap($map);//导出权限 //条件end $data = M("company_statement","tab_") ->field("id,withdraw_type,company_name,company_belong,statement_begin_time,statement_end_time,statement_money,platform_amount,verify_status,verify_log,op_time,remark") diff --git a/Application/Admin/Controller/CompanyStatementLackController.class.php b/Application/Admin/Controller/CompanyStatementLackController.class.php index 7def57060..ecc86fd4b 100644 --- a/Application/Admin/Controller/CompanyStatementLackController.class.php +++ b/Application/Admin/Controller/CompanyStatementLackController.class.php @@ -62,7 +62,7 @@ class CompanyStatementLackController extends ThinkController $map['is_payment'] = $_REQUEST['is_payment']; } - $this->checkListOrCountAuthRestMap($map);//导出权限 + // $this->checkListOrCountAuthRestMap($map);//导出权限 //条件end $data = $this->DBModel diff --git a/Application/Admin/Controller/CompanyStatementPoolController.class.php b/Application/Admin/Controller/CompanyStatementPoolController.class.php index 8c72a240c..3444a8998 100644 --- a/Application/Admin/Controller/CompanyStatementPoolController.class.php +++ b/Application/Admin/Controller/CompanyStatementPoolController.class.php @@ -96,7 +96,7 @@ class CompanyStatementPoolController extends ThinkController } - $this->checkListOrCountAuthRestMap($map);//导出权限 + // $this->checkListOrCountAuthRestMap($map);//导出权限 //条件end $data = $this->DBModel ->field("*") diff --git a/Application/Payment/Common/function.php b/Application/Payment/Common/function.php index 408114613..7a866d34e 100644 --- a/Application/Payment/Common/function.php +++ b/Application/Payment/Common/function.php @@ -976,7 +976,7 @@ function getModuleControllerAuth() //获取全部权限列表 $ruleList = M("AuthGroup")->field("rules")->where("id='{$group}'")->find()['rules']; //获取所有含有规则的数据 - $mc = "MODULE_NAME."/".CONTROLLER_NAME"; + $mc = MODULE_NAME."/".CONTROLLER_NAME; $authlist = M("AuthRule")->field('name')->where("name like '{$mc}%' AND id in ($ruleList)")->select(); $Auth = []; foreach ($authlist as $k => $v) {