新增用户确认收款功能,更新提现记录模型以支持用户确认时间,并在提现管理页面展示确认状态。同时,优化提现处理逻辑,确保在用户确认后记录相关信息,提升系统稳定性和用户体验。

This commit is contained in:
2026-02-11 09:56:57 +08:00
parent ff92ec0e3e
commit a174d8e16d
16 changed files with 289 additions and 54 deletions

View File

@@ -21,6 +21,9 @@ func Init(dsn string) error {
if err := db.AutoMigrate(&model.WechatCallbackLog{}); err != nil {
log.Printf("database: wechat_callback_logs migrate warning: %v", err)
}
if err := db.AutoMigrate(&model.Withdrawal{}); err != nil {
log.Printf("database: withdrawals migrate warning: %v", err)
}
log.Println("database: connected")
return nil
}