添加头条特殊处理

This commit is contained in:
aozhiwei 2020-08-20 15:54:45 +08:00
parent 30248885d0
commit a037b22de9
3 changed files with 15 additions and 0 deletions

View File

@ -118,6 +118,12 @@ enum VirtualPlayer_e
VP_Mine = 9000003,
};
enum GameChannel_e
{
kWxChannelId = 6001,
kTouTiaoChannelId = 6006
};
const char* const PROJ_NAME_FMT = "game%d_masterserver";
const char* const PROJ_ROOT_FMT = "/data/logs/%s";

View File

@ -30,6 +30,14 @@ void GSMgr::_SS_WSP_RequestTargetServer(f8::MsgHdr& hdr, const ss::SS_WSP_Reques
if (!App::Instance()->IsSeparateChannel(channel)) {
channel = 0;
}
#if 1
int src_channel = f8::ExtractChannelIdFromAccountId(msg.account_id());
if (channel == 0 &&
src_channel == kTouTiaoChannelId &&
msg.proto_version() == 2019071502) {
channel = src_channel;
}
#endif
ss::SS_MS_ResponseTargetServer respmsg;
respmsg.set_context_id(msg.context_id());
if (msg.is_reconnect()) {

View File

@ -21,6 +21,7 @@ message SS_WSP_RequestTargetServer
optional string team_id = 3;
optional string server_info = 4;
optional int32 is_reconnect = 5;
optional int32 proto_version = 6; //Constant_e.ProtoVersion
}
message SS_MS_ResponseTargetServer