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