From 2cd3c8693cba0b799641fce37ca578041ef9d26c Mon Sep 17 00:00:00 2001 From: PoffyZhang <99775271@qq.com> Date: Mon, 31 Jul 2023 14:38:25 +0800 Subject: [PATCH] =?UTF-8?q?=E5=BA=94=E7=94=A8=E4=B8=A2=E5=A4=B1=E9=97=AE?= =?UTF-8?q?=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pmapi/src/test/java/com/ningdatech/pmapi/irs/IrsTest.java | 14 +++++++++----- pmapi/src/test/resources/application-prod.yml | 6 +++--- 2 files changed, 12 insertions(+), 8 deletions(-) diff --git a/pmapi/src/test/java/com/ningdatech/pmapi/irs/IrsTest.java b/pmapi/src/test/java/com/ningdatech/pmapi/irs/IrsTest.java index e079b6d..083f793 100644 --- a/pmapi/src/test/java/com/ningdatech/pmapi/irs/IrsTest.java +++ b/pmapi/src/test/java/com/ningdatech/pmapi/irs/IrsTest.java @@ -44,7 +44,8 @@ public class IrsTest extends AppTests { @Test public void test1(){ String method = "GET"; - String url = "https://bcdsg.zj.gov.cn:8443/restapi/prod/IC33000020230427000001/irs-res-bill/report/pdfUrl?appCode=A330000100000202105005790"; + String url = "https://bcdsg.zj.gov.cn:8443/restapi/prod/IC33000020230427000001/irs-res-bill/report/pdfUrl" + + "?appCode=A331123467587202307014177"; String appScret = "BCDSGS_4ab4235d26a9a357170a39f3a13fd68c"; String appKey = "BCDSGA_d874c8e46b541eb4e8aac6510fd3351b"; @@ -86,18 +87,21 @@ public class IrsTest extends AppTests { @Test public void test2() throws NoSuchAlgorithmException { long timestamp = System.currentTimeMillis(); - String areaCode = "331121"; + String areaCode = "331123"; String appKey = "A331101453557202109017383"; String appScret = "496f0f2a19994f76b4fd9dae087366c7"; - + String baseProjSys = "初次建设的应用21"; + String baseProjSysCode = "A331123467587202307014177"; + String baseProjName = "遂昌县-nsl-项目测试004"; + String baseProjId = "331123230130123412186"; String requestSecret = RefreshKeyUtil.getRequestSecret(appKey, appScret); String capCode = CryptUtils.MD5Encode(timestamp + areaCode); String capTime = String.valueOf(timestamp); String sign = CryptUtils.MD5Encode(appKey + requestSecret + timestamp); String url = "https://interface.zjzwfw.gov.cn/gateway/api/proxy/001003001029/dataSharing/94wbaL1I1Pbz0648.htm?requestTime=" + timestamp + "&sign=" + sign + "&appKey=" + appKey + "&capCode=" + capCode + "&capTime=" + capTime + - "&baseProjSys=测试应用&areaCode=331121&baseProjName=nsl-丽水演示项目&baseProjId=331100230130112233001" + - "&isEffective=1&baseProjSysCode=25083657"; + "&baseProjSys=" + baseProjSys + "&areaCode=331123&baseProjName=" + baseProjName + "&baseProjId=" + baseProjId + + "&isEffective=1&baseProjSysCode=" + baseProjSysCode; RestTemplate restTemplate = new RestTemplate(); ResponseEntity forEntity = restTemplate.getForEntity(url, String.class); diff --git a/pmapi/src/test/resources/application-prod.yml b/pmapi/src/test/resources/application-prod.yml index 2f1baa9..b777187 100644 --- a/pmapi/src/test/resources/application-prod.yml +++ b/pmapi/src/test/resources/application-prod.yml @@ -13,9 +13,9 @@ spring: namespace: "spring:session" redis: timeout: 5000 - host: localhost - port: 6379 - database: 0 + host: 47.98.125.47 + port: 26379 + database: 4 password: Ndkj1234 jedis: pool: