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