diff --git a/app/crmAdmin/service/CustomerService.php b/app/crmAdmin/service/CustomerService.php index 21d543a..8dbd794 100644 --- a/app/crmAdmin/service/CustomerService.php +++ b/app/crmAdmin/service/CustomerService.php @@ -142,6 +142,7 @@ class CustomerService $item['user_name'] = empty($customerHis['user_his']) ? '' : User::where('id',$customerHis['user_his'])->value('name'); $item['audit'] = CustomerAudit::where('customer_id', $item->id)->orderBy('id', 'desc')->first(); if (!empty($item['audit'])&&!empty($item['audit']['img'])) { + $item['audit'] = $item['audit']?$item['audit']->toArray():''; $item['audit']['img'] = explode(',', $item['audit']['img']); $ossservice = new OssService();