From fa25e4d82d8bca25fcead253f1d57062f2905b22 Mon Sep 17 00:00:00 2001 From: huangjiajun <582604932@qq.com> Date: Thu, 6 Jul 2023 14:54:19 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- db/db_user_level.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/db/db_user_level.go b/db/db_user_level.go index 1727392..493097e 100644 --- a/db/db_user_level.go +++ b/db/db_user_level.go @@ -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 }