fix(system): 修正站点域名配置及默认应用代码

- 修改 site 应用对应的域名后缀为 sitelnk.cn
- 调整默认应用代码由 mp 改为 site
- 更新域名映射中 site 项的配置为新的域名地址
- 保障邮件通知链接生成正确的站点域名
This commit is contained in:
2026-08-07 03:17:28 +08:00
parent a6a2e14abf
commit b9ec1fcdb9

View File

@@ -619,16 +619,16 @@ import java.util.stream.Collectors;
}
}
// 发送邮件通知(按应用代号区分域名:前端注册时传入 appCode未知默认 mp
// 发送邮件通知(按应用代号区分域名:前端注册时传入 appCode未知默认 site
// mp -> https://mp-{tid}.shoplnk.cn 后台 https://mp.websoft.top
// shop -> https://shop-{tid}.shoplnk.cn 后台 https://shop.websoft.top
// site -> https://site-{tid}.websoft.top 后台 https://site.websoft.top
// site -> https://site-{tid}.sitelnk.cn 后台 https://site.websoft.top
final Map<String, String[]> appDomainMap = new HashMap<>(3);
appDomainMap.put("mp", new String[]{"mp", "shoplnk.cn", "mp.websoft.top"});
appDomainMap.put("shop", new String[]{"shop", "shoplnk.cn", "shop.websoft.top"});
appDomainMap.put("site", new String[]{"site", "websoft.top", "site.websoft.top"});
final String appCode = StrUtil.isBlank(company.getAppCode()) ? "mp" : company.getAppCode();
final String[] domainCfg = appDomainMap.getOrDefault(appCode, appDomainMap.get("mp"));
appDomainMap.put("site", new String[]{"site", "sitelnk.cn", "site.websoft.top"});
final String appCode = StrUtil.isBlank(company.getAppCode()) ? "site" : company.getAppCode();
final String[] domainCfg = appDomainMap.getOrDefault(appCode, appDomainMap.get("site"));
final String sitePrefix = domainCfg[0];
final String siteDomain = domainCfg[1];
final String adminHost = domainCfg[2];