From cd2854c7dba0e24622552e7d5805e4b0ec7fde3c Mon Sep 17 00:00:00 2001
From: liurunyu <lry9898@163.com>
Date: 星期四, 21 十一月 2024 09:08:02 +0800
Subject: [PATCH] 上传升级程序表单时,增加对升级程序存放地址和程序覆盖超始地址的判断。
---
pipIrr-platform/pipIrr-common/src/main/java/com/dy/common/mw/protocol/p206V1/OnLineV1.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/OnLineV1.java b/pipIrr-platform/pipIrr-common/src/main/java/com/dy/common/mw/protocol/p206V1/OnLineV1.java
index 20f1359..0b02041 100644
--- a/pipIrr-platform/pipIrr-common/src/main/java/com/dy/common/mw/protocol/p206V1/OnLineV1.java
+++ b/pipIrr-platform/pipIrr-common/src/main/java/com/dy/common/mw/protocol/p206V1/OnLineV1.java
@@ -19,19 +19,19 @@
public OnLineResult parse(byte[] upBuf)throws Exception {
OnLineResult olr = new OnLineResult() ;
CommonV1 cp = new CommonV1() ;
- Boolean flag = cp.isThisProtocolHead(upBuf) ;
- if(flag == null){
+ Boolean[] isThis_p206Pgu = cp.isThisProtocolHead(upBuf) ;
+ if(isThis_p206Pgu == null || isThis_p206Pgu.length != 2){
//鍑洪敊
olr.result = OnLine.OnLineAction_fail ;
olr.rtuAddr = null ;
- }else if(!flag.booleanValue()){
+ }else if(!isThis_p206Pgu[0].booleanValue()){
//涓嶆槸鏈崗璁暟鎹�
olr.result = OnLine.OnLineAction_success_noMe ;
olr.rtuAddr = null ;
}else{
//鏄湰鍗忚鏁版嵁
olr.result = OnLine.OnLineAction_success ;
- olr.rtuAddr = cp.parseRtuAddr(upBuf) ;
+ olr.rtuAddr = cp.parseRtuAddr(upBuf, isThis_p206Pgu[1]) ;
olr.protocolName = ProtocolConstantV206V1.protocolName ;
olr.protocolVersion = ProtocolConstantV206V1.protocolVer ;
}
--
Gitblit v1.8.0