|
|
@ -793,10 +793,10 @@ class ToolController extends ThinkController {
|
|
|
|
if(!checkPhone(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');
|
|
|
|
if ($res2) {
|
|
|
|
// if ($res2) {
|
|
|
|
$this->error('已存在此联系电话');
|
|
|
|
// $this->error('已存在此联系电话');
|
|
|
|
}
|
|
|
|
// }
|
|
|
|
$time = time();
|
|
|
|
$time = time();
|
|
|
|
$save['partner'] = $partner;
|
|
|
|
$save['partner'] = $partner;
|
|
|
|
$save['status'] = $status;
|
|
|
|
$save['status'] = $status;
|
|
|
|