Commit 007c4105 authored by hujun's avatar hujun

楼盘房东电话类型

parent b97d05af
...@@ -83,14 +83,15 @@ class CallPhoneService ...@@ -83,14 +83,15 @@ class CallPhoneService
$result['msg'] = '本机号码格式错误,请重新编辑!'; $result['msg'] = '本机号码格式错误,请重新编辑!';
return $result; return $result;
} }
$user_type = 0; //0客户1商铺房东2楼盘房东
if (!empty($user_id)) { if (!empty($user_id)) {
if ($landlord) { if ($landlord) {
if ($source_type == 1) { if ($source_type == 1) {
$phone_b = $this->getHouseLandlordPhone($user_id); //商铺房东手机号 $phone_b = $this->getHouseLandlordPhone($user_id); //商铺房东手机号
$user_type = 1;
} else { } else {
$phone_b = $this->getBuildingRoomLandlordPhone($user_id); //楼盘房源房东手机号 $phone_b = $this->getBuildingRoomLandlordPhone($user_id); //楼盘房源房东手机号
$user_type = 2;
} }
} else { } else {
$this->user_id = $user_id; $this->user_id = $user_id;
...@@ -167,7 +168,7 @@ class CallPhoneService ...@@ -167,7 +168,7 @@ class CallPhoneService
$this->release = 1; //是否释放 $this->release = 1; //是否释放
if (empty($this->day_num)) { if (empty($this->day_num)) {
$this->expiry_date = _EXPIRATION; $this->expiry_date = _EXPIRATION;
$user_type = 0; // $user_type = 0;
} else { } else {
if ($landlord) { if ($landlord) {
if ($this->day_num == 0) { if ($this->day_num == 0) {
...@@ -179,7 +180,7 @@ class CallPhoneService ...@@ -179,7 +180,7 @@ class CallPhoneService
$user_type = 1; $user_type = 1;
} else { } else {
$this->expiry_date = date('Y-m-d H:i:s', strtotime("+{$this->day_num} day")); $this->expiry_date = date('Y-m-d H:i:s', strtotime("+{$this->day_num} day"));
$user_type = 0; // $user_type = 0;
} }
} }
......
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