This commit is contained in:
777
2026-01-14 00:46:33 +08:00
parent a2e9e1e476
commit 9a2332a61b

View File

@@ -51,8 +51,14 @@ public class AccountCashServiceImpl extends ServiceImpl<AccountCashMapper, Accou
private RankAdminManager rankAdminManager;
@Autowired
private AccountBlackService accountBlackService;
@Autowired
private SystemConfigManager systemConfigManager;
@Override
public void withdraw(WithdrawReq res) {
boolean openWithdraw = systemConfigManager.getSystemConfigOfBool(SystemConfigEnum.OPEN_WITHDRAW);
if(!openWithdraw){
throw new ServiceException("提现失败,错误码: 800100");
}
AccountBankcard one = accountBankcardService.getOne(Wrappers.lambdaQuery(AccountBankcard.class)
.eq(AccountBankcard::getUserId, res.getUserId()).last("limit 1"));
if(one == null){