Commit c7adc67e authored by hujun's avatar hujun

$source_type

parent ad0ec2fa
...@@ -72,10 +72,10 @@ class CallPhoneService ...@@ -72,10 +72,10 @@ class CallPhoneService
* @param int $agent_id * @param int $agent_id
* @param string $agent_name * @param string $agent_name
* @param int $landlord * @param int $landlord
* @param int $type * @param int $source_type
* @return mixed * @return mixed
*/ */
public function bindAXB($phone_a, $phone_b, $record = true, int $user_id, $agent_id, string $agent_name, int $landlord, int $type) public function bindAXB($phone_a, $phone_b, $record = true, int $user_id, $agent_id, string $agent_name, int $landlord, int $source_type)
{ {
$result['status'] = 'failed'; $result['status'] = 'failed';
$type = ''; $type = '';
...@@ -83,11 +83,12 @@ class CallPhoneService ...@@ -83,11 +83,12 @@ class CallPhoneService
$result['msg'] = '本机号码格式错误,请重新编辑!'; $result['msg'] = '本机号码格式错误,请重新编辑!';
return $result; return $result;
} }
if (!empty($user_id)) { if (!empty($user_id)) {
if ($landlord) { if ($landlord) {
if ($type == 1) { if ($source_type == 1) {
$phone_b = $this->getHouseLandlordPhone($user_id); //商铺房东手机号 $phone_b = $this->getHouseLandlordPhone($user_id); //商铺房东手机号
} else { } else {
$phone_b = $this->getBuildingRoomLandlordPhone($user_id); //楼盘房源房东手机号 $phone_b = $this->getBuildingRoomLandlordPhone($user_id); //楼盘房源房东手机号
} }
......
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