From f845d1050fc734a3eaee31ac9f8202e4c27f1ede Mon Sep 17 00:00:00 2001 From: "WIN-C27C5MSVTPO\\16961" <1696136552@qq.com> Date: Mon, 11 Aug 2025 09:40:21 +0800 Subject: [PATCH] =?UTF-8?q?=E5=B7=A5=E5=8D=95=E7=94=A8=E6=88=B7=E5=90=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/ticket/service/TicketService.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/app/ticket/service/TicketService.php b/app/ticket/service/TicketService.php index 7f74902..8851914 100644 --- a/app/ticket/service/TicketService.php +++ b/app/ticket/service/TicketService.php @@ -2,6 +2,7 @@ namespace app\ticket\service; +use app\common\model\User; use app\ticket\logic\AttachmentLogic; use app\ticket\logic\ConversationLogic; use app\ticket\logic\TicketLogic; @@ -28,6 +29,8 @@ class TicketService foreach ($v['attachments'] as &$attachments) { $attachments['storage_path_full'] = (new \app\common\service\OssService())->generatePrivateUrl($attachments['storage_path']); } + + $res[$k]['user_name'] = User::where('id', $v['user_id'])->value('name'); } unset($v); unset($attachments); @@ -50,6 +53,7 @@ class TicketService 'ticket_id' => $result->id, 'content' => $cleanContent, 'user_id' => $data['user_id'], + 'attachment' => implode(",", $data['attachment']), ]; (new ConversationService())->add($conversation);