工单用户名

This commit is contained in:
2025-08-11 10:50:44 +08:00
parent 1829d013b5
commit f45534da7d
+2 -1
View File
@@ -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;