|
|
|
@ -156,12 +156,14 @@ class SafeController extends BaseController{
|
|
|
|
|
$metaTitle = '基础信息';
|
|
|
|
|
$modelList = ['基础信息', $metaTitle];
|
|
|
|
|
$this->verifyPasswordView($modelList);
|
|
|
|
|
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'));
|
|
|
|
|
//return $this->display('editModify');
|
|
|
|
|
$this->redirect('editModify');
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
if($_POST) {
|
|
|
|
|
$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;
|
|
|
|
|