mirror of
https://gitee.com/fit2cloud-feizhiyun/MeterSphere.git
synced 2024-12-03 04:28:51 +08:00
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) {
|
||||
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;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user