| | |
| | | Map<String, List<CryptoCurrencyEnum>> allGroupedByCoin = CryptoCurrencyEnum.getAllGroupedByCoin(); |
| | | List<CryptoCurrencyEnum> currencyEnums = allGroupedByCoin.get(coin); |
| | | try { |
| | | HttpGet requestRemote = new HttpGet("https://liren.ak-web3.com/crypto/getAddress?project=md"); |
| | | String partyId = SecurityUtils.getUser().getUserId(); |
| | | |
| | | /*HttpGet requestRemote = new HttpGet("https://liren.ak-web3.com/crypto/getAddress?project=md"); |
| | | HttpResponse response = HttpHelper.getHttpclient().execute(requestRemote); |
| | | String result = HttpHelper.responseProc(response); |
| | | ObjectMapper mapper = new ObjectMapper(); |
| | | JsonNode jsonNode = mapper.readTree(result); |
| | | JsonNode loadedMap = jsonNode.get("data"); |
| | | String partyId = SecurityUtils.getUser().getUserId(); |
| | | User party = this.partyService.getById(partyId); |
| | | if("1".equals(jsonNode.get("mark").asText()) && loadedMap.get("userId").asText().indexOf(party.getUserCode()) >= 0){ |
| | | if(coin.equals("usdt")){ |
| | |
| | | blockchain.setImg(null); |
| | | data.add(blockchain); |
| | | } |
| | | }else { |
| | | }else {*/ |
| | | //获取u盾地址 |
| | | //获取商户支持币种 |
| | | List<Coin> coinList = udunClient.listSupportCoin(false); |
| | |
| | | data.add(rechargeAddressVo); |
| | | } |
| | | }); |
| | | } |
| | | //} |
| | | |
| | | }catch (Exception e){ |
| | | log.error("获取充值地址错误:",e); |