fix 【资源库】图片地址拼接

This commit is contained in:
liuhuazhong 2025-05-12 17:06:49 +08:00
parent a992476be6
commit 9d6bbe5785
2 changed files with 4 additions and 1 deletions

View File

@ -84,6 +84,9 @@ public class AchievementsServiceImpl implements IAchievementsService {
} }
} }
a.setUserImg(img); a.setUserImg(img);
a.setImages(buildFileInfoByIdents(a.getImages(), a.getSource()));
a.setAttachments(buildFileInfoByIdents(a.getAttachments(), a.getSource()));
} }
return a; return a;
} }

View File

@ -83,7 +83,7 @@ public class ProjectResourceLibraryService {
if (v.startsWith("http")) { if (v.startsWith("http")) {
String urlPath = getUrlPath(v); String urlPath = getUrlPath(v);
if (StringUtils.isNotEmpty(urlPath)) { if (StringUtils.isNotEmpty(urlPath)) {
if (urlPath.startsWith("/")) { if (urlPath.startsWith("/api")) {
a.setV(gitLinkUrl + urlPath); a.setV(gitLinkUrl + urlPath);
}else { }else {
a.setV(gitLinkUrl +"/api"+ urlPath); a.setV(gitLinkUrl +"/api"+ urlPath);