mirror of
https://codeup.aliyun.com/67c68d4e484ca2f0a13ac3c1/ydc/jsowell-charger-web.git
synced 2026-04-20 11:05:18 +08:00
0x03帧,则不进行crc校验
This commit is contained in:
@@ -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());
|
||||
|
||||
Reference in New Issue
Block a user