|
|
|
@ -793,10 +793,10 @@ class ToolController extends ThinkController {
|
|
|
|
|
if(!checkPhone(I('link_phone'))) {
|
|
|
|
|
$this->error('联系电话格式不正确');
|
|
|
|
|
}
|
|
|
|
|
$res2 = $model->where(['link_phone' => I('link_phone')])->getField('id');
|
|
|
|
|
if ($res2) {
|
|
|
|
|
$this->error('已存在此联系电话');
|
|
|
|
|
}
|
|
|
|
|
// $res2 = $model->where(['link_phone' => I('link_phone')])->getField('id');
|
|
|
|
|
// if ($res2) {
|
|
|
|
|
// $this->error('已存在此联系电话');
|
|
|
|
|
// }
|
|
|
|
|
$time = time();
|
|
|
|
|
$save['partner'] = $partner;
|
|
|
|
|
$save['status'] = $status;
|
|
|
|
|