修复路径转换工具

This commit is contained in:
TinyAnts
2022-08-16 14:31:56 +08:00
parent de952a1b0d
commit 7bc79d26f4
2 changed files with 9 additions and 4 deletions

View File

@@ -75,6 +75,8 @@ public class IndexServiceImpl implements IIndexService {
Map<String, String> website = ConfigUtil.get("website");
String copyright = ConfigUtil.get("website", "copyright", "");
System.out.println(UrlUtil.toRelativeUrl("http://127.0.0.1:8082/uploads/image/20220426/8984bec1-57d6-4635-a110-fb4b26335879.png"));
Map<String, Object> map = new LinkedHashMap<>();
map.put("webName", website.getOrDefault("name", ""));
map.put("webLogo", UrlUtil.toAbsoluteUrl(website.getOrDefault("logo", "")));