Compare commits
2 Commits
bac43714a2
...
fe502fb030
| Author | SHA1 | Date | |
|---|---|---|---|
| fe502fb030 | |||
| c1d75c3d43 |
6
docs/sql/2026-07-21_cms_model_fix_case_suffix.sql
Normal file
6
docs/sql/2026-07-21_cms_model_fix_case_suffix.sql
Normal 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';
|
||||
@@ -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;
|
||||
|
||||
|
||||
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user