diff --git a/oneLineTxt/v1/onelinetextplublic/api-passinger/src/main/java/mashibing/online/text/intercept/JwtIntercept.java b/oneLineTxt/v1/onelinetextplublic/api-passinger/src/main/java/mashibing/online/text/intercept/JwtIntercept.java index bf457ff..6d85e9d 100644 --- a/oneLineTxt/v1/onelinetextplublic/api-passinger/src/main/java/mashibing/online/text/intercept/JwtIntercept.java +++ b/oneLineTxt/v1/onelinetextplublic/api-passinger/src/main/java/mashibing/online/text/intercept/JwtIntercept.java @@ -36,8 +36,9 @@ public class JwtIntercept implements HandlerInterceptor { String idendity=tokenResult.getIdendity(); //根据手机号 和身份类型 查询 String s = stringRedisTemplate.opsForValue().get(PassengerConsonant.phoneNumberTokenPreKey + phone + idendity); - if(StringUtils.isNotBlank(s)){ - //token 有效 + if(StringUtils.isBlank(s)){ + //token 无效 + result =false; }