فهرست منبع

登出异常问题

huangzhiyong 7 سال پیش
والد
کامیت
21cd7b3af7
1فایلهای تغییر یافته به همراه3 افزوده شده و 1 حذف شده
  1. 3 1
      src/main/java/com/yihu/hos/system/controller/SystemController.java

+ 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);