@ -716,11 +716,15 @@ func GetConfigGameList(num int, cond ...int) []*common.ConfigGameList {
continue
}
ret = append(ret, v)
if num > 0 && len(ret) >= num {
return ret
sort.Slice(ret, func(i, j int) bool {
return ret[i].Sort > ret[j].Sort
})
return ret[:num]
} else {
func GetConfigGameListByID(provider, gameID int) *common.ConfigGameList {