瀏覽代碼

屏蔽鉴权

wuheng 1 年之前
父節點
當前提交
5515fc776d
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      common/src/main/java/com/koobietech/eas/common/utils/JwtManager.java

+ 1 - 1
common/src/main/java/com/koobietech/eas/common/utils/JwtManager.java

@@ -70,7 +70,7 @@ public class JwtManager {
             jwtUserDto.setUsername(verify.getClaim("user").asString());
             jwtUserDto.setUsername(verify.getClaim("user").asString());
             jwtUserDto.setType(UserType.valueOf(verify.getClaim("type").asString()));
             jwtUserDto.setType(UserType.valueOf(verify.getClaim("type").asString()));
         } catch ( JWTVerificationException e){
         } catch ( JWTVerificationException e){
-            throw new EasException("token 不正确!");
+            //throw new EasException("token 不正确!");
         }
         }
         return jwtUserDto;
         return jwtUserDto;
     }
     }