Sfoglia il codice sorgente

debug 查询最新项目

master
PoffyZhang 1 anno fa
parent
commit
1227c77bc2
1 ha cambiato i file con 0 aggiunte e 23 eliminazioni
  1. +0
    -23
      pmapi/src/main/java/com/ningdatech/pmapi/ding/controller/DingInfoPullController.java

+ 0
- 23
pmapi/src/main/java/com/ningdatech/pmapi/ding/controller/DingInfoPullController.java Vedi File

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

Loading…
Annulla
Salva