工单用户名
This commit is contained in:
@@ -2,6 +2,7 @@
|
|||||||
|
|
||||||
namespace app\ticket\service;
|
namespace app\ticket\service;
|
||||||
|
|
||||||
|
use app\common\model\User;
|
||||||
use app\ticket\logic\AttachmentLogic;
|
use app\ticket\logic\AttachmentLogic;
|
||||||
use app\ticket\logic\ConversationLogic;
|
use app\ticket\logic\ConversationLogic;
|
||||||
use app\ticket\logic\TicketLogic;
|
use app\ticket\logic\TicketLogic;
|
||||||
@@ -28,6 +29,8 @@ class TicketService
|
|||||||
foreach ($v['attachments'] as &$attachments) {
|
foreach ($v['attachments'] as &$attachments) {
|
||||||
$attachments['storage_path_full'] = (new \app\common\service\OssService())->generatePrivateUrl($attachments['storage_path']);
|
$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($v);
|
||||||
unset($attachments);
|
unset($attachments);
|
||||||
@@ -50,6 +53,7 @@ class TicketService
|
|||||||
'ticket_id' => $result->id,
|
'ticket_id' => $result->id,
|
||||||
'content' => $cleanContent,
|
'content' => $cleanContent,
|
||||||
'user_id' => $data['user_id'],
|
'user_id' => $data['user_id'],
|
||||||
|
'attachment' => implode(",", $data['attachment']),
|
||||||
];
|
];
|
||||||
(new ConversationService())->add($conversation);
|
(new ConversationService())->add($conversation);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user