|
|
@@ -217,12 +217,13 @@ export default class Msg {
|
|
|
return true;
|
|
|
}
|
|
|
|
|
|
- CG_TEST_PROTO(account: string, param: string) {
|
|
|
+ CG_TEST_PROTO(account: string, param: string,server_id = 1) {
|
|
|
console.log("发送CDK道具消息", this.websocket.readyState, this.isConnect);
|
|
|
if (this.isConnect != true || this.websocket.readyState != 1) return false;
|
|
|
this.sendBufLen = 4;
|
|
|
this.writeString(account)
|
|
|
this.writeString(param)
|
|
|
+ this.writeInt(server_id);
|
|
|
this.sendBufDV.setInt16(2, 1259);
|
|
|
this.sendBufDV.setInt16(0, this.sendBufLen - 4);
|
|
|
this.send(1259);
|