fix(测试跟踪): 企业版禅道同步缺陷图片无法显示
--bug=1015358 --user=陈建星 【测试跟踪】githubv#16273,1.20.10-lts-787c5294版本在禅道缺陷编辑后,在metersphere中同步缺陷会导致图片无法预览 https://www.tapd.cn/55049933/s/1213867
This commit is contained in:
parent
74e0788ee2
commit
f2b6332636
|
@ -514,6 +514,8 @@ public class ZentaoPlatform extends AbstractIssuePlatform {
|
||||||
name = name.replaceAll("&", "&");
|
name = name.replaceAll("&", "&");
|
||||||
path = zentaoClient.getBaseUrl() + path.replaceAll("&", "&");
|
path = zentaoClient.getBaseUrl() + path.replaceAll("&", "&");
|
||||||
}
|
}
|
||||||
|
// 专业版格式有差异,解析完会出现两个 /pro,去掉一个
|
||||||
|
path.replace("/pro/pro", "/pro");
|
||||||
path = "/resource/md/get/url?url=" + URLEncoder.encode(path, StandardCharsets.UTF_8);
|
path = "/resource/md/get/url?url=" + URLEncoder.encode(path, StandardCharsets.UTF_8);
|
||||||
// 图片与描述信息之间需换行,否则无法预览图片
|
// 图片与描述信息之间需换行,否则无法预览图片
|
||||||
result = "\n\n![" + name + "](" + path + ")";
|
result = "\n\n![" + name + "](" + path + ")";
|
||||||
|
|
Loading…
Reference in New Issue