|
|
@@ -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 { |
|
|
|