fix(缺陷管理): 提交带有图片的缺陷到禅道时图片显示错误的问题
This commit is contained in:
parent
ed4ff3d504
commit
1724bb9902
|
@ -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