| | |
| | | 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; |
| | |
| | | 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 { |