fix(测试跟踪): 企业版禅道同步缺陷图片无法显示

--bug=1015358 --user=陈建星 【测试跟踪】githubv#16273,1.20.10-lts-787c5294版本在禅道缺陷编辑后,在metersphere中同步缺陷会导致图片无法预览 https://www.tapd.cn/55049933/s/1213867
This commit is contained in:
chenjianxing 2022-07-27 16:01:58 +08:00 committed by f2c-ci-robot[bot]
parent 74e0788ee2
commit f2b6332636
1 changed files with 2 additions and 0 deletions

View File

@ -514,6 +514,8 @@ public class ZentaoPlatform extends AbstractIssuePlatform {
name = name.replaceAll("&", "&");
path = zentaoClient.getBaseUrl() + path.replaceAll("&", "&");
}
// 专业版格式有差异解析完会出现两个 /pro去掉一个
path.replace("/pro/pro", "/pro");
path = "/resource/md/get/url?url=" + URLEncoder.encode(path, StandardCharsets.UTF_8);
// 图片与描述信息之间需换行否则无法预览图片
result = "\n\n![" + name + "](" + path + ")";