From 053d5042846ae96c9c7ba031bae9d9221745cd7f Mon Sep 17 00:00:00 2001 From: liurunyu <lry9898@163.com> Date: 星期五, 29 十一月 2024 15:20:58 +0800 Subject: [PATCH] 向通信中间件请求,有参数时用post,无参数时用Get. --- pipIrr-platform/pipIrr-web/pipIrr-web-remote/src/main/java/com/dy/pipIrrRemote/rtuUpgrage/RtuUpgradeCtrl.java | 8 ++++---- 1 files changed, 4 insertions(+), 4 deletions(-) diff --git a/pipIrr-platform/pipIrr-web/pipIrr-web-remote/src/main/java/com/dy/pipIrrRemote/rtuUpgrage/RtuUpgradeCtrl.java b/pipIrr-platform/pipIrr-web/pipIrr-web-remote/src/main/java/com/dy/pipIrrRemote/rtuUpgrage/RtuUpgradeCtrl.java index 63053ca..a618170 100644 --- a/pipIrr-platform/pipIrr-web/pipIrr-web-remote/src/main/java/com/dy/pipIrrRemote/rtuUpgrage/RtuUpgradeCtrl.java +++ b/pipIrr-platform/pipIrr-web/pipIrr-web-remote/src/main/java/com/dy/pipIrrRemote/rtuUpgrage/RtuUpgradeCtrl.java @@ -106,7 +106,7 @@ vo.callbackWebUrl = ugCallbackUrl_rm ; String rqUrl = this.get2MwRequestUrl(this.env, ContextUgTaskSend) ; - BaseResponse res = sendRequest2Mw(restTemplate, rqUrl, vo) ; + BaseResponse res = sendPostRequest2Mw(restTemplate, rqUrl, vo) ; if(res != null){ if(res.isSuccess()){ this.sv.setUpgradeTaskExecuted(id); @@ -116,8 +116,8 @@ if(msg == null){ msg = res.getMsg() ; } - log.error("閫氫俊涓棿浠舵墽琛屼笅鍙戝崌绾т换鍔″け璐�" + msg) ; - return BaseResponseUtils.buildErrorMsg("閫氫俊涓棿浠舵墽琛屽け璐�" + msg) ; + log.error("閫氫俊涓棿浠舵墽琛屼笅鍙戝崌绾т换鍔″け璐ワ紝" + msg) ; + return BaseResponseUtils.buildErrorMsg("閫氫俊涓棿浠舵墽琛屽け璐ワ紝" + msg) ; } }else{ log.error("閫氫俊涓棿浠惰繑鍥炵粨鏋滀负null") ; @@ -141,7 +141,7 @@ @SsoAop() public BaseResponse<String> forceOver() { String rqUrl = this.get2MwRequestUrl(this.env, ContextUgForceOver) ; - BaseResponse res = sendRequest2Mw(restTemplate, rqUrl, null) ; + BaseResponse res = sendGetRequest2Mw(restTemplate, rqUrl) ; if(res != null){ if(res.isSuccess()){ return BaseResponseUtils.buildSuccess(true) ; -- Gitblit v1.8.0