| | |
| | | /** |
| | | * UDUN Merchant Key |
| | | */ |
| | | private final String merchantKey = "2ea108221e1abasd2129a614ca4f1e899ef"; |
| | | private final String merchantKey = "ced10252df2ffad4e9d3059924ece9b0"; |
| | | |
| | | /** |
| | | * UDUN Merchant Number |
| | | */ |
| | | private final String merchantId = "3221d38"; |
| | | private final String merchantId = "322571"; |
| | | |
| | | /** |
| | | * Callback 充值 |
| | |
| | | |
| | | public static void main(String[] args) { |
| | | Map<String, Object> params = new HashMap<>(); |
| | | params.put("merchantId", 322138); |
| | | params.put("merchantId", 322571); |
| | | params.put("showBalance", false); |
| | | ResultMsg result = JSONUtil.toBean(UdunUtils.post("https://sig10.udun.io", "2ea108221e1ab2129a614ca4f1e899ef", ApiPath.SUPPORT_COIN, JSONUtil.toJsonStr(params)), ResultMsg.class); |
| | | ResultMsg result = JSONUtil.toBean(UdunUtils.post("https://sig10.udun.io", "ced10252df2ffad4e9d3059924ece9b0", ApiPath.SUPPORT_COIN, JSONUtil.toJsonStr(params)), ResultMsg.class); |
| | | if (result.getCode() != HttpStatus.HTTP_OK) { |
| | | Console.error(JSONUtil.toJsonStr(result)); |
| | | } |