日期:2014-05-20 浏览次数:20704 次
UserToken result = new UserToken();
try
{
User user = CommonDataUtil.getUser(userAccount);
if((null == user) && !Constants.USERACCOUNT_GUEST.equals(userAccount))
{
result.setCode(Constants.RETURN_USERNAME_NOT_EXIST);
}
else
{
HttpSession session = messageContext.getHttpServletRequest().getSession();
String userToken = UserOperateToken.getInstance().generateToken(session.getId());