From 29eab346b55c74fb1ed3212ff7dcb0c24c7662fa Mon Sep 17 00:00:00 2001 From: liurunyu <lry9898@163.com> Date: 星期四, 15 五月 2025 11:22:31 +0800 Subject: [PATCH] 示范区项目,虚拟卡表的占用状态及剩余金额需要设置成默认值,即不占用,不减费。修改原来的实现,增加设备剩余金额为默认值10000,配置项名称也做了达意修改。 --- pipIrr-platform/pipIrr-common/src/main/java/com/dy/common/mw/protocol/p206V1/parse/Cd_10_Down.java | 8 ++++---- 1 files changed, 4 insertions(+), 4 deletions(-) diff --git a/pipIrr-platform/pipIrr-common/src/main/java/com/dy/common/mw/protocol/p206V1/parse/Cd_10_Down.java b/pipIrr-platform/pipIrr-common/src/main/java/com/dy/common/mw/protocol/p206V1/parse/Cd_10_Down.java index 855fff8..13cc09f 100644 --- a/pipIrr-platform/pipIrr-common/src/main/java/com/dy/common/mw/protocol/p206V1/parse/Cd_10_Down.java +++ b/pipIrr-platform/pipIrr-common/src/main/java/com/dy/common/mw/protocol/p206V1/parse/Cd_10_Down.java @@ -66,7 +66,7 @@ throw new Exception("json杞珻om10Vo涓簄ull"); } if (cvo.rtuAddr == null) { - throw new Exception("娴嬭瘯鏂板湴鍧�涓嶈兘涓虹┖"); + throw new Exception("鍦板潃涓嶈兘涓虹┖"); } CommonV1 commonV_1 = new CommonV1(); @@ -85,7 +85,7 @@ bsHead[index] = commonV_1.createCtrl((byte) 0, (byte) 0); index++; - GlCreate.createRtuAddr(para.rtuAddr, bsHead, index); + GlCreate.createRtuAddr4P206(para.rtuAddr, bsHead, index); index += 5; ByteUtil.hex2Bytes(para.commandCode, bsHead, index); @@ -93,7 +93,7 @@ index = 0; byte[] bs = new byte[13]; - GlCreate.createRtuAddr(cvo.rtuAddr, bs, index); + GlCreate.createRtuAddr4P206(cvo.rtuAddr, bs, index); index += 5; GlCreate.createPw(bs, index); index += 2; @@ -102,7 +102,7 @@ GlCreate.createLen(bytes);//闀垮害鏀惧瓧鑺傛暟缁勪腑 - byte[] bsTail = GlCreate.createCrcTail(bytes);//CRC鍜屽熬鍙犲姞瀛楄妭鏁扮粍涓� + byte[] bsTail = GlCreate.createCrcTail4P206(bytes);//CRC鍜屽熬鍙犲姞瀛楄妭鏁扮粍涓� bytes = ByteUtil.bytesMerge(bytes, bsTail); -- Gitblit v1.8.0