工单内容放入沟通记录
This commit is contained in:
@@ -44,6 +44,14 @@ class TicketService
|
||||
if(!empty($attachment)){
|
||||
(new AttachmentLogic())->adds($attachment, $result->id, $data['user_id']);
|
||||
}
|
||||
|
||||
$conversation = [
|
||||
'ticket_id' => $result->id,
|
||||
'content' => $data['content'],
|
||||
'user_id' => $data['user_id'],
|
||||
];
|
||||
(new ConversationService())->add($conversation);
|
||||
|
||||
return $result;
|
||||
} catch (\Throwable $e) {
|
||||
Db::rollback();
|
||||
|
||||
Reference in New Issue
Block a user