void OnConnectorOpen(string msg) { Debug.Log("重连成功"); Proto.login_req data = new Proto.login_req(); data.uid = PlayerInfo.uid; data.token = PlayerInfo.token; SocketClient.SendMsg(Route.connector_main_reconnectEnter, data); }
void OnConnectorOpen(string msg) { CommonHandler.instance.StartListen(); // 请求配置 SocketClient.AddHandler(Route.connector_main_getSomeConfig, SVR_GetConfigBack); SocketClient.SendMsg(Route.connector_main_getSomeConfig); // 登录 SocketClient.AddHandler(Route.connector_main_enter, SVR_ConnectorLoginBack); Proto.login_req tmp = new Proto.login_req(); tmp.uid = PlayerInfo.uid; tmp.token = PlayerInfo.token; SocketClient.SendMsg(Route.connector_main_enter, tmp); }