fix: 修复了不会删除已验证完成的验证码的bug
This commit is contained in:
parent
113697a0d4
commit
eb4218d0c2
@ -60,10 +60,10 @@ public class VerifyCodeService {
|
||||
return true;
|
||||
}
|
||||
VerifyVo byKey = verifyDao.getByKey(code);
|
||||
verifyDao.deleteById(code);
|
||||
if (byKey == null){
|
||||
return true;
|
||||
}
|
||||
verifyDao.delete(byKey);
|
||||
return !byKey.answer().equalsIgnoreCase(ans);
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user