From a9349b7a9ed29f061d0d781e7274a8fc6f59af91 Mon Sep 17 00:00:00 2001 From: msb_89821 Date: Tue, 18 Oct 2022 23:05:47 +0800 Subject: [PATCH] =?UTF-8?q?add:=20=E5=AE=9E=E7=8E=B0=E5=8A=9F=E8=83=BD1?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../java/mashibing/online/text/intercept/JwtIntercept.java | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 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; }