From fc320221d1972a3e799abc5eefd74946f8e93603 Mon Sep 17 00:00:00 2001
From: liurunyu <lry9898@163.com>
Date: 星期一, 01 七月 2024 14:22:25 +0800
Subject: [PATCH] Merge branch 'master' of http://8.140.179.55:20000/r/pipIrr-SV

---
 pipIrr-platform/pipIrr-web/pipIrr-web-wechat/src/main/java/com/dy/pipIrrWechat/command/ValveCtrl.java |   22 ++++++++++------------
 1 files changed, 10 insertions(+), 12 deletions(-)

diff --git a/pipIrr-platform/pipIrr-web/pipIrr-web-wechat/src/main/java/com/dy/pipIrrWechat/command/ValveCtrl.java b/pipIrr-platform/pipIrr-web/pipIrr-web-wechat/src/main/java/com/dy/pipIrrWechat/command/ValveCtrl.java
index f678e9b..59f32ed 100644
--- a/pipIrr-platform/pipIrr-web/pipIrr-web-wechat/src/main/java/com/dy/pipIrrWechat/command/ValveCtrl.java
+++ b/pipIrr-platform/pipIrr-web/pipIrr-web-wechat/src/main/java/com/dy/pipIrrWechat/command/ValveCtrl.java
@@ -26,6 +26,7 @@
 import lombok.RequiredArgsConstructor;
 import lombok.extern.slf4j.Slf4j;
 import org.apache.commons.lang3.RandomStringUtils;
+import org.springframework.beans.factory.annotation.Value;
 import org.springframework.http.MediaType;
 import org.springframework.transaction.annotation.Transactional;
 import org.springframework.validation.BindingResult;
@@ -51,7 +52,9 @@
     private final CommandSv commandSv;
     private final SeVirtualCardMapper seVirtualCardMapper;
     private final IDLongGenerator idLongGenerator;
-    private String rtuResultSendWebUrl = "http://127.0.0.1:8087/wx/comRes/receive";
+
+    @Value("${mw.rtuCallbackUrl_wx}")
+    private String rtuCallbackUrl_wx;
 
     /**
      * 灏忕▼搴忚繙绋嬪紑闃�
@@ -142,7 +145,7 @@
             myParam.setProtocol(protocol);
             myParam.setVcId(vcId);
             myParam.setParam(param);
-            myParam.setRtuResultSendWebUrl(rtuResultSendWebUrl);
+            myParam.setRtuResultSendWebUrl(rtuCallbackUrl_wx);
             myParam.setOperator(operator);
             return dealWithCommandResult(myParam);
 
@@ -172,7 +175,7 @@
             myParam.setProtocol(protocol);
             myParam.setVcId(vcId);
             myParam.setParam(param);
-            myParam.setRtuResultSendWebUrl(rtuResultSendWebUrl);
+            myParam.setRtuResultSendWebUrl(rtuCallbackUrl_wx);
             myParam.setOperator(operator);
             return dealWithCommandResult(myParam);
         } else {
@@ -241,7 +244,7 @@
             myParam.setProtocol(protocol);
             myParam.setVcId(vcId);
             myParam.setParam(param);
-            myParam.setRtuResultSendWebUrl(rtuResultSendWebUrl);
+            myParam.setRtuResultSendWebUrl(rtuCallbackUrl_wx);
             myParam.setOperator(operator);
             return dealWithCommandResult(myParam);
         } else if (protocol.equals("p206V1_0_1")) {
@@ -268,7 +271,7 @@
             myParam.setProtocol(protocol);
             myParam.setVcId(vcId);
             myParam.setParam(param);
-            myParam.setRtuResultSendWebUrl(rtuResultSendWebUrl);
+            myParam.setRtuResultSendWebUrl(rtuCallbackUrl_wx);
             myParam.setOperator(operator);
             return dealWithCommandResult(myParam);
         } else {
@@ -363,16 +366,11 @@
             myParam.setRtuAddr(rtuAddr);
             myParam.setProtocol(protocol);
             myParam.setParam(param);
-            myParam.setRtuResultSendWebUrl(rtuResultSendWebUrl);
+            myParam.setRtuResultSendWebUrl(rtuCallbackUrl_wx);
             myParam.setOperator(operator);
             return dealWithCommandResult(myParam);
         } else if(protocol.equals("p206V1_0_1")) {
-            // 鑾峰彇鍔熻兘鐮�
-            commandCode = CodeV1_0_1.cd_10;
-
-            // 鍒涘缓瑙嗗浘
-            Com97Vo param = new Com97Vo() ;
-            return BaseResponseUtils.buildSuccess("");
+            return BaseResponseUtils.buildErrorMsg(WechatResultCode.THE_DEVICE_DOES_NOT_HAVE_THIS_FUNCTION.getMessage());
         } else {
             return BaseResponseUtils.buildFail("绯荤粺鏆備笉鏀寔璇ュ崗璁�");
         }

--
Gitblit v1.8.0