|
|
@@ -48,7 +48,7 @@ public class PermissionFilter extends AccessControlFilter {
|
|
|
@Override
|
|
|
protected boolean onAccessDenied(ServletRequest request, ServletResponse response) throws Exception {
|
|
|
Subject subject = getSubject(request, response);
|
|
|
- if (shiroFilterUtils.isMobileDevice((HttpServletRequest)request)){
|
|
|
+ if (shiroFilterUtils.isMobileDevice((HttpServletRequest)request) || request.getServerName().indexOf("m.") > 0){
|
|
|
LoggerUtils.debug(getClass(), "当前访问为移动设备");
|
|
|
WebUtils.issueRedirect(request, response, mobileWebsite);
|
|
|
}else if (shiroFilterUtils.isAjax((HttpServletRequest) request)) {
|