Commit b4331c5d authored by hujun's avatar hujun

判断号码相同

parent 33fbb650
......@@ -95,7 +95,7 @@ class CallPhoneService
$phone_b = $user_data['user_phone'];
}
if (empty($phone_a)) {
if (empty($phone_a) || strlen($phone_a) != 11) {
$result['msg'] = '参数错误(A),请截图联系运营人员!';
return $result;
}
......@@ -110,6 +110,11 @@ class CallPhoneService
return $result;
}
if ($phone_a == $phone_b) {
$result['msg'] = '拨号号码与客户手机号相同,不能拨打。';
return $result;
}
$this->phone_a = $phone_a;//经纪人手机号
$this->phone_b = $phone_b;//客户手机号
$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