|
@@ -46,13 +46,7 @@ public class RestTemplateHandler {
|
|
|
}
|
|
|
|
|
|
httpHeaders.set("R-Service-Name", serviceName);
|
|
|
-
|
|
|
- MultiValueMap<String, Object> paramMap = new LinkedMultiValueMap<>();
|
|
|
- if (!params.isEmpty()){
|
|
|
- params.forEach(paramMap::add);
|
|
|
- }
|
|
|
-
|
|
|
- HttpEntity<MultiValueMap<String, Object>> httpEntity = new HttpEntity<>(paramMap, httpHeaders);
|
|
|
+ HttpEntity<Map<String, Object>> httpEntity = new HttpEntity<>(params, httpHeaders);
|
|
|
ResponseEntity<String> result = restTemplate.postForEntity(url,httpEntity,String.class);
|
|
|
return new Resp(HttpStatus.SC_OK,result.getBody());
|
|
|
}catch (Exception e){
|