| | |
| | | reqData.setData(ShRSAUtils.encryptByPubKey(jsonData, conf.getPublicKey())); |
| | | //摘要,数据主体的MD5值 |
| | | reqData.setDigst(MyMD5Util.encrypt(jsonData)); |
| | | log.info("上报数据信息=" + JSON.toJSONString(reqData)); |
| | | log.debug("上报数据信息=" + JSON.toJSONString(reqData)); |
| | | SH2023RespDto responseDto = SH2023HttpClientUtil.postPushData(conf.getApiUrl() + inteId, JSON.toJSONString(reqData), conf); |
| | | |
| | | apiLog.setStatus(responseDto.getCode() == 200 ? 0 : responseDto.getCode()); |
| | |
| | | */ |
| | | @SuppressWarnings("resource") |
| | | public static SH2023PullRespDto postPullData(String url, String reqData) throws Exception { |
| | | log.info("---------接口请求地址:" +url+ "----------参数:" + reqData +"---------"); |
| | | log.debug("---------接口请求地址:" +url+ "----------参数:" + reqData +"---------"); |
| | | BufferedReader in = null; |
| | | URL urls = new URL(url); |
| | | HttpURLConnection connection = null; |