123
This commit is contained in:
@@ -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){
|
||||
|
||||
Reference in New Issue
Block a user