用户优化

This commit is contained in:
ryan
2026-06-08 20:03:17 +08:00
parent d99bd5231a
commit 02f458856d
3 changed files with 43 additions and 27 deletions
+1 -1
View File
@@ -508,7 +508,7 @@ func Callback(c *gin.Context) {
return
}
userInfo.Username = username
if err := user.CreateUser(db.DB(ctx), userInfo); err != nil {
if err := user.CreateUser(ctx, db.DB(ctx), userInfo); err != nil {
c.JSON(http.StatusInternalServerError, util.Err(err.Error()))
return
}