diff --git a/server/auth/internal/logic/useremailconfirmationlogic.go b/server/auth/internal/logic/useremailconfirmationlogic.go index 27a2eb6a..5d2e1867 100644 --- a/server/auth/internal/logic/useremailconfirmationlogic.go +++ b/server/auth/internal/logic/useremailconfirmationlogic.go @@ -15,6 +15,7 @@ import ( "github.com/474420502/requests" "github.com/zeromicro/go-zero/core/logx" + "gorm.io/gorm" ) type UserEmailConfirmationLogic struct { @@ -117,7 +118,7 @@ func (l *UserEmailConfirmationLogic) UserEmailConfirmation(req *types.RequestEma case "fusen": // log.Println("aaaa", token) user, err := l.svcCtx.AllModels.FsUser.RegisterByFusen(l.ctx, token) - if err != nil { + if err != nil && err != gorm.ErrRecordNotFound { logx.Error(err, ":", token.TraceId) return resp.SetStatus(basic.CodeDbSqlErr) }