fix(chat): 提升二维码 OCR 稳定性

This commit is contained in:
yml2213
2026-08-25 16:59:05 +08:00
parent 8f6356a3d7
commit d95b95211c
7 changed files with 761 additions and 102 deletions
+1 -1
View File
@@ -177,7 +177,7 @@ func New(cfg config.Config, deps Dependencies, logger *zap.Logger) *gin.Engine {
}
var chatRepo *chat.Repository
if deps.DB != nil {
chatRepo = chat.NewRepository(deps.DB, chatHub, deps.Redis)
chatRepo = chat.NewRepository(deps.DB, chatHub, deps.Redis, chat.WithLogger(logger))
}
// 创建 chat 适配器用于 listing