|
|
@@ -197,7 +197,7 @@ export default class Msg {
|
|
|
this.isConnectingM = false;
|
|
|
}
|
|
|
|
|
|
- CG_ASK_LOGIN(account: string, timestamp: number, authkey: string, lang: string, region: string, ip: string, params: string) {
|
|
|
+ CG_ASK_LOGIN(account: string, timestamp: number, authkey: string, lang: string, region: string, ip: string, params: string, server_id: number) {
|
|
|
console.log("发送登录消息", this.websocket.readyState, this.isConnect);
|
|
|
if (this.isConnect != true || this.websocket.readyState != 1) return false;
|
|
|
this.sendBufLen = 4;
|
|
|
@@ -208,6 +208,7 @@ export default class Msg {
|
|
|
this.writeString(region);
|
|
|
this.writeString(ip);
|
|
|
this.writeString(params);
|
|
|
+ this.writeInt(server_id);
|
|
|
this.sendBufDV.setInt16(2, 62);
|
|
|
this.sendBufDV.setInt16(0, this.sendBufLen - 4);
|
|
|
this.send(62);
|