BUGFIX:试用用户;

This commit is contained in:
shahaibo
2024-01-29 10:06:48 +08:00
parent 41919c44c9
commit ee2a8ac3ce

View File

@@ -480,7 +480,7 @@ public class AccountServiceImpl extends ServiceImpl<AccountMapper, Account> impl
throw new BusinessException("The username or email has already been registered", ResultEnum.PROMPT.getCode());
}else {
Account account = accountList.get(0);
if (account.getValidEndTime() > System.currentTimeMillis()) {
if (null == account.getValidEndTime() || account.getValidEndTime() > System.currentTimeMillis()) {
throw new BusinessException("The username or email has already been registered", ResultEnum.PROMPT.getCode());
}
}