diff --git a/rule/user_upgrade.go b/rule/user_upgrade.go index 4709830..f0b30ce 100644 --- a/rule/user_upgrade.go +++ b/rule/user_upgrade.go @@ -16,7 +16,7 @@ func UserUpgradeInsert(eg *xorm.Engine, uid int) error { user, _ := userDb.GetUser(int64(uid)) level := user.Level isNext := 0 - levelDb := implement.NewUserLevelDb(db.Db) + levelDb := implement.NewUserLevelDb(eg) levels, _ := levelDb.UserLevelAllByAsc() for _, v1 := range levels { if isNext == 1 {