印度包网
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

18 lines
447 B

1 year ago
package util
// GetGUserPlayCount 查询游戏玩家各游戏局数
func GetGUserPlayCount(uid int) map[int]int64 {
// q := elastic.NewBoolQuery()
// q.Must(elastic.NewMatchQuery("UID", uid))
ret := map[int]int64{}
// for _, v := range common.Games {
// s, _ := db.ES().SumBy(common.ESIndexBackPlayerStatistics, v, q)
// id := common.GetGameIDByGames(v)
// if id == 0 {
// continue
// }
// ret[id] = int64(s)
// }
return ret
}