Commit ef3838a9 authored by zhuwei's avatar zhuwei

1

parent ab427e20
...@@ -691,12 +691,9 @@ class AmercementService ...@@ -691,12 +691,9 @@ class AmercementService
public function updatePayAmercement($trade_no, $status, $remark) public function updatePayAmercement($trade_no, $status, $remark)
{ {
$amercementPayModel = new OAmercementPayModel(); $amercementPayModel = new OAmercementPayModel();
big_log('status'.$status);
big_log('trade_no'.$trade_no);
//罚款记录改已支付 //罚款记录改已支付
if($status == 1){ if($status == 1){
$payInfo = $amercementPayModel->getAmercementPayInfo(['trade_no'=>$trade_no], "amercement_id"); $payInfo = $amercementPayModel->getAmercementPayInfo(['trade_no'=>$trade_no], "amercement_id");
big_log($payInfo);
if(isset($payInfo['amercement_id']) && $payInfo['amercement_id'] > 0){ if(isset($payInfo['amercement_id']) && $payInfo['amercement_id'] > 0){
$data = []; $data = [];
$data['id'] = $payInfo['amercement_id']; $data['id'] = $payInfo['amercement_id'];
......
...@@ -34,23 +34,15 @@ class UserCallStintService ...@@ -34,23 +34,15 @@ class UserCallStintService
* @return int * @return int
*/ */
public function isUserReport($user_id){ public function isUserReport($user_id){
big_log("+++++++++++++++客户ID:{$user_id}+++++++++++++++++++");
$is_report = []; $is_report = [];
$band_user_list = $this->getUserBindList($user_id); $band_user_list = $this->getUserBindList($user_id);
big_log('关联客户');
big_log($band_user_list);
foreach ($band_user_list as $v) { foreach ($band_user_list as $v) {
$res = $this->findReport($v); $res = $this->findReport($v);
big_log("客户ID:{$v}当天是否有约带看");
big_log($res);
if($res){ if($res){
$is_report = $res; $is_report = $res;
break; break;
} }
} }
big_log('关联客户');
big_log('++++++++++++++++++++++++++++++++++');
return $is_report; return $is_report;
} }
......
...@@ -391,23 +391,14 @@ class UserLogService ...@@ -391,23 +391,14 @@ class UserLogService
//3.3.9 如果有约带看 预计到场时间的前1小时和后1小时,除了提交约带看的经纪人和客方,其他人都无法联系客户(包括关联客户)! //3.3.9 如果有约带看 预计到场时间的前1小时和后1小时,除了提交约带看的经纪人和客方,其他人都无法联系客户(包括关联客户)!
$front_see_time = strtotime ("-1 hour", strtotime($is_user_report[0]['predict_see_time'])); $front_see_time = strtotime ("-1 hour", strtotime($is_user_report[0]['predict_see_time']));
$behind_see_time = strtotime ("+1 hour", strtotime($is_user_report[0]['predict_see_time'])); $behind_see_time = strtotime ("+1 hour", strtotime($is_user_report[0]['predict_see_time']));
big_log($is_user_report[0]['predict_see_time']);
#客户是否在保护期内(0:保护器内 1:超过保护期) #客户是否在保护期内(0:保护器内 1:超过保护期)
$user_service = new UserService(); $user_service = new UserService();
$is_outstrip_twenty_four_hours = $user_service->isUserProtect($user_id); $is_outstrip_twenty_four_hours = $user_service->isUserProtect($user_id);
big_log('客户是否在保护期内'.$is_outstrip_twenty_four_hours);
big_log($is_user_report);
big_log(date("Y-m-d H:i:s",$front_see_time));
big_log(time());
big_log(date("Y-m-d H:i:s"));
big_log(date("Y-m-d H:i:s", $behind_see_time));
if (($is_outstrip_twenty_four_hours == 1) && ($is_user_report && (time() < $behind_see_time &&(time() > $front_see_time)))) { if (($is_outstrip_twenty_four_hours == 1) && ($is_user_report && (time() < $behind_see_time &&(time() > $front_see_time)))) {
big_log("客户ID:{$user_id} 有约带看");
$res = $this->isPhoneButtonShowA($user_id, $agent_id, $is_vip, $result_user_phone, $result_agent_id); $res = $this->isPhoneButtonShowA($user_id, $agent_id, $is_vip, $result_user_phone, $result_agent_id);
}else{ }else{
//无约带看 走老逻辑 //无约带看 走老逻辑
big_log("客户ID:{$user_id} 无约带看 走老逻辑");
$res = $this->isPhoneButtonShowB($user_id, $agent_id, $is_vip, $result_user_phone, $result_agent_id); $res = $this->isPhoneButtonShowB($user_id, $agent_id, $is_vip, $result_user_phone, $result_agent_id);
} }
return $res; return $res;
...@@ -427,7 +418,6 @@ class UserLogService ...@@ -427,7 +418,6 @@ class UserLogService
#当天有约带看的客户 0:不显示 1:显示 #当天有约带看的客户 0:不显示 1:显示
$s_user_call = new UserCallStintService(); $s_user_call = new UserCallStintService();
$report_agents = $s_user_call->getUserReportAgentIdList($user_id); $report_agents = $s_user_call->getUserReportAgentIdList($user_id);
big_log($report_agents);
//3.3.9 有约带看订单的客户 预计到场当天 只能 约带看提交人 或 客方 拨打电话 //3.3.9 有约带看订单的客户 预计到场当天 只能 约带看提交人 或 客方 拨打电话
if (($result_agent_id == $agent_id) or (in_array($agent_id, $report_agents))) { if (($result_agent_id == $agent_id) or (in_array($agent_id, $report_agents))) {
return 0; return 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