From 4c3112b70e3b17cbfa9f844f8be8094acb48bf89 Mon Sep 17 00:00:00 2001 From: zhengyongxing Date: Wed, 22 Jul 2020 11:40:45 +0800 Subject: [PATCH] =?UTF-8?q?=E5=85=85=E5=80=BC=E4=BF=A1=E6=81=AF=E6=9F=A5?= =?UTF-8?q?=E7=9C=8B=E6=9D=83=E9=99=90=E6=B7=BB=E5=8A=A0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Admin/Controller/PromoteController.class.php | 4 +++- Application/Admin/View/Promote/add.html | 14 ++++++++++++++ Application/Admin/View/Promote/edit.html | 15 +++++++++++++++ Application/Base/Service/PromoteService.class.php | 1 + 4 files changed, 33 insertions(+), 1 deletion(-) diff --git a/Application/Admin/Controller/PromoteController.class.php b/Application/Admin/Controller/PromoteController.class.php index 0b982bbdf..8028d6501 100644 --- a/Application/Admin/Controller/PromoteController.class.php +++ b/Application/Admin/Controller/PromoteController.class.php @@ -267,7 +267,7 @@ class PromoteController extends ThinkController public function add($account=null, $password=null, $second_pwd=null, $real_name=null, $email=null, $mobile_phone=null, $bank_name=null, $bank_card=null, $admin=null, $status=null, $ba_id = null, $company_id = null, - $withdraw_show = null,$withdraw_done = null) + $withdraw_show = null,$withdraw_done = null,$can_view_recharge = null) { if (IS_POST) { if (C('PROMOTE_AUTO_AUDIT') == 1) { @@ -308,6 +308,7 @@ class PromoteController extends ThinkController 'company_relation' => $company_relation, 'withdraw_show'=>$withdraw_show, 'withdraw_done'=>$withdraw_done, + 'can_view_recharge'=>$can_view_recharge ); if (preg_match('/^[a-zA-Z0-9]{6,15}$/', $account)==false) { @@ -423,6 +424,7 @@ class PromoteController extends ThinkController $data['withdraw_show'] = $_POST['withdraw_show']; $data['withdraw_done'] = $_POST['withdraw_done']; + $data['can_view_recharge'] = $_POST['can_view_recharge']; if (empty($pwd)) { unset($data['password']); diff --git a/Application/Admin/View/Promote/add.html b/Application/Admin/View/Promote/add.html index 91b2935c5..0cf718a29 100644 --- a/Application/Admin/View/Promote/add.html +++ b/Application/Admin/View/Promote/add.html @@ -128,6 +128,20 @@ + + 充值信息查看权限: + + + + + + + + 公司结算查看权限: diff --git a/Application/Admin/View/Promote/edit.html b/Application/Admin/View/Promote/edit.html index 05782587d..1ea6799d3 100644 --- a/Application/Admin/View/Promote/edit.html +++ b/Application/Admin/View/Promote/edit.html @@ -289,6 +289,21 @@ 二级密码适用于推广后台会长代充与财务管理功能 + + + 充值信息查看权限: + + + + + + + + 公司结算查看权限: diff --git a/Application/Base/Service/PromoteService.class.php b/Application/Base/Service/PromoteService.class.php index 7da8cc031..5c953853d 100644 --- a/Application/Base/Service/PromoteService.class.php +++ b/Application/Base/Service/PromoteService.class.php @@ -964,6 +964,7 @@ class PromoteService { 'group_remark' => $params['group_remark'] ?? '', 'withdraw_show' => $params['withdraw_show'] ?? 0, 'withdraw_done' => $params['withdraw_done'] ?? 0, + 'can_view_recharge'=>$params['can_view_recharge'] ?? 0, ]; if ($parent) {