Browse Source

登出异常问题

huangzhiyong 7 years ago
parent
commit
21cd7b3af7

+ 3 - 1
src/main/java/com/yihu/hos/system/controller/SystemController.java

@ -92,8 +92,10 @@ public class SystemController {
                if (tenantSession !=null){
                    userCode = tenantSession.getUserCode();
                    authenticateService.logout(session);
                    tenant = tenantSession.getTenant();
                }else {
                    tenant =  LocalContext.getContext().getAttachment(ContextAttributes.TENANT_NAME);
                }
                tenant = tenantSession.getTenant();
            }
            session.removeAttribute("userInfo");
            LocalContext.getContext().removeAttachment(ContextAttributes.TENANT_NAME);