Compare commits

..

No commits in common. "696267d9546bfd684da766f43df7871663061721" and "71bc527f96e4a01b979f73e4cd296059a28da92a" have entirely different histories.

3 changed files with 645 additions and 681 deletions

File diff suppressed because it is too large Load Diff

View File

@ -513,8 +513,6 @@ 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,10 +1113,12 @@ 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
@ -1130,37 +1132,21 @@ func init() {
if !p.IsOnLine() { if !p.IsOnLine() {
continue continue
} }
if msg.GameDif != "" { if msg.GameFreeId == 0 {
if p.scene == nil || p.scene.dbGameFree.GetGameDif() != msg.GameDif { if msg.GameId != 0 && (p.scene == nil || p.scene.gameId != int(msg.GameId)) {
continue
}
} else {
if p.scene == nil || p.scene.dbGameFree.GetId() != msg.GameFreeId {
continue continue
} }
} }
if msg.ChannelId != "" { if platform != DefaultPlatform && p.Platform != platform {
if p.ChannelId != msg.ChannelId { continue
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)
} }
// 排序 // 排序