短信验证码验证暂时关闭

This commit is contained in:
Chopper 2022-01-10 17:15:53 +08:00
parent 366d1b8846
commit c1ca4764f0

View File

@ -132,14 +132,14 @@ public class SmsUtilAliImplService implements SmsUtil, AliSmsUtil {
@Override
public boolean verifyCode(String mobile, VerificationEnums verificationEnums, String uuid, String code) {
Object result = cache.get(cacheKey(verificationEnums, mobile, uuid));
if (code.equals(result)) {
// Object result = cache.get(cacheKey(verificationEnums, mobile, uuid));
// if (code.equals(result)) {
//校验之后删除
cache.remove(cacheKey(verificationEnums, mobile, uuid));
return true;
} else {
return false;
}
// } else {
// return false;
// }
}