|
|
@@ -23,8 +23,8 @@ public class DbSourceInterceptor extends HandlerInterceptorAdapter {
|
|
|
* 处理前台请求之前执行
|
|
|
*/
|
|
|
@Override
|
|
|
- public boolean preHandle(HttpServletRequest req, HttpServletResponse resp, Object handler) throws Exception {
|
|
|
- Object obj = req.getSession().getAttribute("employee");
|
|
|
+ public boolean preHandle(HttpServletRequest req, HttpServletResponse resp, Object handler) throws Exception {
|
|
|
+ Object obj = req.getSession().getAttribute("employee");
|
|
|
String sessionId = req.getParameter("sessionId");
|
|
|
if (obj == null && sessionId != null){
|
|
|
if (MobileSessionContext.getInstance().getSessionById(sessionId) != null) {
|
|
|
@@ -51,7 +51,8 @@ public class DbSourceInterceptor extends HandlerInterceptorAdapter {
|
|
|
} else{
|
|
|
/*BaseUtil.showError("请先登录ERP再进行相关操作");
|
|
|
return false;*/
|
|
|
- }
|
|
|
+ }
|
|
|
+
|
|
|
return true;
|
|
|
}
|
|
|
|