Browse Source

升级

master
huangjiajun 2 weeks ago
parent
commit
53b0bbdaa0
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      rule/user_upgrade.go

+ 1
- 1
rule/user_upgrade.go View File

@@ -27,7 +27,7 @@ func UserUpgradeInsert(eg *xorm.Engine, uid int) error {
isNext = 1 isNext = 1
} }
} }
if level == user.Level {
if level <= user.Level {
return errors.New("等级相同") return errors.New("等级相同")
} }
task, err := UserUpgradeTask(eg, int(user.Id), level) task, err := UserUpgradeTask(eg, int(user.Id), level)


Loading…
Cancel
Save