Merge remote-tracking branch 'origin/release' into release

master
liuweiwen 5 years ago
commit 92900a57f0

@ -207,6 +207,11 @@ class SafeController extends BaseController{
$this->error("手机号码格式不合法");
return false;
}
$telInfo = M('promote','tab_')->field('id')->where(['mobile_phone'=>$tel])->find();
if(!empty($telInfo)) {
$this->error("手机号码已存在");
return false;
}
if(empty($id_card)) {
$this->error("身份证号码不能为空");
return false;
@ -344,12 +349,6 @@ class SafeController extends BaseController{
$id = get_pid();
$rs = M("promote","tab_")->field('anothpic,ver_status,real_name,bank_card,mobile_phone,email,address,idcard')->where(['id'=>$id])->find();
$anothpic = $rs['anothpic'];
/* if(!empty($anothpic)) {
$idcarpicArr = explode(',', $anothpic);
foreach ($idcarpicArr as $key => $value) {
$promoteInfo['valuedata'][$key] = $value;
}
} */
$promoteInfo = "";
$address = json_decode($rs['address'],false)[1];
$realname = mb_strlen($rs['real_name'],'utf-8') == 2 ? mb_substr($rs['real_name'],0,1,'utf-8').'*':mb_substr($rs['real_name'],0,1,'utf-8').'**';
@ -380,6 +379,11 @@ class SafeController extends BaseController{
$this->error("手机号码格式不合法");
return false;
}
$telInfo = M('promote','tab_')->field('id')->where(['mobile_phone'=>$tel])->find();
if(!empty($telInfo)) {
$this->error("手机号码已存在");
return false;
}
if(empty($address1)) {
$this->error("地址不能为空");

Loading…
Cancel
Save