Compare commits
2 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| b5e4c95fc6 | |||
| 8f3e337b9c |
@@ -64,6 +64,9 @@ public class CmsPage implements Serializable {
|
||||
@Schema(description = "备注")
|
||||
private String comments;
|
||||
|
||||
@Schema(description = "页面附件(JSON 数组字符串,元素含 name/url/size/ext/sort)")
|
||||
private String attachments;
|
||||
|
||||
@Schema(description = "阅读量")
|
||||
private Integer views;
|
||||
|
||||
|
||||
@@ -210,9 +210,8 @@ public class CmsWebsiteServiceImpl extends ServiceImpl<CmsWebsiteMapper, CmsWebs
|
||||
try {
|
||||
Company company = companyService.getByTenantIdRel(loginUser.getTenantId());
|
||||
if (company != null) {
|
||||
// 去掉 http(s):// 前缀,与前端处理保持一致
|
||||
String cleanDomain = website.getDomain().replaceFirst("^(https?://)", "");
|
||||
company.setDomain(cleanDomain);
|
||||
// 默认域名由前端带上 https:// 前缀,自定义域名已去除前缀,此处原样保存
|
||||
company.setDomain(website.getDomain());
|
||||
companyService.updateById(company);
|
||||
}
|
||||
} catch (Exception e) {
|
||||
|
||||
Reference in New Issue
Block a user