|
|
@@ -87,27 +87,4 @@ public class DingInfoPullController { |
|
|
|
public String init() { |
|
|
|
return procDefManage.init(); |
|
|
|
} |
|
|
|
|
|
|
|
@ApiOperation(value = "系统流程配置初始化", notes = "系统流程配置初始化") |
|
|
|
@GetMapping("/search") |
|
|
|
public String testApp() throws NoSuchAlgorithmException { |
|
|
|
long timestamp = System.currentTimeMillis(); |
|
|
|
String areaCode = "331123"; |
|
|
|
String appScret = "496f0f2a19994f76b4fd9dae087366c7"; |
|
|
|
String appKey = "A331101453557202109017383"; |
|
|
|
String appCode = "A331123467587202307014170"; |
|
|
|
|
|
|
|
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=&" + |
|
|
|
"pageSize=10&deptCode=&areaCode=" + areaCode + "&pageNum=1&appCode=" + appCode; |
|
|
|
log.info(url); |
|
|
|
RestTemplate restTemplate = new RestTemplate(); |
|
|
|
ResponseEntity<String> forEntity = restTemplate.getForEntity(url, String.class); |
|
|
|
|
|
|
|
log.info(JSON.toJSONString(forEntity)); |
|
|
|
|
|
|
|
return JSON.toJSONString(forEntity); |
|
|
|
} |
|
|
|
} |