From 1d0b023021c1c3ec23f35bfc4fb9f6dba870dd83 Mon Sep 17 00:00:00 2001 From: PoffyZhang <99775271@qq.com> Date: Mon, 4 Sep 2023 10:43:25 +0800 Subject: [PATCH] =?UTF-8?q?=E8=BD=AC=E5=8F=91IRS=20=E5=88=B7=E6=96=B0?= =?UTF-8?q?=E5=AF=86=E9=92=A5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../provincial/service/impl/JoinReviewProvincialBureauServiceImpl.java | 2 +- .../java/com/ningdatech/pmapi/wps/controller/WpsConvertController.java | 3 +-- pmapi/src/test/java/com/ningdatech/pmapi/irs/irsTest3.java | 2 +- 3 files changed, 3 insertions(+), 4 deletions(-) diff --git a/pmapi/src/main/java/com/ningdatech/pmapi/provincial/service/impl/JoinReviewProvincialBureauServiceImpl.java b/pmapi/src/main/java/com/ningdatech/pmapi/provincial/service/impl/JoinReviewProvincialBureauServiceImpl.java index 1cef45c..20805cb 100644 --- a/pmapi/src/main/java/com/ningdatech/pmapi/provincial/service/impl/JoinReviewProvincialBureauServiceImpl.java +++ b/pmapi/src/main/java/com/ningdatech/pmapi/provincial/service/impl/JoinReviewProvincialBureauServiceImpl.java @@ -155,7 +155,7 @@ public class JoinReviewProvincialBureauServiceImpl implements IJoinReviewProvinc String appSecret = govAppSecret; String appKey = govAppKey; String method = HttpMethod.POST.name(); - String secret = refreshTokenService.refreshToken(appKey,appSecret,govRequestTokenUrl,govRefreshTokenUrl,interfaceName,method); + String secret = refreshTokenService.refreshToken(appKey,appSecret,govRequestTokenUrl,govRefreshTokenUrl,method); String sign = MD5.create().digestHex(appKey + secret + timeStamp); HttpComponentsClientHttpRequestFactory factory = HttpUtil.generateHttpRequestFactory(); RestTemplate restTemplate; diff --git a/pmapi/src/main/java/com/ningdatech/pmapi/wps/controller/WpsConvertController.java b/pmapi/src/main/java/com/ningdatech/pmapi/wps/controller/WpsConvertController.java index c229757..2fc9e02 100644 --- a/pmapi/src/main/java/com/ningdatech/pmapi/wps/controller/WpsConvertController.java +++ b/pmapi/src/main/java/com/ningdatech/pmapi/wps/controller/WpsConvertController.java @@ -60,8 +60,7 @@ public class WpsConvertController { String appSecret = "496f0f2a19994f76b4fd9dae087366c7"; String appKey = "A331101453557202109017383"; - String secret = refreshTokenService.refreshToken(appKey, appSecret, govRequestTokenUrl, govRefreshTokenUrl, - "Fc3re2cq7r64Qfa7", HttpMethod.POST.name()); + String secret = refreshTokenService.refreshToken(appKey, appSecret, govRequestTokenUrl, govRefreshTokenUrl, HttpMethod.POST.name()); String sign = CryptUtils.MD5Encode(appKey + secret + timestamp); HttpComponentsClientHttpRequestFactory factory = HttpUtil.generateHttpRequestFactory(); RestTemplate restTemplate; diff --git a/pmapi/src/test/java/com/ningdatech/pmapi/irs/irsTest3.java b/pmapi/src/test/java/com/ningdatech/pmapi/irs/irsTest3.java index 8b58d19..e77829d 100644 --- a/pmapi/src/test/java/com/ningdatech/pmapi/irs/irsTest3.java +++ b/pmapi/src/test/java/com/ningdatech/pmapi/irs/irsTest3.java @@ -65,7 +65,7 @@ public class irsTest3 extends AppTests { String appSecret = "496f0f2a19994f76b4fd9dae087366c7"; String appKey = "A331101453557202109017383"; String method = "POST"; - String secret = refreshTokenService.refreshToken(appKey,appSecret,govRequestTokenUrl,govRefreshTokenUrl,"1",method); + String secret = refreshTokenService.refreshToken(appKey,appSecret,govRequestTokenUrl,govRefreshTokenUrl,method); String sign = CryptUtils.MD5Encode(appKey + secret + timestamp); HttpComponentsClientHttpRequestFactory factory = HttpUtil.generateHttpRequestFactory(); RestTemplate restTemplate;