| | |
| | | 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; |
| | |
| | | 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){ |