| | |
| | | |
| | | String reqdatastr = JSONObject.toJSONString(payReqData); |
| | | |
| | | String mac = this.getMD5("A1749891493E4CDDBFE4506357B1F0AB||" + this.getBase64(reqdatastr)); |
| | | String mac = this.getMD5(appId + this.getBase64(reqdatastr)); |
| | | JSONObject jsonObject = new JSONObject(); |
| | | jsonObject.put("appid", "A1749891493E4CDDBFE4506357B1F0AB"); |
| | | jsonObject.put("appid", appId); |
| | | jsonObject.put("mac", mac); |
| | | jsonObject.put("reqdata", this.getBase64(reqdatastr)); |
| | | Map<String, String> header = new HashMap(); |
| | | header.put("Accept", "application/json;charset=utf-8"); |
| | | header.put("Content-Type", "application/json;charset=utf-8"); |
| | | String resultStr = HttpUtil.post("http://finpt.xjcz.gov.cn/fs-service/fs-pay/invoice.do ", jsonObject); |
| | | String resultStr = HttpUtil.post(orderUrl, jsonObject); |
| | | System.out.println("发起入参===" + jsonObject); |
| | | JSONObject result = JSONObject.parseObject(resultStr); |
| | | ResultVo resultVo = JSONObject.parseObject(resultStr, ResultVo.class); |
| | |
| | | Map<String, Object> mmp = new HashMap(); |
| | | |
| | | try { |
| | | String filePath = "F:/cssconfig.properties"; |
| | | String filePath = "/www/wwwroot/exam/cssconfig.properties"; |
| | | System.out.println("配置文件路径:" + filePath); |
| | | MOFClient client = new MOFClient(filePath); |
| | | System.out.println("证书标识为:" + certId); |
| | |
| | | public Boolean uploadXmlV2(String orderNo, String signFile) { |
| | | log.info("上传验签开始"); |
| | | log.info("上传验签参数订单号:" + orderNo + "签名文件:" + signFile); |
| | | ResponseDataVo<?> res = ClientFactory.sdkConfig("A1749891493E4CDDBFE4506357B1F0AB", "http://finpt.xjcz.gov.cn/fs-service", "http://finpt.xjcz.gov.cn/fs-service"); |
| | | ResponseDataVo<?> res = ClientFactory.sdkConfig(appId, "http://finpt.xjcz.gov.cn/fs-service", "http://finpt.xjcz.gov.cn/fs-service"); |
| | | SignatureFileVo signatureFile = new SignatureFileVo(); |
| | | signatureFile.setFileData(signFile); |
| | | signatureFile.setOrderNo(orderNo); |