fix(缺陷管理): 提交带有图片的缺陷到禅道时图片显示错误的问题

This commit is contained in:
shiziyuan9527 2021-07-22 17:29:01 +08:00 committed by 刘瑞斌
parent 3c75c6bf45
commit 1175dd747d
1 changed files with 4 additions and 0 deletions

View File

@ -381,6 +381,10 @@ public class ZentaoPlatform extends AbstractIssuePlatform {
// upload zentao
String id = uploadFile(mdImage.getBody());
// todo delete local file
int index = fileName.lastIndexOf(".");
if (index != -1) {
fileName = fileName.substring(0, index);
}
// replace id
zentaoSteps = zentaoSteps.replaceAll(Pattern.quote(fileName), id);
}