fix 【资源库】图片地址拼接
This commit is contained in:
parent
a992476be6
commit
9d6bbe5785
|
@ -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;
|
||||||
}
|
}
|
||||||
|
|
|
@ -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);
|
||||||
|
|
Loading…
Reference in New Issue