diff --git a/api/controllers/wxapp/licheb/Customers.php b/api/controllers/wxapp/licheb/Customers.php index 3e8193a7..54cc17aa 100644 --- a/api/controllers/wxapp/licheb/Customers.php +++ b/api/controllers/wxapp/licheb/Customers.php @@ -267,7 +267,7 @@ class Customers extends Wxapp{ $result = true; if($up_data){ $status==1 && $up_data['cont_time'] = date('Y-m-d H:i:s'); //修改到店状态修改最后联系时间 - if($status==1 && $row['dt_time'] == '0000-00-00 00:00:00'){//首次到店时间 + if(($status==1 || $a_num) && $row['dt_time'] == '0000-00-00 00:00:00'){//首次到店时间 $up_data['dt_time'] = date('Y-m-d H:i:s'); } $result = $this->customers_model->update($up_data,['id'=>$id]);