Browse Source

更新

master
huangjiajun 1 year ago
parent
commit
4a47174343
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

@@ -10,7 +10,7 @@ import (
//UserLevelInIDescByWeight is In 查询获取 权重最低 对应等级
func UserLevelInIDescByWeightLow(Db *xorm.Engine) ([]*model.UserLevel, error) {
var ms []*model.UserLevel
if err := Db.Asc("level_weight").Limit(1).Find(&ms); err != nil {
if err := Db.Where("is_use=1").Asc("level_weight").Limit(1).Find(&ms); err != nil {
return nil, err
}
return ms, nil


Loading…
Cancel
Save