| | |
| | | @Override |
| | | public void saveResetCreateOrder(String partyId, double money_revise, String safeword, String operator_name, String reset_type, String ip, String coin_type) { |
| | | |
| | | if (money_revise == 0 || coin_type == "") { |
| | | if (money_revise == 0 || coin_type.equalsIgnoreCase("")) { |
| | | return; |
| | | } |
| | | |
| | | if ("usdt".equals(coin_type) || "eur".equals(coin_type)) { |
| | | if ("usdt".equalsIgnoreCase(coin_type) || "eur".equalsIgnoreCase(coin_type) || "gbp".equalsIgnoreCase(coin_type)) { |
| | | // 交易所修改usdt |
| | | //到账金额 |
| | | double toAmt = money_revise; |
| | | if (coin_type.equals("eur")) { |
| | | ExchangeRate exchangeRate = exchangeRateService.findBy(ExchangeRate.IN, "EUR"); |
| | | if (!coin_type.equalsIgnoreCase("usdt")) { |
| | | ExchangeRate exchangeRate = exchangeRateService.findBy(ExchangeRate.IN, coin_type.toUpperCase()); |
| | | if (exchangeRate == null) { |
| | | throw new YamiShopBindException("汇率未设置!"); |
| | | } |