Commit c79c0068 authored by hujun's avatar hujun

拨号返回

parent 0a3653af
...@@ -40,6 +40,7 @@ class CellPhone extends Basic ...@@ -40,6 +40,7 @@ class CellPhone extends Basic
if ($result['status'] == 'success') { if ($result['status'] == 'success') {
$this->msg = $result['msg']; $this->msg = $result['msg'];
$this->data['phone'] = $result['phone']; $this->data['phone'] = $result['phone'];
$this->data['follow_id'] = $result['follow_id'];
} else { } else {
$this->msg = $result['msg']; $this->msg = $result['msg'];
$this->code = 101; $this->code = 101;
......
...@@ -108,11 +108,11 @@ class CallPhoneService ...@@ -108,11 +108,11 @@ class CallPhoneService
$result['phone'] = $phone_b; $result['phone'] = $phone_b;
if ($landlord) { if ($landlord) {
$result['follow_id'] = $this->addPhoneFollow(); //打默认跟进(客源)
} else {
if ($house_id) { if ($house_id) {
$result['follow_id'] = $this->addPhoneFollow(false, $house_id); //打默认跟进(房源) $result['follow_id'] = $this->addPhoneFollow(false, $house_id); //打默认跟进(房源)
} }
} else {
$result['follow_id'] = $this->addPhoneFollow(); //打默认跟进(客源)
} }
return $result; return $result;
...@@ -132,12 +132,13 @@ class CallPhoneService ...@@ -132,12 +132,13 @@ class CallPhoneService
$result['msg'] = '已绑定,返回隐私号码。'; $result['msg'] = '已绑定,返回隐私号码。';
if ($landlord) { if ($landlord) {
$result['follow_id'] = $this->addPhoneFollow(); //打默认跟进(客源)
} else {
if ($house_id) { if ($house_id) {
$result['follow_id'] = $this->addPhoneFollow(false, $house_id); //打默认跟进(源) $result['follow_id'] = $this->addPhoneFollow(false, $house_id); //打默认跟进(源)
} }
} else {
$result['follow_id'] = $this->addPhoneFollow(); //打默认跟进(客源)
} }
return $result; //绑定过了,返回隐号 return $result; //绑定过了,返回隐号
} }
...@@ -186,11 +187,11 @@ class CallPhoneService ...@@ -186,11 +187,11 @@ class CallPhoneService
$bind->recordBindPhone($call_phone['phone'], $phone_a, $phone_b, $record, $this->expiry_date, $this->subs_id, $this->request_id, $this->mapping_id, $this->is_privacy, $this->release); $bind->recordBindPhone($call_phone['phone'], $phone_a, $phone_b, $record, $this->expiry_date, $this->subs_id, $this->request_id, $this->mapping_id, $this->is_privacy, $this->release);
if ($landlord) { if ($landlord) {
$result['follow_id'] = $this->addPhoneFollow(); //打默认跟进(客源)
} else {
if ($house_id) { if ($house_id) {
$result['follow_id'] = $this->addPhoneFollow(false, $house_id); //打默认跟进(客源) $result['follow_id'] = $this->addPhoneFollow(false, $house_id); //打默认跟进(客源)
} }
} else {
$result['follow_id'] = $this->addPhoneFollow(); //打默认跟进(房源)
} }
} }
......
...@@ -165,6 +165,7 @@ class CellPhone extends Basic ...@@ -165,6 +165,7 @@ class CellPhone extends Basic
$push->pushMessageById($this->userId, '客户详情', '后台拨打电话推送客户详情', 'user_info', $this->params['user_id']); $push->pushMessageById($this->userId, '客户详情', '后台拨打电话推送客户详情', 'user_info', $this->params['user_id']);
$result['code'] = 200; $result['code'] = 200;
$result['data']['phone'] = $data['phone']; $result['data']['phone'] = $data['phone'];
$result['data']['follow_id'] = $data['follow_id'];
} else { } else {
$result['status'] = 101; $result['status'] = 101;
$result['msg'] = $data['msg']; $result['msg'] = $data['msg'];
......
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