fix(测试跟踪): 禅道同步图片地址格式错误

This commit is contained in:
chenjianxing 2022-12-14 11:55:03 +08:00 committed by jianxing
parent 7981856b25
commit 985a2c4936
1 changed files with 2 additions and 2 deletions

View File

@ -555,10 +555,10 @@ public class ZentaoPlatform extends AbstractIssuePlatform {
if (Arrays.stream(imgArray).anyMatch(imgType -> StringUtils.equals(imgType, srcContent.substring(srcContent.indexOf('.') + 1)))) { if (Arrays.stream(imgArray).anyMatch(imgType -> StringUtils.equals(imgType, srcContent.substring(srcContent.indexOf('.') + 1)))) {
if (zentaoClient instanceof ZentaoGetClient) { if (zentaoClient instanceof ZentaoGetClient) {
path = zentaoClient.getBaseUrl() + "/index.php?m=file&f=read&fileID=" + srcContent; path = "/index.php?m=file&f=read&fileID=" + srcContent;
} else { } else {
// 禅道开源版 // 禅道开源版
path = zentaoClient.getBaseUrl() + "/file-read-" + srcContent; path = "/file-read-" + srcContent;
} }
} else { } else {
return result; return result;