|
|
@@ -78,13 +78,13 @@ public class JoinReviewProvincialBureauServiceImpl implements IJoinReviewProvinc |
|
|
|
* @return |
|
|
|
*/ |
|
|
|
@Override |
|
|
|
public String processInfo(String projectId) { |
|
|
|
public ApiResponse processInfo(String projectId) { |
|
|
|
Long timeStamp = System.currentTimeMillis()/1000; |
|
|
|
String url = provincialProperties.getHost() + provincialProperties.getDetailUrl() |
|
|
|
+ "?timestamp=" + timeStamp; |
|
|
|
|
|
|
|
log.info("省局获取审核详情 url {}",url); |
|
|
|
ResponseEntity<String> responseEntity = null; |
|
|
|
ResponseEntity<ApiResponse> responseEntity = null; |
|
|
|
|
|
|
|
String signature = getSha256(timeStamp,provincialProperties.getDetailUrl(), |
|
|
|
HttpMethod.POST.name()); |
|
|
@@ -100,7 +100,7 @@ public class JoinReviewProvincialBureauServiceImpl implements IJoinReviewProvinc |
|
|
|
.body(projectId); //也可以是DTO |
|
|
|
|
|
|
|
try { |
|
|
|
responseEntity = restTemplate.exchange(requestEntity,String.class); |
|
|
|
responseEntity = restTemplate.exchange(requestEntity,ApiResponse.class); |
|
|
|
log.info("获取审批详情 响应 :{}",responseEntity); |
|
|
|
} catch (Exception e) { |
|
|
|
log.error("[省局获取审核详情] http request error", e); |
|
|
|