From ac47ec165d87f505d80761ac92a0ece0ae84d215 Mon Sep 17 00:00:00 2001 From: Administrator <zhubaomin> Date: 星期五, 26 七月 2024 14:49:15 +0800 Subject: [PATCH] Merge branch 'master' of http://8.140.179.55:20000/r/pipIrr-SV --- pipIrr-platform/pipIrr-common/src/main/java/com/dy/common/mw/protocol/p206V202404/parse/Cd_26_Down.java | 9 +-------- 1 files changed, 1 insertions(+), 8 deletions(-) diff --git a/pipIrr-platform/pipIrr-common/src/main/java/com/dy/common/mw/protocol/p206V202404/parse/Cd_26_Down.java b/pipIrr-platform/pipIrr-common/src/main/java/com/dy/common/mw/protocol/p206V202404/parse/Cd_26_Down.java index fa0f86b..6157183 100644 --- a/pipIrr-platform/pipIrr-common/src/main/java/com/dy/common/mw/protocol/p206V202404/parse/Cd_26_Down.java +++ b/pipIrr-platform/pipIrr-common/src/main/java/com/dy/common/mw/protocol/p206V202404/parse/Cd_26_Down.java @@ -5,7 +5,6 @@ import com.dy.common.mw.protocol.*; import com.dy.common.mw.protocol.p206V202404.CodeV202404; import com.dy.common.mw.protocol.p206V202404.ParseParamsForDownV202404; -import com.dy.common.mw.protocol.p206V202404.downVos.ComCd22Vo; import com.dy.common.mw.protocol.p206V202404.downVos.ComCd26Vo; import com.dy.common.mw.protocol.p206V202404.parse.global.GlCreate; import com.dy.common.util.ByteUtil; @@ -55,23 +54,17 @@ if(cvo == null){ throw new Exception("json杞珻omCd22Vo涓簄ull") ; } - if(cvo.ipChannel != 1 && cvo.ipChannel !=2){ - throw new Exception("IP閫氶亾鍙峰彧鑳芥槸1鎴�2") ; - } if(cvo.maxAmountYear < 0 || cvo.maxAmountYear > 99999999){ throw new Exception("璁惧缁堢骞寸敤姘撮噺蹇呴』鏄�0~99999999鑼冨洿鍐呯殑鏁存暟") ; } - byte[] bs = new byte[15] ; + byte[] bs = new byte[14] ; int index = 0 ; bs[index] = (byte)(Integer.parseInt(cvo.controllerType, 16)); index ++ ; bs[index] = cvo.projectNo.byteValue() ; - - index ++ ; - bs[index] = cvo.ipChannel.byteValue() ; index ++ ; String strTemp = "" + cvo.maxAmountYear ; -- Gitblit v1.8.0