Authored by mali

登录账户

package com.yoho.ufo.service.impl;
import com.yoho.ufo.constants.PlatformConstant;
import com.yoho.ufo.login.model.UserInfoResponseBO;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
... ... @@ -21,7 +22,7 @@ public class UserHelper {
logger.info("method UserHelper in, userId is {} userName is {}", userId, userName);
if(this.userId == 0) {
HttpServletRequest httpRequest = ((ServletRequestAttributes) RequestContextHolder.getRequestAttributes()).getRequest();
UserInfoResponseBO siteType = (UserInfoResponseBO)httpRequest.getSession().getAttribute("userSession");
UserInfoResponseBO siteType = (UserInfoResponseBO)httpRequest.getSession().getAttribute(PlatformConstant.USER_SESSION);
logger.info("method UserHelper in, userId is {} userName is {}", userId, userName);
... ...