diff --git a/Application/Home/Controller/SafeController.class.php b/Application/Home/Controller/SafeController.class.php index 567c98767..c4ddb5e71 100644 --- a/Application/Home/Controller/SafeController.class.php +++ b/Application/Home/Controller/SafeController.class.php @@ -202,7 +202,6 @@ class SafeController extends BaseController{ $userAddress[0] = $_REQUEST['s_province'].','.$_REQUEST['s_city'].','.$_REQUEST['s_county']; $userAddress[1] = $contactAddress; $email = $_REQUEST['email']; - $account_type = $_REQUEST['account_type']; //账户类型 $bank_name = $_REQUEST["bank_name"]; //开户银行 $bank_account = $_REQUEST['bank_account']; //银行账户名 $bank_card = $_REQUEST['bank_card']; //银行账号 @@ -210,7 +209,7 @@ class SafeController extends BaseController{ $businesspic = $_REQUEST['businesspic']; $agreementpic = $_REQUEST['agreementpic']; $alipayaccount = $_REQUEST['alipay_account']; - $alipayrealname = $_REQUEST['aplipay_real_name']; + $alipayrealname = $_REQUEST['alipay_real_name']; if(empty($_REQUEST['agree'])) { $this->error("请先认真阅读协议,然后勾选协议"); return false; @@ -228,7 +227,7 @@ class SafeController extends BaseController{ $this->error("手机号码格式不合法"); return false; } - $telInfo = M('promote','tab_')->field('id')->where(['mobile_phone'=>$tel])->find(); + $telInfo = M('promote','tab_')->field('id')->where("mobile_phone = $tel and id <> $id")->find(); if(!empty($telInfo)) { $this->error("手机号码已存在"); return false; @@ -261,10 +260,6 @@ class SafeController extends BaseController{ $this->error('邮箱地址错误'); return false; } - if(empty($account_type)) { - $this->error("账户类型不能为空"); - return false; - } if(empty($bank_name)) { $this->error("开户银行不能为空"); return false; @@ -310,7 +305,6 @@ class SafeController extends BaseController{ $data['idcard'] = $id_card; $data['address'] = json_encode($userAddress,FALSE); $data['email'] = $email; - $data['account_type'] = $account_type; $data['bank_name'] = $bank_name; $data['bank_account'] = $bank_account; $data['bank_card'] = $bank_card; @@ -318,12 +312,14 @@ class SafeController extends BaseController{ $data['businesspic'] = $businesspic; $data['agreementpic'] = $agreementpic; $data['ver_status'] = 3; - dd($data); - if($account_type == "公司") { - $data['account_type'] = 1; - }else { - $data['account_type'] = 2; - } + $data['alipay_account'] = $alipayaccount; + $data['alipay_real_name'] = $alipayrealname; + + // if($account_type == "公司") { + // $data['account_type'] = 1; + // }else { + // $data['account_type'] = 2; + // } $updateRs = M("promote","tab_")->where(['id'=>$id])->save($data); if($updateRs) { diff --git a/Application/Home/View/default/Safe/modifyBaseInfo.html b/Application/Home/View/default/Safe/modifyBaseInfo.html index 504a75f51..7ce082853 100644 --- a/Application/Home/View/default/Safe/modifyBaseInfo.html +++ b/Application/Home/View/default/Safe/modifyBaseInfo.html @@ -256,7 +256,7 @@ -