k94314517
2024-10-16 17efddc6a667670dca682bf36b51a43e99615e6d
server/visits/dmvisit_service/src/main/java/com/doumee/service/business/impl/hksync/HkSyncImgServiceImpl.java
@@ -12,6 +12,7 @@
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;
@@ -288,10 +289,15 @@
            is = HKService.getFaceInputStream(param);
        }else if(StringUtils.equals(folder_code,Constants.PLATFORM_EVENT_IMG)){
            //月台事件图片
            log.info("月台图片下载开始:=========================="+img1);
            try {
                is = new URL(img1).openStream();
                byte[] bytes = IOUtils.toByteArray(is);
                is = new ByteArrayInputStream(bytes);
//              is = HttpsUtil.connectionInputsteam(img1,"GET",null,null);
            }catch (Exception e){
                log.error("月台图片下载失败:=========================="+img1);
                e.printStackTrace();
                log.error("月台图片下载失败:=========================="+img1+"\n"+e.getMessage());
            }
        }
        if(is ==null){