feat: 同步本地三端改动并清理上传凭证风险

整合小程序、管理端与后端的最新本地改动,补齐用户管理与首页入口相关能力;提交前已完成敏感信息扫描,并移除本地 gitea 远程 URL 中的明文凭证,避免隐私信息进入远程仓库。

Made-with: Cursor
This commit is contained in:
卡若
2026-04-06 15:59:34 +08:00
parent b1cc4be1c2
commit 6d11fb295d
126 changed files with 5789 additions and 2791 deletions

View File

@@ -232,6 +232,11 @@ func ensurePersonSchema(db *gorm.DB) {
log.Printf("database: persons schema ensure warning: %v; action=create idx_persons_is_pinned", err)
}
}
if !m.HasColumn(&model.Person{}, "home_entry_config") {
if err := db.Exec("ALTER TABLE persons ADD COLUMN home_entry_config TEXT NULL COMMENT '首页入口配置(打赏/上麦JSON'").Error; err != nil {
log.Printf("database: persons schema ensure warning: %v; action=add home_entry_config", err)
}
}
}
func ensureCkbLeadSchema(db *gorm.DB) {