diff --git a/api/controllers/wxapp/licheb/Customers.php b/api/controllers/wxapp/licheb/Customers.php index d0a6c336..20d0f9ef 100644 --- a/api/controllers/wxapp/licheb/Customers.php +++ b/api/controllers/wxapp/licheb/Customers.php @@ -58,7 +58,7 @@ class Customers extends Wxapp if ($this->get_biz('type') != 5) { $other_data['客户来源'] = $this->get_cfTitle($row); } - $other_data['建档时间'] = $row['p_time']; + $other_data['建档时间'] = date('Y-m-d', strtotime($row['p_time'])); $row['cont_time'] != '0000-00-00 00:00:00' && $other_data['最近联系'] = date('Y-m-d', strtotime($row['cont_time'])); if ($this->session['group_id'] == 1) { $where_visit = ['c_id' => $id, 'biz_id' => $this->biz_id, 'sales_id' => $this->session['uid']]; @@ -921,7 +921,7 @@ class Customers extends Wxapp if ($param['biz_type'] != 5) { $other_data['客户来源'] = $this->get_cfTitle($val); } - $other_data['建档时间'] = $val['p_time']; + $other_data['建档时间'] = date('Y-m-d', strtotime($val['p_time'])); $val['cont_time'] != '0000-00-00 00:00:00' && $other_data['最近联系'] = date('Y-m-d', strtotime($val['cont_time'])); if ($param['group_id'] == 1) { $where_visit = ['c_id' => $val['id'], 'biz_id' => $this->biz_id, 'sales_id' => $this->session['uid']];