工单修复
This commit is contained in:
@@ -45,9 +45,10 @@ class TicketService
|
||||
(new AttachmentLogic())->adds($attachment, $result->id, $data['user_id']);
|
||||
}
|
||||
|
||||
$cleanContent = trim(preg_replace('/\s+/', ' ', strip_tags($data['content'] ?? '')));
|
||||
$conversation = [
|
||||
'ticket_id' => $result->id,
|
||||
'content' => $data['content'],
|
||||
'content' => $cleanContent,
|
||||
'user_id' => $data['user_id'],
|
||||
];
|
||||
(new ConversationService())->add($conversation);
|
||||
|
||||
Reference in New Issue
Block a user