短信验证码验证暂时关闭
This commit is contained in:
parent
366d1b8846
commit
c1ca4764f0
@ -132,14 +132,14 @@ public class SmsUtilAliImplService implements SmsUtil, AliSmsUtil {
|
|||||||
|
|
||||||
@Override
|
@Override
|
||||||
public boolean verifyCode(String mobile, VerificationEnums verificationEnums, String uuid, String code) {
|
public boolean verifyCode(String mobile, VerificationEnums verificationEnums, String uuid, String code) {
|
||||||
Object result = cache.get(cacheKey(verificationEnums, mobile, uuid));
|
// Object result = cache.get(cacheKey(verificationEnums, mobile, uuid));
|
||||||
if (code.equals(result)) {
|
// if (code.equals(result)) {
|
||||||
//校验之后,删除
|
//校验之后,删除
|
||||||
cache.remove(cacheKey(verificationEnums, mobile, uuid));
|
cache.remove(cacheKey(verificationEnums, mobile, uuid));
|
||||||
return true;
|
return true;
|
||||||
} else {
|
// } else {
|
||||||
return false;
|
// return false;
|
||||||
}
|
// }
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user