Commit e692831a authored by zhuwei's avatar zhuwei

客户动态展示加搜索加客户详情 保护期

parent 4f816908
......@@ -219,6 +219,18 @@ class Remark extends Basic
$user_res['agentinfo'] = $Agents_res?$Agents_res['name'].'/'.$Agents_res['phone']:'未知';
//判断客户是否超过24小时保护期间 0:保护器内 1:超过保护期
/*$ser = new UserExpiredTimeService();
$res = $ser->getExpiredTimeByUser($v["user_id"]);
$data['data']['list'][$k]['is_outstrip_twenty_four_hours'] = $res ? 0 : 1 ;*/
$is_outstrip_twenty_four_hours = 0;
if((time() - strtotime($user_res['u_create_time'])) > (60*60*24)){
$is_outstrip_twenty_four_hours = 1;
}
$user_res['is_outstrip_twenty_four_hours'] = $is_outstrip_twenty_four_hours;
$records = new GOperatingRecords();
$records_result = $records->user_history($user_id);
return $this->response("200", "success!", ['user_info'=>$user_res,'user_date'=>$UPhoneFollowPp_res,'user_history'=>$records_result]);
......
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