| | |
| | | "cNgAAtydXYWQJALLOFCjCkRgeRVL8YE8bVi4U16b8ltAN1DlbWEzui6VFy2vIga3IryesNVAOOdornyAwf" + |
| | | "1huqB2lYfuQwtrIBKg=="; |
| | | public static final String notifyUrl = "http://47.111.90.145:8800/api/unipay/unipayCallBack"; |
| | | public static final String agreementPayNotifyUrl = "http://47.111.90.145:8800/api/unipay/agreementPayCallBack"; |
| | | public static final String agreementPayNotifyUrl = "http://47.111.90.145:8800/api/unipay/agreeMentPayCallBack"; |
| | | public static final String p1MerchantNo = "888118000001971";/** 商户编号 */ |
| | | public static final String aesKey = "1234567891234567";/** 商户编号 */ |
| | | |
| | |
| | | e.printStackTrace(); |
| | | } |
| | | System.out.println(httpResponseJson); |
| | | if(StrUtil.isNotBlank(httpResponseJson)){ |
| | | cn.hutool.json.JSONObject jsonObject = JSONUtil.parseObj(httpResponseJson); |
| | | System.out.println(jsonObject); |
| | | String biz_code = jsonObject.get("biz_code").toString(); |
| | | if("JS000000" == biz_code){ |
| | | return httpResponseJson; |
| | | } |
| | | return "fail"; |
| | | cn.hutool.json.JSONObject jsonObject = JSONUtil.parseObj(httpResponseJson); |
| | | System.out.println(jsonObject); |
| | | String biz_code = jsonObject.get("biz_code").toString(); |
| | | String biz_msg = jsonObject.get("biz_msg").toString(); |
| | | if("JS000000".equals(biz_code)){ |
| | | return biz_code; |
| | | }else{ |
| | | return "fail"; |
| | | return biz_msg; |
| | | } |
| | | } |
| | | |