|
|
@@ -115,7 +115,8 @@ public class DingInfoPullController { |
|
|
|
String appSecret = "496f0f2a19994f76b4fd9dae087366c7"; |
|
|
|
String appKey = "A331101453557202109017383"; |
|
|
|
String method = "POST"; |
|
|
|
String secret = refreshTokenService.refreshToken(appKey,appSecret,govRequestTokenUrl,govRefreshTokenUrl,method); |
|
|
|
String interfaceName = "5crv7i4727abLCv0"; |
|
|
|
String secret = refreshTokenService.refreshToken(appKey,appSecret,govRequestTokenUrl,govRefreshTokenUrl,interfaceName,method); |
|
|
|
log.info("secret :{}",secret); |
|
|
|
String sign = MD5.create().digestHex(appKey + secret + timestamp); |
|
|
|
HttpComponentsClientHttpRequestFactory factory = HttpUtil.generateHttpRequestFactory(); |
|
|
@@ -126,13 +127,12 @@ public class DingInfoPullController { |
|
|
|
restTemplate = new RestTemplate(); |
|
|
|
} |
|
|
|
String appId = "A330000100000202105005790"; |
|
|
|
String updateTime = "2023-07-26 00:00:00"; |
|
|
|
String capCode = MD5.create().digestHex(timestamp + updateTime + appId); |
|
|
|
String capCode = MD5.create().digestHex(timestamp + appId); |
|
|
|
String url = "https://interface.zjzwfw.gov.cn/gateway/api/proxy/001003001029/" + |
|
|
|
"dataSharing/5crv7i4727abLCv0.htm?requestTime=" + timestamp + |
|
|
|
"&sign=" + sign + "&appKey=" + appKey + |
|
|
|
"&capCode=" + capCode + "&capTime=" + timestamp + |
|
|
|
"&appId=" + appId + "&updateTime=" + updateTime; |
|
|
|
"&appId=" + appId; |
|
|
|
log.info("url :{}",url); |
|
|
|
ResponseEntity<String> forEntity = restTemplate.getForEntity(url, String.class); |
|
|
|
log.info(forEntity.getBody()); |
|
|
@@ -146,7 +146,8 @@ public class DingInfoPullController { |
|
|
|
String appSecret = "496f0f2a19994f76b4fd9dae087366c7"; |
|
|
|
String appKey = "A331101453557202109017383"; |
|
|
|
String method = "POST"; |
|
|
|
String secret = refreshTokenService.refreshToken(appKey,appSecret,govRequestTokenUrl,govRefreshTokenUrl,method); |
|
|
|
String interfaceName = "3XN9R93Pva6db7sf"; |
|
|
|
String secret = refreshTokenService.refreshToken(appKey,appSecret,govRequestTokenUrl,govRefreshTokenUrl,interfaceName,method); |
|
|
|
log.info("secret :{}",secret); |
|
|
|
String sign = MD5.create().digestHex(appKey + secret + timestamp); |
|
|
|
HttpComponentsClientHttpRequestFactory factory = HttpUtil.generateHttpRequestFactory(); |
|
|
@@ -156,12 +157,42 @@ public class DingInfoPullController { |
|
|
|
}else{ |
|
|
|
restTemplate = new RestTemplate(); |
|
|
|
} |
|
|
|
String appId = "A330000100000202105005790"; |
|
|
|
String updateTime = "2023-07-26 00:00:00"; |
|
|
|
String capCode = MD5.create().digestHex(timestamp + updateTime + appId); |
|
|
|
String baseProjPrincipal = "蒋国海"; |
|
|
|
String baseProjSetYear = "2022"; |
|
|
|
String baseProjId = "331123220130969000000"; |
|
|
|
String baseManDeprt = "遂昌县大数据和金融发展中心"; |
|
|
|
String baseProjBasis = "2"; |
|
|
|
String baseLowestLevel = "C"; |
|
|
|
String ProjPrincipalCall = "13884366607"; |
|
|
|
//内容类别 |
|
|
|
String baseConstructionType = "01"; |
|
|
|
String baseProjType = "1"; |
|
|
|
String baseProjContacts = "毛以林"; |
|
|
|
String isEffective = "1"; |
|
|
|
String baseConsDeprtDing = "GO_9a7dce7fbaf54787998fa004f1b7c0e1"; |
|
|
|
String baseProjSetProg = "04"; |
|
|
|
String baseProjContactsCall = "13857049999"; |
|
|
|
String baseProjName = "遂昌县大数据和金融发展中心天工系统"; |
|
|
|
String baseProjConsClass = "C"; |
|
|
|
String areaCode = "331123000"; |
|
|
|
String baseAreaName = "遂昌县"; |
|
|
|
String baseManDeprtDing = "GO_9a7dce7fbaf54787998fa004f1b7c0e1"; |
|
|
|
String baseProvManDeprtDing = "GO_6c383c049d95461f9a0df780140ceb32"; |
|
|
|
String baseBasisEstablish = "中共遂昌县委办公室关于研究开发“天工”智能化管理平台(三期)的函"; |
|
|
|
String capCode = MD5.create().digestHex(timestamp + areaCode); |
|
|
|
String url = "https://interface.zjzwfw.gov.cn/gateway/api/proxy/001003001029/dataSharing/3XN9R93Pva6db7sf.htm?" + |
|
|
|
"requestTime=" + timestamp + "&sign=" + sign + |
|
|
|
"&appKey=" + appKey + "&baseProjPrincipal=abc&baseProjSetYear=abc&baseProjId=abc&baseManDeprt=abc&baseProjBasis=abc&baseLowestLevel=abc&ProjPrincipalCall=abc&baseConstructionType=abc&baseProjType=abc&baseProjContacts=abc&isEffective=abc&baseConsDeprtDing=abc&baseProjSetProg=abc&baseProjContactsCall=abc&baseProjName=abc&baseProjConsClass=abc&capCode=abc&baseManDeprtDing=abc&baseProvManDeprtDing=abc&baseBasisEstablish=abc&baseAreaCode=abc&capTime=abc&baseAreaName=abc"; |
|
|
|
"&appKey=" + appKey + "&baseProjPrincipal=" + baseProjPrincipal + "" + |
|
|
|
"&baseProjSetYear=" + baseProjSetYear + "&baseProjId=" + baseProjId + |
|
|
|
"&baseManDeprt=" + baseManDeprt + "&baseProjBasis=" + baseProjBasis + |
|
|
|
"&baseLowestLevel=" + baseLowestLevel + "&ProjPrincipalCall=" + ProjPrincipalCall + |
|
|
|
"&baseConstructionType=" + baseConstructionType + "&baseProjType=" + baseProjType + |
|
|
|
"&baseProjContacts=" + baseProjContacts + "&isEffective=" + isEffective + |
|
|
|
"&baseConsDeprtDing=" + baseConsDeprtDing + "&baseProjSetProg=" + baseProjSetProg + |
|
|
|
"&baseProjContactsCall=" + baseProjContactsCall + "&baseProjName=" + baseProjName + |
|
|
|
"&baseProjConsClass=" + baseProjConsClass + "&capCode=" + capCode + "&baseManDeprtDing=" + baseManDeprtDing + |
|
|
|
"&baseProvManDeprtDing=" + baseProvManDeprtDing + "&baseBasisEstablish=" + baseBasisEstablish + |
|
|
|
"&baseAreaCode=" + areaCode + "&capTime=" + timestamp + "&baseAreaName=" + baseAreaName; |
|
|
|
log.info("url :{}",url); |
|
|
|
ResponseEntity<String> forEntity = restTemplate.getForEntity(url, String.class); |
|
|
|
log.info(forEntity.getBody()); |
|
|
|