update 电单车协议

This commit is contained in:
Guoqs
2024-08-29 14:40:41 +08:00
parent 4e69180aa8
commit 30250b51ef
2 changed files with 1 additions and 4 deletions

View File

@@ -36,6 +36,7 @@ public class EBikeBusinessServiceImpl implements EBikeBusinessService {
EBikeDataProtocol ykcDataProtocol = new EBikeDataProtocol(msg);
// 获取帧类型
String command = BytesUtil.bin2HexStr(ykcDataProtocol.getCommand());
log.info("收到消息, channelId:{}, msg:{}", ctx.channel().id().toString(), BytesUtil.binary(msg, 16));
// 获取业务处理handler
AbstractEBikeHandler invokeStrategy = EBikeOperateFactory.getInvokeStrategy(command);
if (invokeStrategy != null) {