This commit is contained in:
zjf committed 2025-07-29 18:30:44 +08:00
1 parent 82a91a80b5
commit fb280e4428
1 file changed
+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("请求传的验证码");