| | |
| | | } |
| | | String string = resJsonObject.getString("reqCipher"); |
| | | String decrypt = decrypt(string); |
| | | if (decrypt==null){ |
| | | return "false"+"发生未知异常(应该是银行卡信息和持卡人信息不一致 但是第三方没有返回准确的错误信息 这里统一返回为银行卡信息或持卡人信息有误)"; |
| | | } |
| | | System.err.println(decrypt); |
| | | JSONObject jsonObject = JSONObject.parseObject(decrypt); |
| | | System.err.println(jsonObject); |
| | | if (org.springframework.util.StringUtils.hasLength(jsonObject.getString("error_msg"))){ |
| | | return "false"+jsonObject.getString("error_msg"); |
| | | } |
| | | return "success"; |
| | | } |
| | | public static String queryBalance( |
| | |
| | | // ,"6228480469852935177"); |
| | | // updateAccount("test945622121","周帅","19983174515" |
| | | // ,"6228480469852935177"); |
| | | updateAccount("test945622121","周帅","19983174515" |
| | | ,"6228480469852935177"); |
| | | // queryBalance("test945622121"); |
| | | balancePay("12345678912", "test945622121","0.01", ""); |
| | | // balancePay("PAY100388123123", "test945622121","0.05", ""); |
| | | // String decrypt = decrypt("z8Che/JwxrGj/oTOuAvU8HFN6vXL/OqeioV41ZuPV/xVQPt9vCHHc1R5LgAO51Hq5ilD9wqsminRvSiJj6Fs/Bfk8espZSOO2g1OE7FZyqcLB1w01MSWyxfQT8nc2GH/EfOKXCuaKBCeyW24OvW3ng=="); |
| | | // System.err.println(decrypt); |
| | | // balanceWithdraw("TX98633336569","0.05","test945622121","https://xq.xqzhihui.com/api/user/client/app-user-withdraw/base/callbackA"); |
| | | } |
| | | |
| | | public static JSONObject balancePay(String orderNo, String memberId, String payAmt, String notifyUrl) throws Exception { |