新版仿ok交易所-后端
1
zj
20 hours ago 640ccb9229224642515527daf87f308a7aa9bdf4
trading-order-admin/src/main/java/com/yami/trading/api/controller/ApiCapitaltWalletWalletController.java
@@ -77,7 +77,7 @@
    public Result updateWallt(@Valid TransferModel model) {
        String partyId = SecurityUtils.getCurrentUserId();
        if(!StringUtils.isNotEmpty(partyId)){
            throw new YamiShopBindException("请登录!");
            throw new YamiShopBindException("Please log in!");
        }
        return capitaltWalletService.updateWallt(partyId,model.getDeductAccount(),model.getReceiveAccount(),model.getMoneyRevise());
    }
@@ -87,7 +87,7 @@
    public Result updateWallt() {
        String partyId = SecurityUtils.getCurrentUserId();
        if(!StringUtils.isNotEmpty(partyId)){
            throw new YamiShopBindException("请登录!");
            throw new YamiShopBindException("Please log in!");
        }
        // 获取合约账户(contract)
        Wallet wallet = walletService.saveWalletByPartyId(partyId);
@@ -107,6 +107,7 @@
        Map<String, BigDecimal> assets =  new HashMap<>();
        assets.put("contract",wallet.getMoney().setScale(2,RoundingMode.DOWN));
        assets.put("amountToBeCovered",wallet.getAmountToBeCovered().setScale(2,RoundingMode.DOWN));
        assets.put("capital",capitaltWallet.getMoney().add(walletExtendMoney).setScale(2,RoundingMode.DOWN));
        assets.put("capitalUSDT",capitaltWallet.getMoney());//划转专用
        return Result.succeed(assets);