Files
mp-java/docs/sql/2026-07-21_cms_model_fix_case_suffix.sql
赵忠林 c1d75c3d43 fix(config): 修复租户ID获取逻辑并调整注释格式
- 优化异常处理,改为忽略异常并使用默认逻辑
- 增加最后从登录用户获取租户ID的尝试逻辑
- 统一未获取到租户ID时返回null而非undefined
- 调整注释格式,使其更规范美观
- 注释掉部分表名,保持代码清晰
2026-07-21 18:39:18 +08:00

7 lines
382 B
SQL
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

-- 去掉「案例(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';