Skip to content

Commit

Permalink
for UE
Browse files Browse the repository at this point in the history
  • Loading branch information
leedar360 committed Oct 14, 2015
1 parent 62c4c4d commit b6bde58
Showing 1 changed file with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -75,8 +75,10 @@ public boolean preHandle(HttpServletRequest request,
}
//获取要访问的请求路径,作为微信登录的回调路径
StringBuffer requestUrl = request.getRequestURL();
log.debug("requestUrl is ---> " + requestUrl);
request.getServletContext().setAttribute("firstUrl", requestUrl.toString());
if (!requestUrl.toString().contains("wechatLoginConfirm")){
request.getSession().setAttribute("firstUrl", requestUrl.toString());
log.debug("requestUrl is ---> " + requestUrl);
}

String domain = requestUrl.delete(requestUrl.length() - request.getRequestURI().length(), requestUrl.length()) + request.getServletContext().getContextPath();
log.debug("request.getServletContext().getContextPath() is ---> " + request.getServletContext().getContextPath());
Expand Down

0 comments on commit b6bde58

Please sign in to comment.