update 电单车协议

This commit is contained in:
Guoqs
2024-07-16 08:27:11 +08:00
parent 6487bb8bdc
commit c3908e2ca9

View File

@@ -48,9 +48,9 @@ public class ChargingPileHandler extends ChannelInboundHandlerAdapter {
@Override
public void channelRead(ChannelHandlerContext ctx, Object msg) {
log.info("加载客户端报文=== channelId:{}, mag:{}", ctx.channel().id(), msg.toString());
if (!(msg instanceof ChargingPileMessage)) {
return;
}
// if (!(msg instanceof ChargingPileMessage)) {
// return;
// }
ChargingPileMessage message = (ChargingPileMessage) msg;
byte command = message.getCommand();