fix(缺陷管理): 提交带有图片的缺陷到禅道时图片显示错误的问题
This commit is contained in:
parent
87b6b5a120
commit
2e9aab2d90
|
@ -380,6 +380,10 @@ public class ZentaoPlatform extends AbstractIssuePlatform {
|
||||||
// upload zentao
|
// upload zentao
|
||||||
String id = uploadFile(mdImage.getBody());
|
String id = uploadFile(mdImage.getBody());
|
||||||
// todo delete local file
|
// todo delete local file
|
||||||
|
int index = fileName.lastIndexOf(".");
|
||||||
|
if (index != -1) {
|
||||||
|
fileName = fileName.substring(0, index);
|
||||||
|
}
|
||||||
// replace id
|
// replace id
|
||||||
zentaoSteps = zentaoSteps.replaceAll(Pattern.quote(fileName), id);
|
zentaoSteps = zentaoSteps.replaceAll(Pattern.quote(fileName), id);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue