| | |
| | | // 结算卡信息 |
| | | JSONObject cardInfo = new JSONObject(); |
| | | cardInfo.put("card_type", "1"); |
| | | cardInfo.put("card_name", userWithdrawal.getBindAcctName()); |
| | | cardInfo.put("card_name", userWithdrawal.getOpenAccountName()); |
| | | cardInfo.put("card_no", userWithdrawal.getBankCardCode()); |
| | | cardInfo.put("prov_id", userWithdrawal.getBankCardProvinceCode()); |
| | | cardInfo.put("area_id", userWithdrawal.getBankCardCityCode()); |
| | |
| | | * DM:当日到账;到账资金不包括当天的交易资金; |
| | | * 示例值:T1 |
| | | */ |
| | | cashConfig.put("switch_state", "1"); |
| | | cashConfig.put("cash_type", "D1"); |
| | | cashConfig.put("fix_amt", "0.00"); |
| | | cashConfig.put("weekday_fix_amt", "0.00"); |
| | |
| | | // 3. 发起API调用 |
| | | Map<String, Object> response = BasePayRequest.requestBasePay("v2/trade/acctpayment/balance/query", paramsInfo, null, false); |
| | | log.info("账户余额信息查询返回参数:{}", response); |
| | | JSONArray accountList = JSONArray.parseArray(JSONObject.toJSONString(response.get("acctInfo_list"))); |
| | | JSONArray accountList = JSONArray.parseArray(response.get("acctInfo_list").toString()); |
| | | if (accountList != null && !accountList.isEmpty()) { |
| | | JSONObject acctInfo = accountList.getJSONObject(0); |
| | | log.info("账户余额信息查询返回余额:{}", acctInfo.getString("avail_bal")); |