Commit 007c4105 authored by hujun's avatar hujun

楼盘房东电话类型

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