From ca4e0ed4ed1e3c1276da47e310a697d8061d6eef Mon Sep 17 00:00:00 2001 From: "WIN-C27C5MSVTPO\\16961" <1696136552@qq.com> Date: Mon, 11 Aug 2025 10:00:05 +0800 Subject: [PATCH] =?UTF-8?q?=E5=B7=A5=E5=8D=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/ticket/service/ConversationService.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/ticket/service/ConversationService.php b/app/ticket/service/ConversationService.php index 7682079..8e5e49e 100644 --- a/app/ticket/service/ConversationService.php +++ b/app/ticket/service/ConversationService.php @@ -23,7 +23,7 @@ class ConversationService $ossservice = new OssService(); foreach ($result as $key => $value) { $result[$key]['content'] = str_replace($status_fanyi,$ticket_status,$value['content']); - $result[$key]['attachment'] = unserialize($value['attachment']); + $result[$key]['attachment'] = empty($value['attachment'])?[]:unserialize($value['attachment']); foreach ($result[$key]['attachment'] as $k => $attachment) { $result[$key]['attachment_full'][$k] = (!empty($attachment))?$ossservice->generatePrivateUrl($attachment):''; }