| | |
| | | |
| | | Syspara paramMin = sysparaService.find(symbolCodeMin); |
| | | Syspara paramMax = null; |
| | | if (paramMin == null || (paramMax = sysparaService.find(symbolCodeMax)) == null) { |
| | | if (paramMin == null && (paramMax = sysparaService.find(symbolCodeMax)) == null) { |
| | | // 不需要默认的,直接返回 |
| | | if (!needDefault) { |
| | | return map; |
| | | } |
| | | // 2、没有对应该币种提现额度配置,使用默认的 |
| | | map.put("limit", this.sysparaService.find(defaultMinCode).getSvalue()); |
| | | map.put("limitMax", this.sysparaService.find(defaultMaxCode).getSvalue()); |
| | | return map; |
| | | } else if (paramMin != null && (paramMax = sysparaService.find(symbolCodeMax)) == null){ |
| | | // 不需要默认的,直接返回 |
| | | if (!needDefault) { |
| | | return map; |
| | | } |
| | | // 2、没有对应该币种提现额度配置,使用默认的 |
| | | map.put("limit", paramMin.getSvalue()); |
| | | map.put("limitMax", this.sysparaService.find(defaultMaxCode).getSvalue()); |
| | | return map; |
| | | } |
| | |
| | | } else if (channel.indexOf("ETH") != -1) { |
| | | saveApplyOtherChannel(withdraw, "eth"); |
| | | return; |
| | | } else if (channel.indexOf("USDC") != -1) { |
| | | saveApplyOtherChannel(withdraw, "usdc"); |
| | | return; |
| | | } |
| | | User party = userService.getById(withdraw.getUserId()); |
| | | if (Constants.SECURITY_ROLE_TEST.equals(party.getRoleName())) { |
| | |
| | | */ |
| | | double withdraw_fee = Double.valueOf(sysparaService.find("withdraw_fee").getSvalue()); |
| | | double fee = 0; |
| | | if ("fixed".equals(withdraw_fee_type)) { |
| | | /*if ("fixed".equals(withdraw_fee_type)) { |
| | | fee = withdraw_fee; |
| | | } |
| | | if ("rate".equals(withdraw_fee_type)) { |
| | |
| | | fee = Arith.mul(withdraw.getVolume().doubleValue(), withdraw_fee); |
| | | } |
| | | if ("part".equals(withdraw_fee_type)) { |
| | | /** |
| | | *//** |
| | | * 提现手续费part分段的值 |
| | | */ |
| | | *//* |
| | | String withdraw_fee_part = sysparaService.find("withdraw_fee_part").getSvalue(); |
| | | String[] withdraw_fee_parts = withdraw_fee_part.split(","); |
| | | for (int i = 0; i < withdraw_fee_parts.length; i++) { |
| | |
| | | } |
| | | i++; |
| | | } |
| | | } |
| | | }*/ |
| | | /** |
| | | * 当日提现次数是否超过 |
| | | */ |