|
|
@@ -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); |
|
|
|
|
|
|
|