feat: 文件预览(接口:/sys/common/view/)需要把token的参数名换成at
This commit is contained in:
@@ -301,6 +301,8 @@ public class CommonConstant {
|
||||
|
||||
|
||||
public static final String X_ACCESS_TOKEN = "X-Access-Token";
|
||||
// common/view 预览接口用的token
|
||||
public static final String AT = "at";
|
||||
public static final String X_SIGN = "X-Sign";
|
||||
public static final String X_TIMESTAMP = "X-TIMESTAMP";
|
||||
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
package com.jero.config.shiro.filters;
|
||||
|
||||
import cn.hutool.core.util.StrUtil;
|
||||
import com.jero.common.util.oConvertUtils;
|
||||
import lombok.extern.slf4j.Slf4j;
|
||||
import org.apache.shiro.authc.AuthenticationException;
|
||||
@@ -63,6 +64,9 @@ public class JwtFilter extends BasicHttpAuthenticationFilter {
|
||||
if (oConvertUtils.isEmpty(token)) {
|
||||
token = httpServletRequest.getParameter("token");
|
||||
}
|
||||
if (oConvertUtils.isEmpty(token)) {
|
||||
token = httpServletRequest.getParameter(CommonConstant.AT);
|
||||
}
|
||||
// update-end--Author:lvdandan Date:20210105 for:JT-355 OA聊天添加token验证,获取token参数
|
||||
|
||||
JwtToken jwtToken = new JwtToken(token);
|
||||
|
||||
Reference in New Issue
Block a user