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 GameFreeId = 7;
string Channel = 8;
string GameDif = 9; //
string ChannelId = 10; // 广ID
}
message SAQueryOnlineReportList{
TagCode Tag = 1; //

View File

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