This commit is contained in:
aozhiwei 2023-04-24 13:20:23 +08:00
parent 80cd4c08fb
commit 55268bb0fd
3 changed files with 10 additions and 5 deletions

View File

@ -380,6 +380,7 @@ void App::ProcessClientMsg(f8::MsgHdr& hdr)
(hdr, (hdr,
msg.team_uuid(), msg.team_uuid(),
msg.account_id(), msg.account_id(),
msg.session_id(),
"", "",
0, 0,
msg.proto_version()); msg.proto_version());
@ -395,6 +396,7 @@ void App::ProcessClientMsg(f8::MsgHdr& hdr)
(hdr, (hdr,
msg.team_uuid(), msg.team_uuid(),
msg.account_id(), msg.account_id(),
msg.session_id(),
msg.server_info(), msg.server_info(),
1, 1,
0); 0);

View File

@ -91,11 +91,12 @@ std::shared_ptr<Master> MasterMgr::GetConnById(int instance_id)
} }
void MasterMgr::RequestTargetServer(f8::MsgHdr& hdr, void MasterMgr::RequestTargetServer(f8::MsgHdr& hdr,
const std::string& team_id, const std::string& team_id,
const std::string& account_id, const std::string& account_id,
const std::string& server_info, const std::string& session_id,
int is_reconnect, const std::string& server_info,
int proto_version) int is_reconnect,
int proto_version)
{ {
if (GetRequestBySocket(hdr.socket_handle)) { if (GetRequestBySocket(hdr.socket_handle)) {
return; return;
@ -128,6 +129,7 @@ void MasterMgr::RequestTargetServer(f8::MsgHdr& hdr,
ss::SS_WSP_RequestTargetServer msg; ss::SS_WSP_RequestTargetServer msg;
msg.set_context_id(curr_context_id_); msg.set_context_id(curr_context_id_);
msg.set_account_id(account_id); msg.set_account_id(account_id);
msg.set_session_id(session_id);
msg.set_team_id(team_uuid); msg.set_team_id(team_uuid);
msg.set_server_info(server_info); msg.set_server_info(server_info);
msg.set_is_reconnect(is_reconnect); msg.set_is_reconnect(is_reconnect);

View File

@ -30,6 +30,7 @@ class MasterMgr : public a8::Singleton<MasterMgr>
void RequestTargetServer(f8::MsgHdr& hdr, void RequestTargetServer(f8::MsgHdr& hdr,
const std::string& team_id, const std::string& team_id,
const std::string& account_id, const std::string& account_id,
const std::string& session_id,
const std::string& server_info, const std::string& server_info,
int is_reconnect, int is_reconnect,
int proto_version); int proto_version);