Browse Source

更新

master
huangjiajun 1 year ago
parent
commit
fa25e4d82d
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      db/db_user_level.go

+ 1
- 1
db/db_user_level.go View File

@@ -54,7 +54,7 @@ func UserLevelDescByWeightLow(session *xorm.Session) (userIds []int, err error)
}
func UserLevelInIDescByWeightLowWithOne(Db *xorm.Engine) (*model.UserLevel, error) {
var ms model.UserLevel
has, err := Db.Asc("level_weight").Get(&ms)
has, err := Db.Where("is_use=1").Asc("level_weight").Get(&ms)
if err != nil {
return nil, err
}


Loading…
Cancel
Save