Browse Source

更新物流公司登录问题

cangku
Houpn 3 years ago
parent
commit
97a12dcce3
  1. 1
      hiver-admin/src/main/resources/application.yml
  2. 2
      hiver-core/src/main/java/cc/hiver/core/config/security/jwt/TokenAuthenticationFilter.java

1
hiver-admin/src/main/resources/application.yml

@ -287,6 +287,7 @@ ignored:
- /hiver/license/verifyLicense - /hiver/license/verifyLicense
# 发送短信验证码不能拦截 # 发送短信验证码不能拦截
- /hiver/auth/worker/app/sendLoginSms - /hiver/auth/worker/app/sendLoginSms
- /hiver/app/logitics/login
# # 临时增加 # # 临时增加
# - /hiver/app/** # - /hiver/app/**

2
hiver-core/src/main/java/cc/hiver/core/config/security/jwt/TokenAuthenticationFilter.java

@ -80,7 +80,7 @@ public class TokenAuthenticationFilter extends BasicAuthenticationFilter {
appYSHeader = request.getParameter(SecurityConstant.APP_YS_HEADER); appYSHeader = request.getParameter(SecurityConstant.APP_YS_HEADER);
} }
String appWLHeader = request.getHeader(SecurityConstant.APP_WL_HEADER); String appWLHeader = request.getHeader(SecurityConstant.APP_WL_HEADER);
if (StrUtil.isBlank(appYSHeader)) { if (StrUtil.isBlank(appWLHeader)) {
appWLHeader = request.getParameter(SecurityConstant.APP_WL_HEADER); appWLHeader = request.getParameter(SecurityConstant.APP_WL_HEADER);
} }
Boolean notValid = (StrUtil.isBlank(header) || (!tokenProperties.getRedis() && !header.startsWith(SecurityConstant.TOKEN_SPLIT))) Boolean notValid = (StrUtil.isBlank(header) || (!tokenProperties.getRedis() && !header.startsWith(SecurityConstant.TOKEN_SPLIT)))

Loading…
Cancel
Save