CZT
2023-12-26 604c6337b8806a5686d3931f5577bf371c7dec14
src/main/java/com/fzzy/push/shjdjw2023/Shjdjw2023HttpClientUtil.java
@@ -3,7 +3,6 @@
import com.alibaba.fastjson.JSON;
import com.fzzy.api.entity.ApiConfs;
import com.fzzy.api.utils.AESUtils;
import com.fzzy.push.gd2022.dto.GD2022ResponseDto;
import com.fzzy.push.shjdjw2023.dto.ShjdjwRespDto;
import lombok.extern.slf4j.Slf4j;
import org.apache.commons.lang.StringUtils;
@@ -71,14 +70,8 @@
                rs = null;
                return new ShjdjwRespDto(99,e.getMessage());
            }
            if(StringUtils.isNotEmpty(rs)){
                rs = rs.replaceAll("\"", "");
                log.info("---------接口返回,秘文:" + rs +"---------");
                rs = AESUtils.decrypt(rs, apiConfs.getPublicKey());
                log.info("---------接口返回,解析后:" + rs +"---------");
                responseDto = JSON.parseObject(rs, ShjdjwRespDto.class);
            }
            log.info("---------接口返回:" + rs +"---------");
            responseDto = JSON.parseObject(rs,ShjdjwRespDto.class);
            if(responseDto == null )   return new ShjdjwRespDto(99,"接口请求发生未知错误");
            return responseDto;
        } finally {