diff --git a/app/ticket/service/ConversationService.php b/app/ticket/service/ConversationService.php index ce6104c..28e5610 100644 --- a/app/ticket/service/ConversationService.php +++ b/app/ticket/service/ConversationService.php @@ -2,6 +2,7 @@ namespace app\ticket\service; +use app\common\model\User; use app\common\service\OssService; use app\ticket\logic\ConversationLogic; use config\constants\Constants; @@ -28,7 +29,7 @@ class ConversationService foreach ($value['attachment'] as $k => $attachment) { $value['attachment'][$k]['storage_path_full'] = (!empty($attachment))?$ossservice->generatePrivateUrl($attachment['storage_path']):''; } - + $value['user_name'] = User::where('id', $value['user_id'])->value('name'); $result[$key] = $value; } return $result;