fix(缺陷管理): 富文本本地图片路径问题
--bug=1036946 --user=宋昌昌 【缺陷管理】MS关联禅道,创建缺陷,缺陷内容中粘贴图片,图片没有同步到禅道上 https://www.tapd.cn/55049933/s/1480521
This commit is contained in:
parent
30f47a7f5b
commit
a52c2aa4fa
|
@ -1432,10 +1432,9 @@ public class BugService {
|
||||||
*/
|
*/
|
||||||
private FileRequest buildTmpImageFileRequest(String fileId) {
|
private FileRequest buildTmpImageFileRequest(String fileId) {
|
||||||
FileRequest fileRequest = new FileRequest();
|
FileRequest fileRequest = new FileRequest();
|
||||||
fileRequest.setFolder(DefaultRepositoryDir.getSystemTempCompressDir() + "/" + fileId);
|
fileRequest.setFolder(DefaultRepositoryDir.getSystemTempDir() + "/" + fileId);
|
||||||
// 临时图片文件名称固定为image.png
|
|
||||||
fileRequest.setFileName("image.png");
|
|
||||||
fileRequest.setStorage(StorageType.MINIO.name());
|
fileRequest.setStorage(StorageType.MINIO.name());
|
||||||
|
fileRequest.setFileName(bugAttachmentService.getTempFileNameByFileId(fileId));
|
||||||
return fileRequest;
|
return fileRequest;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue