Browse Source

debug 查询最新项目

master
PoffyZhang 1 year ago
parent
commit
697ce1ed07
4 changed files with 9 additions and 5 deletions
  1. +2
    -0
      pmapi/src/main/resources/security/auth-dev.yml
  2. +2
    -0
      pmapi/src/main/resources/security/auth-prod.yml
  3. +4
    -4
      pmapi/src/test/java/com/ningdatech/pmapi/irs/IrsTest.java
  4. +1
    -1
      pmapi/src/test/resources/application.yml

+ 2
- 0
pmapi/src/main/resources/security/auth-dev.yml View File

@@ -35,6 +35,7 @@ security:
- /file/upload
- /file/download
- /api/v1/zwdd/pull/**
- /api/v1/irs/**
ignore-csrf-urls:
- /api/v1/user/auth/**
- /v2/api-docs
@@ -62,6 +63,7 @@ security:
- /file/upload
- /file/download
- /api/v1/zwdd/pull/**
- /api/v1/irs/**
role-map:
"engineer":
"project_manager":


+ 2
- 0
pmapi/src/main/resources/security/auth-prod.yml View File

@@ -35,6 +35,7 @@ security:
- /file/upload
- /file/download
- /api/v1/zwdd/pull/**
- /api/v1/irs/**
ignore-csrf-urls:
- /api/v1/user/auth/**
- /v2/api-docs
@@ -62,6 +63,7 @@ security:
- /file/upload
- /file/download
- /api/v1/zwdd/pull/**
- /api/v1/irs/**
role-map:
"engineer":
"project_manager":


+ 4
- 4
pmapi/src/test/java/com/ningdatech/pmapi/irs/IrsTest.java View File

@@ -67,16 +67,16 @@ public class IrsTest extends AppTests {
@Test
public void testApp() throws NoSuchAlgorithmException {
long timestamp = System.currentTimeMillis();
String areaCode = "331121";
String areaCode = "331123";
String appScret = "496f0f2a19994f76b4fd9dae087366c7";
String appKey = "A331101453557202109017383";
String appCode = "A331123467587202306014169";
String appCode = "A331123467587202307014170";//A331123467587202307014171

String requestSecret = RefreshKeyUtil.getRequestSecret(appKey, appScret);
String sign = CryptUtils.MD5Encode(appKey + requestSecret + timestamp);
String url = "https://interface.zjzwfw.gov.cn/gateway/api/001003001029/dataSharing/XS8daav3bcemZ3Ra.htm?" +
"requestTime=" + timestamp + "&sign=" + sign + "&appKey=" + appKey + "&name=abc&" +
"pageSize=10&deptCode=abc&areaCode=" + areaCode + "&pageNum=1&appCode=" + appCode;
"requestTime=" + timestamp + "&sign=" + sign + "&appKey=" + appKey + "&name=&" +
"pageSize=10&deptCode=&areaCode=" + areaCode + "&pageNum=1&appCode=" + appCode;
RestTemplate restTemplate = new RestTemplate();
ResponseEntity<String> forEntity = restTemplate.getForEntity(url, String.class);



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

@@ -1,3 +1,3 @@
spring:
profiles:
active: dev
active: prod

Loading…
Cancel
Save