update 校验channel

This commit is contained in:
2023-11-24 11:30:53 +08:00
parent 6de417c059
commit f2fac36715
30 changed files with 39 additions and 38 deletions

View File

@@ -4,7 +4,6 @@ import com.google.common.primitives.Bytes;
import com.jsowell.common.constant.Constants;
import com.jsowell.common.core.domain.ykc.YKCDataProtocol;
import com.jsowell.common.core.domain.ykc.YKCFrameTypeCode;
import com.jsowell.common.enums.ykc.PileChannelEntity;
import com.jsowell.common.util.BytesUtil;
import com.jsowell.common.util.YKCUtils;
import com.jsowell.netty.factory.YKCOperateFactory;
@@ -45,10 +44,10 @@ public class HeartbeatRequestHandler extends AbstractHandler {
String pileSn = BytesUtil.binary(pileSnByte, 16);
// 保存时间
saveLastTime(pileSn);
saveLastTime(pileSn, channel);
// 校验channel
PileChannelEntity.checkChannel(pileSn, channel);
// PileChannelEntity.checkChannel(pileSn, channel);
// 枪号
startIndex += length;