From dc3500820132d780e1abb1b3b3625f9a0318e63d Mon Sep 17 00:00:00 2001 From: sunke <18850253506@163.com> Date: Tue, 19 Nov 2019 14:41:23 +0800 Subject: [PATCH] =?UTF-8?q?=E8=B5=84=E8=B4=A8=E8=AE=A4=E8=AF=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Controller/DownloadController.class.php | 2 ++ .../Home/Controller/SafeController.class.php | 17 ++++++++++------- .../Home/View/default/Safe/editModify.html | 5 +++-- 3 files changed, 15 insertions(+), 9 deletions(-) diff --git a/Application/Home/Controller/DownloadController.class.php b/Application/Home/Controller/DownloadController.class.php index ec28ddc7c..ea2f579ad 100644 --- a/Application/Home/Controller/DownloadController.class.php +++ b/Application/Home/Controller/DownloadController.class.php @@ -2403,6 +2403,8 @@ class DownloadController extends BaseController { foreach ($data as &$list) { //提现状态 + $list['pay_order_number'] = $this->encryption($list['pay_order_number']); + $list['user_account'] = $this->encryption($list['user_account']); if ($list['pay_status'] == 1) { switch ($list['selle_status']) { case 0: diff --git a/Application/Home/Controller/SafeController.class.php b/Application/Home/Controller/SafeController.class.php index 1be8fe404..2b21a142c 100644 --- a/Application/Home/Controller/SafeController.class.php +++ b/Application/Home/Controller/SafeController.class.php @@ -156,12 +156,14 @@ class SafeController extends BaseController{ $metaTitle = '基础信息'; $modelList = ['基础信息', $metaTitle]; $this->verifyPasswordView($modelList); + $id = get_pid(); + $ver_status = M('promote','tab_')->where(['id'=>$id])->getField('ver_status',true); + if($ver_status[0] == 1) { + //return $this->display('editModify'); + $this->redirect('editModify'); + + } if($_POST) { - $id = get_pid(); - $ver_status = M('promote','tab_')->where(['id'=>$id])->getField('ver_status',true); - if($ver_status[0] == 1) { - $this->success('认证',U('editModify')); - } $username = $_REQUEST['username']; //真实姓名 $id_card = $_REQUEST["id_card"]; //身份证号码 $tel = $_REQUEST['tel']; @@ -389,7 +391,7 @@ class SafeController extends BaseController{ $id = get_pid(); $updateRs = M("promote","tab_")->where(['id'=>$id])->save($data); if($updateRs) { - $this->success("更新信息成功"); + $this->success("更新信息成功",U('modifyBaseInfo')); }else { $this->error("更新信息失败"); } @@ -397,7 +399,7 @@ class SafeController extends BaseController{ public function ajaxEdit() { $id = get_pid(); - $rs = M("promote","tab_")->field('mobile_phone,address,email,account_type,bank_card')->where(['id'=>$id])->find(); + $rs = M("promote","tab_")->field('mobile_phone,address,email,account_type,bank_card,anothpic')->where(['id'=>$id])->find(); $this->assign('tel',$rs['mobile_phone']); $this->assign('address',$rs['address']); $this->assign('email',$rs['email']); @@ -410,6 +412,7 @@ class SafeController extends BaseController{ 'account_type'=> $rs['account_type'], 'bank_card'=> $rs['bank_card'], 'idcarpic' => $rs['idcarpic'], + 'anothpic' => $rs['anothpic'], ]; if($rs['account_type'] == 1) { $res['complanystatus'] = true; diff --git a/Application/Home/View/default/Safe/editModify.html b/Application/Home/View/default/Safe/editModify.html index d767abb7b..e063c954a 100644 --- a/Application/Home/View/default/Safe/editModify.html +++ b/Application/Home/View/default/Safe/editModify.html @@ -175,6 +175,7 @@ success:function(res) { var tel = res.tel var address = res.address + console.log(res) var email = res.email var account_type = res.account_type if(account_type == 1) { @@ -187,7 +188,7 @@ var bank_card = res.bank_card var complanystatus = res.complanystatus var personalstatus = res.personalstatus - + var anothpic = res.anothpic layer.open({ type: 1 ,title: false //不显示标题栏 @@ -211,7 +212,7 @@ +' 开户银行:' +'' +' 补充协议:' - +' ' + +' ' +'
点击上传
' +'
' +'
*须补充修改协议(联系平台签署)
'