CeDo
2021-05-12 1b0e88e27fde9156e648eed464505f8052af63ed
bugfixed:token检查
1个文件已修改
2 ■■■■■ 已修改文件
springcloud_k8s_panzhihuazhihuishequ/zuul/src/main/java/com/panzhihua/zuul/filters/AppletAuthenticationFilter.java 2 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
springcloud_k8s_panzhihuazhihuishequ/zuul/src/main/java/com/panzhihua/zuul/filters/AppletAuthenticationFilter.java
@@ -65,6 +65,7 @@
            // token解析
            Claims claims = JWTTokenUtil.getClaimsFromToken(token);
            if(claims!=null) {//检查token有效
            String username = claims.getSubject();
            int type = (Integer) claims.get("type");
            if (1 == type) {//小程序用户统一角色
@@ -123,6 +124,7 @@
                }
            }
        }
        }
        filterChain.doFilter(servletRequest, servletResponse);
    }