访客
This commit is contained in:
1 parent
82a91a80b5
commit
fb280e4428
1 file changed
+3
+3
@@ -121,9 +121,12 @@ public class AppVisitorUserController {
|
||||
private boolean verifySmsCode(String phone, String smsCode) {
|
||||
String key = CacheConstants.SMS_VISITOR_CODE_KEY + phone;
|
||||
String s = stringRedisTemplate.opsForValue().get(key);
|
||||
System.out.println( s);
|
||||
System.out.println("------");
|
||||
if (StringUtils.isBlank(s)){
|
||||
return false;
|
||||
}
|
||||
System.out.println("++++");
|
||||
String result = s.replace("\"", "");
|
||||
boolean equals = result.equals(smsCode);
|
||||
System.out.println("请求传的验证码");
|
||||
|
||||
Reference in new issue
Block a user