From 332aea3696f4e3b20dd2899823155041e5b1648f Mon Sep 17 00:00:00 2001 From: dengbw Date: Tue, 14 Sep 2021 17:36:48 +0800 Subject: [PATCH] admin_customers_914_5 --- api/controllers/wxapp/licheb/Customers.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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]);