Browse Source

转发IRS 刷新密钥

master
PoffyZhang 1 year ago
parent
commit
c8e67975c5
7 changed files with 13 additions and 14 deletions
  1. +2
    -2
      pmapi/src/main/resources/application-dev.yml
  2. +2
    -2
      pmapi/src/main/resources/application-pre.yml
  3. +2
    -2
      pmapi/src/main/resources/application-prod.yml
  4. +1
    -2
      pmapi/src/test/java/com/ningdatech/pmapi/irs/irsTest4.java
  5. +2
    -2
      pmapi/src/test/resources/application-dev.yml
  6. +2
    -2
      pmapi/src/test/resources/application-pre.yml
  7. +2
    -2
      pmapi/src/test/resources/application-prod.yml

+ 2
- 2
pmapi/src/main/resources/application-dev.yml View File

@@ -223,8 +223,8 @@ irs:
appKey: A331101453557202109017383
interface-refresh:
method: POST
request-token-url: http://59.202.38.178/gateway/app/refreshTokenByKey.htm?appKey={appKey}&requestTime={requestTime}&sign={sign}
refresh-token-url: http://59.202.38.178/gateway/app/refreshTokenBySec.htm?appKey={appKey}&requestTime={requestTime}&sign={sign}
request-token-url: http://interface.zjzwfw.gov.cn/gateway/app/refreshTokenByKey.htm
refresh-token-url: http://interface.zjzwfw.gov.cn/gateway/app/refreshTokenBySec.htm
interface-local-refresh:
method: GET
request-token-url: https://interface.ls.local/a/api/requestTokenKey?appKey={appKey}&requestTime={requestTime}&sign={sign}


+ 2
- 2
pmapi/src/main/resources/application-pre.yml View File

@@ -226,8 +226,8 @@ irs:
appKey: A331101453557202109017383
interface-refresh:
method: POST
request-token-url: http://59.202.38.178/gateway/app/refreshTokenByKey.htm?appKey={appKey}&requestTime={requestTime}&sign={sign}
refresh-token-url: http://59.202.38.178/gateway/app/refreshTokenBySec.htm?appKey={appKey}&requestTime={requestTime}&sign={sign}
request-token-url: http://interface.zjzwfw.gov.cn/gateway/app/refreshTokenByKey.htm
refresh-token-url: http://interface.zjzwfw.gov.cn/gateway/app/refreshTokenBySec.htm
interface-local-refresh:
method: GET
request-token-url: https://interface.ls.local/a/api/requestTokenKey?appKey={appKey}&requestTime={requestTime}&sign={sign}


+ 2
- 2
pmapi/src/main/resources/application-prod.yml View File

@@ -226,8 +226,8 @@ irs:
appKey: A331101453557202109017383
interface-refresh:
method: POST
request-token-url: http://59.202.38.178/gateway/app/refreshTokenByKey.htm?appKey={appKey}&requestTime={requestTime}&sign={sign}
refresh-token-url: http://59.202.38.178/gateway/app/refreshTokenBySec.htm?appKey={appKey}&requestTime={requestTime}&sign={sign}
request-token-url: http://interface.zjzwfw.gov.cn/gateway/app/refreshTokenByKey.htm
refresh-token-url: http://interface.zjzwfw.gov.cn/gateway/app/refreshTokenBySec.htm
interface-local-refresh:
method: GET
request-token-url: https://interface.ls.local/a/api/requestTokenKey?appKey={appKey}&requestTime={requestTime}&sign={sign}


+ 1
- 2
pmapi/src/test/java/com/ningdatech/pmapi/irs/irsTest4.java View File

@@ -39,8 +39,7 @@ public class irsTest4 extends AppTests {
String appKey = "A331101453557202109017383";
String dataName = "大数据管理局";

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;


+ 2
- 2
pmapi/src/test/resources/application-dev.yml View File

@@ -223,8 +223,8 @@ irs:
appKey: A331101453557202109017383
interface-refresh:
method: POST
request-token-url: http://59.202.38.178/gateway/app/refreshTokenByKey.htm?appKey={appKey}&requestTime={requestTime}&sign={sign}
refresh-token-url: http://59.202.38.178/gateway/app/refreshTokenBySec.htm?appKey={appKey}&requestTime={requestTime}&sign={sign}
request-token-url: http://interface.zjzwfw.gov.cn/gateway/app/refreshTokenByKey.htm
refresh-token-url: http://interface.zjzwfw.gov.cn/gateway/app/refreshTokenBySec.htm
interface-local-refresh:
method: GET
request-token-url: https://interface.ls.local/a/api/requestTokenKey?appKey={appKey}&requestTime={requestTime}&sign={sign}


+ 2
- 2
pmapi/src/test/resources/application-pre.yml View File

@@ -226,8 +226,8 @@ irs:
appKey: A331101453557202109017383
interface-refresh:
method: POST
request-token-url: http://59.202.38.178/gateway/app/refreshTokenByKey.htm?appKey={appKey}&requestTime={requestTime}&sign={sign}
refresh-token-url: http://59.202.38.178/gateway/app/refreshTokenBySec.htm?appKey={appKey}&requestTime={requestTime}&sign={sign}
request-token-url: http://interface.zjzwfw.gov.cn/gateway/app/refreshTokenByKey.htm
refresh-token-url: http://interface.zjzwfw.gov.cn/gateway/app/refreshTokenBySec.htm
interface-local-refresh:
method: GET
request-token-url: https://interface.ls.local/a/api/requestTokenKey?appKey={appKey}&requestTime={requestTime}&sign={sign}


+ 2
- 2
pmapi/src/test/resources/application-prod.yml View File

@@ -226,8 +226,8 @@ irs:
appKey: A331101453557202109017383
interface-refresh:
method: POST
request-token-url: http://59.202.38.178/gateway/app/refreshTokenByKey.htm?appKey={appKey}&requestTime={requestTime}&sign={sign}
refresh-token-url: http://59.202.38.178/gateway/app/refreshTokenBySec.htm?appKey={appKey}&requestTime={requestTime}&sign={sign}
request-token-url: http://interface.zjzwfw.gov.cn/gateway/app/refreshTokenByKey.htm
refresh-token-url: http://interface.zjzwfw.gov.cn/gateway/app/refreshTokenBySec.htm
interface-local-refresh:
method: GET
request-token-url: https://interface.ls.local/a/api/requestTokenKey?appKey={appKey}&requestTime={requestTime}&sign={sign}


Loading…
Cancel
Save