代码
package com.hyzs.szcg.doc.utils;
import com.hyzs.intelligentgateway.core.service.IntelligentGatewayService;
import lombok.extern.slf4j.Slf4j;
import org.apache.http.util.EntityUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.core.io.Resource;
import org.springframework.http.*;
import org.springframework.http.converter.HttpMessageConverter;
import org.springframework.stereotype.Component;
import org.springframework.web.client.RestTemplate;
import java.awt.image.BufferedImage;
import java.io.ByteArrayInputStream;
import java.io.ByteArrayOutputStream;
import java.io.IOException;
import java.io.InputStream;
@Slf4j
@Component
public class TencentApiUtil {
@Value("${apiUrl}")
private String apiUrl;
@Autowired
IntelligentGatewayService intelligentGatewayService;
/**
* GET
*
* @da