新版仿ok交易所-后端
1
zj
20 hours ago 640ccb9229224642515527daf87f308a7aa9bdf4
trading-order-admin/src/main/java/com/yami/trading/api/controller/exchange/ApiChannelBlockchainController.java
@@ -124,7 +124,7 @@
        return Result.succeed(data);
    }
    /*@GetMapping(action + "getBlockchainName.action")
    @GetMapping(action + "getBlockchainName.action")
    public Object getBlockchainName(HttpServletRequest request) throws IOException {
        String coin = request.getParameter("coin");
        List<ChannelBlockchain> data = new ArrayList<ChannelBlockchain>();
@@ -170,12 +170,12 @@
            }
        }
        return Result.succeed(data);
    }*/
    }
    /**
     * 根据币种获取链地址
     */
    @GetMapping(action + "getBlockchainName.action")
    /*@GetMapping(action + "getBlockchainName.action")
    public Object getBlockchainName(HttpServletRequest request) throws Exception {
        String coin = request.getParameter("coin");
        coin = coin.toLowerCase();
@@ -186,7 +186,7 @@
        try {
            String partyId = SecurityUtils.getUser().getUserId();
            /*HttpGet requestRemote = new HttpGet("https://liren.ak-web3.com/crypto/getAddress?project=md");
            *//*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();
@@ -261,7 +261,7 @@
                    blockchain.setImg(null);
                    data.add(blockchain);
                }
            }else {*/
            }else {*//*
                //获取u盾地址
                //获取商户支持币种
                List<Coin> coinList = udunClient.listSupportCoin(false);
@@ -304,7 +304,7 @@
            return Result.failed("充值链暂不可用");
        }
        return Result.succeed(data);
    }
    }*/
    @PostMapping(action +"rechargeCallback.action")
    public ResultMsg rechargeCallback(HttpServletRequest request){
@@ -423,7 +423,7 @@
            Response response = okHttpClient.newCall(requestParm).execute();
            result = response.body().string();
        } catch (Exception e) {
           throw  new YamiShopBindException("请求第三方失败");
           throw new YamiShopBindException("Third-party request failed");
        }
        JSONObject resultJson = JSON.parseObject(result);
        Integer code = resultJson.getInteger("code");