|
|
@@ -489,7 +489,7 @@ func JudgeUserBelowLevel(engine *xorm.Engine, uid int) (level int, err error) { |
|
|
|
func FindRandUser(engine *xorm.Engine, nums int) (resp []int64, err error) { |
|
|
|
//1、查找最小、最大 位置的公排位置 |
|
|
|
var minM, maxM model.UserPublicPlatoonRelation |
|
|
|
has, err := engine.Desc("id").Get(&minM) |
|
|
|
has, err := engine.Asc("id").Get(&minM) |
|
|
|
if err != nil { |
|
|
|
return |
|
|
|
} |
|
|
|