调整网站设置接口

This commit is contained in:
TinyAnts
2022-09-08 15:51:08 +08:00
parent 3a641675e3
commit fca4c24a8e
2 changed files with 9 additions and 3 deletions

View File

@@ -136,9 +136,8 @@ public class IndexServiceImpl implements IIndexService {
// 网址信息
Map<String, Object> websiteMap = new LinkedHashMap<>();
Map<String, String> websiteConfig = ConfigUtil.get("website");
websiteMap.put("name", websiteConfig.getOrDefault("name", "LikeAdmin"));
websiteMap.put("logo", UrlUtil.toAbsoluteUrl(websiteConfig.getOrDefault("logo", "")));
websiteMap.put("favicon", UrlUtil.toAbsoluteUrl(websiteConfig.getOrDefault("favicon", "")));
websiteMap.put("name", websiteConfig.getOrDefault("shopName", "LikeAdmin"));
websiteMap.put("logo", UrlUtil.toAbsoluteUrl(websiteConfig.getOrDefault("shopLogo", "")));
// 响应数据
response.put("domain", UrlUtil.domain());