|
|
@ -100,7 +100,7 @@ class PartnerController extends ThinkController
|
|
|
|
$this->error('合作方已存在');
|
|
|
|
$this->error('合作方已存在');
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
if(!preg_match("/^1[358][0-9]{9}$/u",I('link_phone'))) {
|
|
|
|
if(!checkPhone(I('link_phone'))) {
|
|
|
|
$this->error('联系电话格式不正确');
|
|
|
|
$this->error('联系电话格式不正确');
|
|
|
|
}
|
|
|
|
}
|
|
|
|
$res2 = $model->where(['link_phone' => I('link_phone')])->getField('id');
|
|
|
|
$res2 = $model->where(['link_phone' => I('link_phone')])->getField('id');
|
|
|
@ -173,7 +173,7 @@ class PartnerController extends ThinkController
|
|
|
|
$this->error('合作方已存在');
|
|
|
|
$this->error('合作方已存在');
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
if(!preg_match("/^1[358][0-9]{9}$/u",I('link_phone'))) {
|
|
|
|
if(!checkPhone(I('link_phone'))) {
|
|
|
|
$this->error('联系电话格式不正确');
|
|
|
|
$this->error('联系电话格式不正确');
|
|
|
|
}
|
|
|
|
}
|
|
|
|
$res2 = $model->where([
|
|
|
|
$res2 = $model->where([
|
|
|
|