Compare commits

...

2 Commits

Author SHA1 Message Date
fe502fb030 feat(website): 新增后台网站设置扩展字段支持
- 在 CmsWebsite 实体中添加 slogan、copyright、qrCode、socialLinks、seoTitle、seoDescription 字段
- 更新 CmsWebsiteMapper.xml 增加对新增字段的动态更新支持
- 扩展字段用于后台「网站设置」页面维护,公开站按需展示
2026-07-22 15:58:04 +08:00
c1d75c3d43 fix(config): 修复租户ID获取逻辑并调整注释格式
- 优化异常处理,改为忽略异常并使用默认逻辑
- 增加最后从登录用户获取租户ID的尝试逻辑
- 统一未获取到租户ID时返回null而非undefined
- 调整注释格式,使其更规范美观
- 注释掉部分表名,保持代码清晰
2026-07-21 18:39:18 +08:00
3 changed files with 45 additions and 0 deletions

View File

@@ -0,0 +1,6 @@
-- 去掉「案例(case)」的 .html 后缀
-- 后端 CmsNavigationServiceImpl.saveAsync 第105行会读取 cms_model.suffix 并追加到路径上,
-- 若 cms_model 中 case 行的 suffix = '.html' 则路径变成 /case/xxx.html
-- 本 SQL 将其置为 NULL使 case 与 article/product/page 保持一致(无后缀)
UPDATE cms_model SET suffix = NULL WHERE model = 'case';

View File

@@ -163,6 +163,27 @@ public class CmsWebsite implements Serializable {
@Schema(description = "网站描述")
private String content;
// ─── 后台「网站设置」扩展字段website-admin /about 页面维护) ──────────
// 这些字段在后台网站设置页维护,公开站展示时按需读取。
@Schema(description = "品牌标语/Slogan")
private String slogan;
@Schema(description = "版权信息")
private String copyright;
@Schema(description = "微信公众号二维码")
private String qrCode;
@Schema(description = "社交/外部链接JSON 数组字符串)")
private String socialLinks;
@Schema(description = "SEO 标题")
private String seoTitle;
@Schema(description = "SEO 描述")
private String seoDescription;
@Schema(description = "备注")
private String comments;

View File

@@ -270,6 +270,24 @@
<if test="param.content != null">
content = #{param.content},
</if>
<if test="param.slogan != null">
slogan = #{param.slogan},
</if>
<if test="param.copyright != null">
copyright = #{param.copyright},
</if>
<if test="param.qrCode != null">
qr_code = #{param.qrCode},
</if>
<if test="param.socialLinks != null">
social_links = #{param.socialLinks},
</if>
<if test="param.seoTitle != null">
seo_title = #{param.seoTitle},
</if>
<if test="param.seoDescription != null">
seo_description = #{param.seoDescription},
</if>
<if test="param.deleted != null">
deleted = #{param.deleted},
</if>