back_recharge
parent
a8a013ec5c
commit
d4dc257d0e
|
|
@ -42,7 +42,7 @@ public class NettyClient {
|
||||||
|
|
||||||
PlayerInfoProto.SignInRequest.Builder builder = PlayerInfoProto.SignInRequest.newBuilder().setDayIndex(1203);
|
PlayerInfoProto.SignInRequest.Builder builder = PlayerInfoProto.SignInRequest.newBuilder().setDayIndex(1203);
|
||||||
|
|
||||||
ChatProto.ChatUserV3 userFrom = ChatProto.ChatUserV3.newBuilder().build();
|
/*ChatProto.ChatUserV3 userFrom = ChatProto.ChatUserV3.newBuilder().build();
|
||||||
ChatProto.ChatV3 chat = ChatProto.ChatV3.newBuilder().setFrom(userFrom).build();
|
ChatProto.ChatV3 chat = ChatProto.ChatV3.newBuilder().setFrom(userFrom).build();
|
||||||
byte[] bytes = wrappedBuffer((short) 100, chat.toByteArray());
|
byte[] bytes = wrappedBuffer((short) 100, chat.toByteArray());
|
||||||
|
|
||||||
|
|
@ -51,7 +51,7 @@ public class NettyClient {
|
||||||
handler.sendRequest_jieling(bytes);
|
handler.sendRequest_jieling(bytes);
|
||||||
System.out.println(11111);
|
System.out.println(11111);
|
||||||
TimeUnit.SECONDS.sleep(3);
|
TimeUnit.SECONDS.sleep(3);
|
||||||
}
|
}*/
|
||||||
|
|
||||||
|
|
||||||
////------------------------------------------测试类型-------------------------------------------------------
|
////------------------------------------------测试类型-------------------------------------------------------
|
||||||
|
|
@ -305,7 +305,7 @@ public class NettyClient {
|
||||||
return PlayerInfoProto.WorkShopEquipCreateRequest.newBuilder().setEquipTid(equipTid).build();
|
return PlayerInfoProto.WorkShopEquipCreateRequest.newBuilder().setEquipTid(equipTid).build();
|
||||||
}
|
}
|
||||||
|
|
||||||
public static byte[] wrappedBuffer(short gameId, byte[] content) {
|
/* public static byte[] wrappedBuffer(short gameId, byte[] content) {
|
||||||
int length = PackageConstant.GAMEID_LEN+PackageConstant.CONTENT_LEN+content.length;
|
int length = PackageConstant.GAMEID_LEN+PackageConstant.CONTENT_LEN+content.length;
|
||||||
byte[] bytes = new byte[length];
|
byte[] bytes = new byte[length];
|
||||||
int pos = 0;
|
int pos = 0;
|
||||||
|
|
@ -322,6 +322,6 @@ public class NettyClient {
|
||||||
// LOGGER.info("wrappedBuffer uid=>{} sendbyte=>{}", uid, bytes1.length);
|
// LOGGER.info("wrappedBuffer uid=>{} sendbyte=>{}", uid, bytes1.length);
|
||||||
// }
|
// }
|
||||||
return bytes;
|
return bytes;
|
||||||
}
|
}*/
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue