mirror of
https://codeup.aliyun.com/67c68d4e484ca2f0a13ac3c1/ydc/jsowell-charger-web.git
synced 2026-05-17 00:08:35 +08:00
阻止重复帧
This commit is contained in:
@@ -117,6 +117,11 @@ public class LoginRequestHandler extends AbstractYkcHandler {
|
|||||||
|
|
||||||
@Override
|
@Override
|
||||||
public byte[] supplyProcess(YKCDataProtocol ykcDataProtocol, ChannelHandlerContext ctx) {
|
public byte[] supplyProcess(YKCDataProtocol ykcDataProtocol, ChannelHandlerContext ctx) {
|
||||||
|
if (verifyTheDuplicateRequest(ykcDataProtocol, ctx)) {
|
||||||
|
// 阻止重复帧
|
||||||
|
return null;
|
||||||
|
}
|
||||||
|
|
||||||
// 获取消息体
|
// 获取消息体
|
||||||
byte[] msgBody = ykcDataProtocol.getMsgBody();
|
byte[] msgBody = ykcDataProtocol.getMsgBody();
|
||||||
|
|
||||||
@@ -174,10 +179,6 @@ public class LoginRequestHandler extends AbstractYkcHandler {
|
|||||||
String business = BytesUtil.bcd2Str(businessTypeByteArr);
|
String business = BytesUtil.bcd2Str(businessTypeByteArr);
|
||||||
|
|
||||||
// *********************** 字段解析完成,下面进行逻辑处理 *********************** //
|
// *********************** 字段解析完成,下面进行逻辑处理 *********************** //
|
||||||
if (verifyTheDuplicateRequest(ykcDataProtocol, ctx)) {
|
|
||||||
return null;
|
|
||||||
}
|
|
||||||
|
|
||||||
LoginRequestData loginRequestData = LoginRequestData.builder()
|
LoginRequestData loginRequestData = LoginRequestData.builder()
|
||||||
.pileSn(pileSn)
|
.pileSn(pileSn)
|
||||||
.pileType(pileType)
|
.pileType(pileType)
|
||||||
|
|||||||
Reference in New Issue
Block a user