fix(缺陷管理): 提交带有图片的缺陷到禅道时图片显示错误的问题
This commit is contained in:
parent
3c75c6bf45
commit
1175dd747d
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue