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