1
zj
5 days ago b42c0777927e79bc77996b508a534ee4e56fd4c2
trading-order-admin/src/main/java/com/yami/trading/api/controller/ApiBankCardController.java
@@ -254,11 +254,17 @@
            throw new YamiShopBindException("请重新登录");
        }
        User party = userService.getById(partyId);
        if (party != null && party.getAccountType() != null && party.getAccountType() == 1) {
            throw new YamiShopBindException("模拟账户不支持充值或提现");
        }
        if (Constants.SECURITY_ROLE_TEST.equals(party.getRoleName())) {
            throw new YamiShopBindException("测试账号无提现权限");
        }
        if (!party.isEnabled()) {
            throw new YamiShopBindException("用户已锁定");
        }
        if ("recharge".equals(direction)) {
            realNameAuthRecordService.requireApproved(party, false);
        }
        // 手续费
        double fee = 0;
@@ -290,8 +296,8 @@
            if (party_kyc==null){
                party_kyc=new RealNameAuthRecord();
            }
            if (!(party_kyc.getStatus() == 2) && "true".equals(this.sysparaService.find("withdraw_by_kyc").getSvalue())) {
                throw new YamiShopBindException("未实名认证,无提现权限");
            if ("true".equals(this.sysparaService.find("withdraw_by_kyc").getSvalue())) {
                realNameAuthRecordService.requireApproved(party, false);
            }
            HighLevelAuthRecord party_kycHighLevel = highLevelAuthRecordService.findByUserId(partyId);
            if (party_kycHighLevel==null){