| | |
| | | import com.doumee.dao.business.*; |
| | | import com.doumee.dao.business.model.*; |
| | | import lombok.extern.slf4j.Slf4j; |
| | | import org.apache.commons.io.IOUtils; |
| | | import org.apache.commons.lang3.StringUtils; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.stereotype.Service; |
| | |
| | | log.info("月台图片下载开始:=========================="+img1); |
| | | try { |
| | | is = new URL(img1).openStream(); |
| | | // is = HttpsUtil.connectionInputsteam(img1,"GET",null,null); |
| | | byte[] bytes = IOUtils.toByteArray(is); |
| | | is = new ByteArrayInputStream(bytes); |
| | | // is = HttpsUtil.connectionInputsteam(img1,"GET",null,null); |
| | | }catch (Exception e){ |
| | | e.printStackTrace(); |
| | | log.error("月台图片下载失败:=========================="+img1+"\n"+e.getMessage()); |