0x03帧,则不进行crc校验

This commit is contained in:
Guoqs
2024-11-27 14:34:28 +08:00
parent cd252d5ed1
commit 390f746928

View File

@@ -37,10 +37,10 @@ public class YKCBusinessServiceImpl implements YKCBusinessService {
@Override
public byte[] process(byte[] msg, ChannelHandlerContext ctx) {
// if (!YKCUtils.checkMsg(msg)) {
// // 校验不通过,丢弃消息
// return null;
// }
if (!YKCUtils.checkMsg(msg)) {
// 校验不通过,丢弃消息
return null;
}
YKCDataProtocol ykcDataProtocol = new YKCDataProtocol(msg);
// 获取帧类型
String frameType = YKCUtils.frameType2Str(ykcDataProtocol.getFrameType());