fix(测试跟踪): 多次保存jira缺陷图片无法显示

This commit is contained in:
chenjianxing 2022-11-22 15:53:10 +08:00 committed by jianxing
parent bd793616e9
commit 00ec9e9820
1 changed files with 4 additions and 1 deletions

View File

@ -794,8 +794,11 @@ public class IssuesService {
}
private String replaceJiraMdUrlParam(String url, String workspaceId, String projectId) {
if (url.contains("&workspace_id=")) {
return url;
}
return url.replaceAll("platform=Jira&",
"platform=Jira&project_id=" + projectId + "&workspace_id=" + workspaceId + "&");
"platform=Jira&workspace_id=" + workspaceId + "&");
}
private Map<String, List<IssueCommentDTO>> getCommentMap(List<IssuesDao> issues) {