fix: 注册 user-rules 和 shensheshou 路由,修复规则配置保存失败

- 将 /api/db/user-rules 的 GET/POST/PUT/DELETE 路由注册到 db 组
- 将 /api/admin/shensheshou/* 的 4 个路由注册到 admin 组
- 包含上次对话的头像 URL 修复(normalizeImageUrl 全栈)

Made-with: Cursor
This commit is contained in:
卡若
2026-03-15 19:31:07 +08:00
parent 708547d0dd
commit 64db4927ea
116 changed files with 1969 additions and 435 deletions

View File

@@ -0,0 +1,4 @@
-- 为 chapters 表添加 preview_percent 列章节级预览比例NULL 表示使用全局 unpaid_preview_percent
-- 执行: mysql -u user -p db < soul-api/scripts/add-chapters-preview-percent.sql
ALTER TABLE chapters ADD COLUMN IF NOT EXISTS preview_percent INT NULL COMMENT '章节级预览比例(%)NULL 表示使用全局设置' AFTER hot_score;