|
@@ -12,18 +12,10 @@ import com.alibaba.fastjson.JSONArray;
|
|
|
import com.alibaba.fastjson.JSONObject;
|
|
|
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
|
|
|
import lombok.extern.slf4j.Slf4j;
|
|
|
-import org.apache.http.ParseException;
|
|
|
import org.jeecg.common.util.DateUtils;
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
import org.springframework.beans.factory.annotation.Value;
|
|
|
-import org.springframework.http.HttpEntity;
|
|
|
-import org.springframework.http.HttpHeaders;
|
|
|
-import org.springframework.http.HttpMethod;
|
|
|
-import org.springframework.http.ResponseEntity;
|
|
|
import org.springframework.stereotype.Service;
|
|
|
-import org.springframework.util.LinkedMultiValueMap;
|
|
|
-import org.springframework.util.MultiValueMap;
|
|
|
-import org.springframework.web.client.RestTemplate;
|
|
|
|
|
|
import java.math.BigDecimal;
|
|
|
import java.util.Date;
|
|
@@ -61,8 +53,6 @@ public class BatchServiceImpl implements IBatchService {
|
|
|
private IKuaishouInterfaceService kuaishouInterfaceService;
|
|
|
@Autowired
|
|
|
private IKuaiShouImageGetService imageGetService;
|
|
|
- @Autowired
|
|
|
- private RestTemplate rest;
|
|
|
|
|
|
|
|
|
/**
|
|
@@ -1683,29 +1673,6 @@ public class BatchServiceImpl implements IBatchService {
|
|
|
return returnJson;
|
|
|
}
|
|
|
|
|
|
-
|
|
|
- private String exceptInfoForRestTemplate(String url, Map<String, Object> paramMap, Map<String, String> headerMap) throws ParseException {
|
|
|
- try {
|
|
|
- MultiValueMap<String, Object> param = new LinkedMultiValueMap<>();
|
|
|
- if (!Check.isNullMap(paramMap)) {
|
|
|
- for (String key : paramMap.keySet()) {
|
|
|
- param.add(key, paramMap.get(key));
|
|
|
- }
|
|
|
- HttpHeaders headers = new HttpHeaders();
|
|
|
- if (!Check.isNullMap(headerMap)) {
|
|
|
- for (String key : headerMap.keySet()) {
|
|
|
- headers.add(key, headerMap.get(key));
|
|
|
- }
|
|
|
- }
|
|
|
- HttpEntity<MultiValueMap<String, Object>> httpEntity = new HttpEntity<MultiValueMap<String, Object>>(param, headers);
|
|
|
- ResponseEntity<String> responseEntity = rest.exchange(url, HttpMethod.POST, httpEntity, String.class);
|
|
|
- return responseEntity.getBody();
|
|
|
- }
|
|
|
- } catch (Exception e) {
|
|
|
- e.printStackTrace();
|
|
|
- }
|
|
|
- return null;
|
|
|
- }
|
|
|
}
|
|
|
|
|
|
|