Compare commits

..

2 Commits

3 changed files with 691 additions and 655 deletions

File diff suppressed because it is too large Load Diff

View File

@ -513,6 +513,8 @@ message ASQueryOnlineReportList{
int32 OrderType = 6;// 0, 1 int32 OrderType = 6;// 0, 1
int32 GameFreeId = 7; int32 GameFreeId = 7;
string Channel = 8; string Channel = 8;
string GameDif = 9; //
string ChannelId = 10; // 广ID
} }
message SAQueryOnlineReportList{ message SAQueryOnlineReportList{
TagCode Tag = 1; // TagCode Tag = 1; //

View File

@ -1113,12 +1113,10 @@ func init() {
pack.Msg = "数据序列化失败" + err.Error() pack.Msg = "数据序列化失败" + err.Error()
return common.ResponseTag_ParamError, pack return common.ResponseTag_ParamError, pack
} }
platform := msg.Platform
pageNo := msg.PageNo pageNo := msg.PageNo
pageSize := msg.PageSize pageSize := msg.PageSize
orderColumn := msg.OrderColumn orderColumn := msg.OrderColumn
orderType := msg.OrderType orderType := msg.OrderType
channel := msg.Channel
start := (pageNo - 1) * pageSize start := (pageNo - 1) * pageSize
end := pageNo * pageSize end := pageNo * pageSize
@ -1132,21 +1130,37 @@ func init() {
if !p.IsOnLine() { if !p.IsOnLine() {
continue continue
} }
if msg.GameFreeId == 0 { if msg.GameDif != "" {
if msg.GameId != 0 && (p.scene == nil || p.scene.gameId != int(msg.GameId)) { if p.scene == nil || p.scene.dbGameFree.GetGameDif() != msg.GameDif {
continue
}
} else {
if p.scene == nil || p.scene.dbGameFree.GetId() != msg.GameFreeId {
continue continue
} }
} }
if platform != DefaultPlatform && p.Platform != platform { if msg.ChannelId != "" {
continue if p.ChannelId != msg.ChannelId {
} continue
if channel != "" && p.Channel != channel { }
}
if msg.GameFreeId > 0 {
if p.scene == nil || p.scene.GetGameFreeId() != msg.GameFreeId {
continue
}
}
if msg.GameId > 0 {
if p.scene == nil || p.scene.gameId != int(msg.GameId) {
continue
}
}
if msg.Platform != DefaultPlatform && msg.Platform != "" {
if p.Platform != msg.Platform {
continue
}
}
if msg.Channel != "" && p.Channel != msg.Channel {
continue continue
} }
players = append(players, p) players = append(players, p)
} }
// 排序 // 排序