Commit 21003b26 authored by hujun's avatar hujun

判断号码相同

parent 43e4b31c
...@@ -93,7 +93,7 @@ class CallPhoneService ...@@ -93,7 +93,7 @@ class CallPhoneService
$phone_b = $user_data['user_phone']; $phone_b = $user_data['user_phone'];
} }
if (empty($phone_a)) { if (empty($phone_a) || strlen($phone_a) != 11) {
$result['msg'] = '参数错误(A),请截图联系运营人员!'; $result['msg'] = '参数错误(A),请截图联系运营人员!';
return $result; return $result;
} }
...@@ -108,6 +108,11 @@ class CallPhoneService ...@@ -108,6 +108,11 @@ class CallPhoneService
return $result; return $result;
} }
if ($phone_a == $phone_b) {
$result['msg'] = '拨号号码与客户手机号相同,不能拨打。';
return $result;
}
$this->phone_a = $phone_a;//经纪人手机号 $this->phone_a = $phone_a;//经纪人手机号
$this->phone_b = $phone_b;//客户手机号 $this->phone_b = $phone_b;//客户手机号
$this->record = $record; //是否录音 $this->record = $record; //是否录音
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment