fix(缺陷管理): 富文本本地图片路径问题

--bug=1036946 --user=宋昌昌 【缺陷管理】MS关联禅道,创建缺陷,缺陷内容中粘贴图片,图片没有同步到禅道上 https://www.tapd.cn/55049933/s/1480521
This commit is contained in:
song-cc-rock 2024-03-25 20:34:02 +08:00 committed by Craftsman
parent 30f47a7f5b
commit a52c2aa4fa
1 changed files with 2 additions and 3 deletions

View File

@ -1432,10 +1432,9 @@ public class BugService {
*/
private FileRequest buildTmpImageFileRequest(String fileId) {
FileRequest fileRequest = new FileRequest();
fileRequest.setFolder(DefaultRepositoryDir.getSystemTempCompressDir() + "/" + fileId);
// 临时图片文件名称固定为image.png
fileRequest.setFileName("image.png");
fileRequest.setFolder(DefaultRepositoryDir.getSystemTempDir() + "/" + fileId);
fileRequest.setStorage(StorageType.MINIO.name());
fileRequest.setFileName(bugAttachmentService.getTempFileNameByFileId(fileId));
return fileRequest;
}