重定向

This commit is contained in:
bwcx_jzy 2019-11-18 15:18:39 +08:00
parent 7efe215121
commit 1eac18956b

View File

@ -83,9 +83,9 @@ public class LoginInterceptor extends BaseJpomInterceptor {
/**
* 尝试获取 header 中的信息
*
* @param request req
* @param session ses
* @return true 获取成功
* @am request req
*/
private boolean tryGetHeaderUser(HttpServletRequest request, HttpSession session) {
String header = request.getHeader(ServerOpenApi.USER_TOKEN_HEAD);
@ -119,7 +119,7 @@ public class LoginInterceptor extends BaseJpomInterceptor {
uri += "?" + queryString;
}
// 补全
String newUri = UrlRedirectUtil.getHeaderProxyPath(request, BaseJpomInterceptor.PROXY_PATH) + uri;
String newUri = BaseJpomInterceptor.getHeaderProxyPath(request) + uri;
newUri = UrlRedirectUtil.getRedirect(request, newUri);
url += "&url=" + URLUtil.encodeAll(newUri);
}