| | |
| | | HttpResultVo execute = httpClient.execute(httppost, getResponseHandler()); |
| | | String stringContent = execute.getStringContent(); |
| | | ResultVo resultVo = JSONObject.parseObject(stringContent, ResultVo.class); |
| | | log.info("缴费结果确认,请求参数:"+orderNo); |
| | | log.info("请求结果为:" + resultVo); |
| | | if (resultVo.getRespcode().equals(CaiZhengConstans.CAI_ZHENG_SUCCESS)) { |
| | | return "success"; |
| | |
| | | header.put("Accept", "application/json;charset=utf-8"); |
| | | header.put("Content-Type", "application/json;charset=utf-8"); |
| | | String resultStr = HttpUtil.post(orderUrl, jsonObject); |
| | | System.out.println("发起入参===" + jsonObject); |
| | | log.info("发起入参===" + jsonObject); |
| | | JSONObject result = JSONObject.parseObject(resultStr); |
| | | ResultVo resultVo = JSONObject.parseObject(resultStr, ResultVo.class); |
| | | System.out.println("发起回参===" + result); |
| | | log.info("发起回参===" + result); |
| | | result.put("postData", reqdatastr); |
| | | JSONObject jsonObject2 = result.getJSONObject("respdata"); |
| | | String signfile = jsonObject2.getString("fileData"); |