diff --git a/app/crm/service/CustomerService.php b/app/crm/service/CustomerService.php index e411984..e781f68 100644 --- a/app/crm/service/CustomerService.php +++ b/app/crm/service/CustomerService.php @@ -88,7 +88,7 @@ class CustomerService foreach ($customer as &$item) { $item = $this->getCustomer($item); if($seas == 'seas'){ - $item['seas_time'] = time()-strtotime($item['deleted_at']); + $item['seas_time'] = time()-(empty($item['deleted_at'])?0:strtotime($item['deleted_at'])); } } unset($item);