|
|
@@ -109,8 +109,10 @@ public class HuiTaiUploadImageComponents {
|
|
|
*/
|
|
|
private HuaTaiImageInitParamResponse initParam(String domain, String token) {
|
|
|
// token
|
|
|
- String initParamUrl = domain + INIT_PARAM + System.currentTimeMillis() + "&token" + token;
|
|
|
- HttpEntity<Object> httpEntity = new HttpEntity<>(null, HttpHeaders.EMPTY);
|
|
|
+ HttpHeaders httpHeaders = new HttpHeaders();
|
|
|
+ httpHeaders.setContentType(MediaType.APPLICATION_JSON);
|
|
|
+ String initParamUrl = domain + INIT_PARAM + System.currentTimeMillis() + "&token=" + token;
|
|
|
+ HttpEntity<Map<String, Object>> httpEntity = new HttpEntity<>(new HashMap<>(), httpHeaders);
|
|
|
ResponseEntity<HuaTaiImageInitParamResponse> response = restTemplate.exchange(initParamUrl, HttpMethod.GET, httpEntity,
|
|
|
HuaTaiImageInitParamResponse.class);
|
|
|
return response.getBody();
|