Commit 5b04223c authored by zhuwei's avatar zhuwei

客户动态展示加搜索加客户详情2

parent 7a38e882
...@@ -445,6 +445,18 @@ class Broker extends Basic ...@@ -445,6 +445,18 @@ class Broker extends Basic
if ($res && ($res[0]['status'] == 1)) {//如果存在 if ($res && ($res[0]['status'] == 1)) {//如果存在
$data["is_collect"] = 1; $data["is_collect"] = 1;
} }
//判断客户是否超过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;
}
$data['is_outstrip_twenty_four_hours'] = $is_outstrip_twenty_four_hours;
return $this->response("200", "success!", $data); return $this->response("200", "success!", $data);
} }
......
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