From 0fba64c6f1abd7ff352e2267836400c889d42116 Mon Sep 17 00:00:00 2001 From: liuweiwen <“529520975@qq.com> Date: Wed, 22 Jan 2020 16:39:08 +0800 Subject: [PATCH] =?UTF-8?q?=E6=95=B0=E6=8D=AE=E5=B1=95=E7=A4=BA=E6=9D=83?= =?UTF-8?q?=E9=99=90=EF=BC=9A=E5=8B=BE=E9=80=89=E6=9D=83=E9=99=90=E6=97=B6?= =?UTF-8?q?=EF=BC=8C*=E5=8F=B7=E5=B1=8F=E8=94=BD=E7=9A=84=E5=9C=B0?= =?UTF-8?q?=E6=96=B9=E8=A6=81=E5=BC=80=E6=94=BE=EF=BC=8C=E5=8F=A6=E6=B2=A1?= =?UTF-8?q?=E6=95=B0=E6=8D=AE=E6=9D=83=E9=99=90=E7=9A=84=E5=9C=B0=E6=96=B9?= =?UTF-8?q?=E8=A1=A5=E4=B8=8A?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Controller/ApplyController.class.php | 2 ++ .../Controller/PublicController.class.php | 3 ++- .../Controller/SupportController.class.php | 2 ++ .../TestResourceController.class.php | 3 ++- Application/Admin/View/Apply/and_lists.html | 5 +++-- Application/Admin/View/Apply/app_lists.html | 5 +++-- Application/Admin/View/Deposit/lists.html | 11 +++++----- Application/Admin/View/Member/edit.html | 6 ++++-- .../Admin/View/Member/login_record.html | 5 +++-- Application/Admin/View/Member/user_info.html | 20 +++++++++++-------- Application/Admin/View/Mend/lists.html | 17 +++++++++------- .../Admin/View/Promote/agent_list.html | 5 +++-- Application/Admin/View/Promote/belong.html | 10 ++++++---- .../Admin/View/Promote/ch_reg_list.html | 15 ++++++++------ Application/Admin/View/Promote/lists.html | 20 ++++++++++++------- .../Admin/View/Promote/spend_list.html | 15 ++++++++------ Application/Admin/View/Query/withdraw.html | 5 +++-- Application/Admin/View/Spend/lists.html | 10 ++++++---- Application/Admin/View/Support/lists.html | 5 +++-- .../View/TestResource/supportNumberList.html | 5 +++-- Application/Admin/View/User/rolelist.html | 11 ++++++---- 21 files changed, 111 insertions(+), 69 deletions(-) diff --git a/Application/Admin/Controller/ApplyController.class.php b/Application/Admin/Controller/ApplyController.class.php index d95aa3643..717d5d89e 100644 --- a/Application/Admin/Controller/ApplyController.class.php +++ b/Application/Admin/Controller/ApplyController.class.php @@ -81,6 +81,8 @@ class ApplyController extends ThinkController } else { $map['app_version'] = 2; } + //为数据权限添加 + setPowerPromoteIds($map); $data = M('app_apply', 'tab_') -> where($map) -> order('apply_time desc') diff --git a/Application/Admin/Controller/PublicController.class.php b/Application/Admin/Controller/PublicController.class.php index 0b76890d8..7daf4f29a 100644 --- a/Application/Admin/Controller/PublicController.class.php +++ b/Application/Admin/Controller/PublicController.class.php @@ -177,6 +177,7 @@ class PublicController extends \Think\Controller session('user_auth_sign', null); session('user_auth_promote_ids', null); cookie('think_language', Null); + session('[destroy]'); // $this->success('退出成功!', U('login')); $this->ajaxReturn(array('status' => 1, 'msg' => '退出成功!')); } else { @@ -345,7 +346,7 @@ class PublicController extends \Think\Controller public function telsafecode($phone = '', $delay = 10, $flag = true) { $taskClient = new TaskClient(); - $result = $taskClient->sendSms($phone, get_client_ip()); + $result = $taskClient->sendSmsCode($phone, get_client_ip()); $data = []; if ($result['code'] == TaskClient::SUCCESS) { $data['status'] = 1; diff --git a/Application/Admin/Controller/SupportController.class.php b/Application/Admin/Controller/SupportController.class.php index dd07c96f3..73bcc9b55 100644 --- a/Application/Admin/Controller/SupportController.class.php +++ b/Application/Admin/Controller/SupportController.class.php @@ -27,6 +27,8 @@ class SupportController extends ThinkController { if(!empty(I('apply_status')) || I('apply_status')==='0'){ $map['apply_status']=I('apply_status'); } + //为数据权限添加 + setPowerPromoteIds($map); /* 获取频道列表 */ $list = M('test_resource','tab_') ->field('*') diff --git a/Application/Admin/Controller/TestResourceController.class.php b/Application/Admin/Controller/TestResourceController.class.php index 42ea32806..806f5d8e8 100644 --- a/Application/Admin/Controller/TestResourceController.class.php +++ b/Application/Admin/Controller/TestResourceController.class.php @@ -37,7 +37,8 @@ class TestResourceController extends ThinkController if(!empty(I('promote_name'))){ $map['tab_test_resource.promote_account']=['like','%'.I('promote_name').'%']; } - + //为数据权限添加 + setPowerPromoteIds($map, 'tab_test_resource.promote_id'); $data = M('test_resource','tab_') ->field('tab_test_resource.id,tab_test_resource.user_id,tab_test_resource.game_name,tab_test_resource.server_name,tab_test_resource.user_account,tab_test_resource.promote_account,tab_test_resource.role_name,tab_test_resource.create_time,device_number,lock_status as check_status') ->join('left join tab_user as user on tab_test_resource.user_id = user.id') diff --git a/Application/Admin/View/Apply/and_lists.html b/Application/Admin/View/Apply/and_lists.html index 0f383af0d..b931fc872 100644 --- a/Application/Admin/View/Apply/and_lists.html +++ b/Application/Admin/View/Apply/and_lists.html @@ -144,11 +144,12 @@