调整网站设置接口
This commit is contained in:
parent
3a641675e3
commit
fca4c24a8e
|
|
@ -29,6 +29,10 @@ public class SettingWebsiteServiceImpl implements ISettingWebsiteService {
|
||||||
map.put("logo", UrlUtil.toAbsoluteUrl(config.getOrDefault("logo", "")));
|
map.put("logo", UrlUtil.toAbsoluteUrl(config.getOrDefault("logo", "")));
|
||||||
map.put("favicon", UrlUtil.toAbsoluteUrl(config.getOrDefault("favicon", "")));
|
map.put("favicon", UrlUtil.toAbsoluteUrl(config.getOrDefault("favicon", "")));
|
||||||
map.put("backdrop", UrlUtil.toAbsoluteUrl(config.getOrDefault("backdrop", "")));
|
map.put("backdrop", UrlUtil.toAbsoluteUrl(config.getOrDefault("backdrop", "")));
|
||||||
|
|
||||||
|
map.put("shopName", config.getOrDefault("shopName", ""));
|
||||||
|
map.put("shopLogo", UrlUtil.toAbsoluteUrl(config.getOrDefault("shopLogo", "")));
|
||||||
|
|
||||||
return map;
|
return map;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -44,6 +48,9 @@ public class SettingWebsiteServiceImpl implements ISettingWebsiteService {
|
||||||
ConfigUtil.set("website", "logo", UrlUtil.toRelativeUrl(params.getOrDefault("logo", "")));
|
ConfigUtil.set("website", "logo", UrlUtil.toRelativeUrl(params.getOrDefault("logo", "")));
|
||||||
ConfigUtil.set("website", "favicon", UrlUtil.toRelativeUrl(params.getOrDefault("favicon", "")));
|
ConfigUtil.set("website", "favicon", UrlUtil.toRelativeUrl(params.getOrDefault("favicon", "")));
|
||||||
ConfigUtil.set("website", "backdrop", UrlUtil.toRelativeUrl(params.getOrDefault("backdrop", "")));
|
ConfigUtil.set("website", "backdrop", UrlUtil.toRelativeUrl(params.getOrDefault("backdrop", "")));
|
||||||
|
|
||||||
|
ConfigUtil.set("website", "shopName", params.getOrDefault("shopName", ""));
|
||||||
|
ConfigUtil.set("website", "shopLogo", UrlUtil.toRelativeUrl(params.getOrDefault("shopLogo", "")));
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -136,9 +136,8 @@ public class IndexServiceImpl implements IIndexService {
|
||||||
// 网址信息
|
// 网址信息
|
||||||
Map<String, Object> websiteMap = new LinkedHashMap<>();
|
Map<String, Object> websiteMap = new LinkedHashMap<>();
|
||||||
Map<String, String> websiteConfig = ConfigUtil.get("website");
|
Map<String, String> websiteConfig = ConfigUtil.get("website");
|
||||||
websiteMap.put("name", websiteConfig.getOrDefault("name", "LikeAdmin"));
|
websiteMap.put("name", websiteConfig.getOrDefault("shopName", "LikeAdmin"));
|
||||||
websiteMap.put("logo", UrlUtil.toAbsoluteUrl(websiteConfig.getOrDefault("logo", "")));
|
websiteMap.put("logo", UrlUtil.toAbsoluteUrl(websiteConfig.getOrDefault("shopLogo", "")));
|
||||||
websiteMap.put("favicon", UrlUtil.toAbsoluteUrl(websiteConfig.getOrDefault("favicon", "")));
|
|
||||||
|
|
||||||
// 响应数据
|
// 响应数据
|
||||||
response.put("domain", UrlUtil.domain());
|
response.put("domain", UrlUtil.domain());
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue