|
@@ -46,10 +46,9 @@ public class PageData extends HashMap implements Map {
|
|
|
Subject currentUser = SecurityUtils.getSubject();
|
|
|
Session session = currentUser.getSession();
|
|
|
SysUser user = (SysUser) session.getAttribute(SysConstants.ConstSession.SESSION_CMS_USER); // cms
|
|
|
- if (user != null && !"".equals(user)) {
|
|
|
+ if (user != null) {
|
|
|
returnMap.put("USERID", user.getId());
|
|
|
- returnMap.put("DATA_LEVEL",
|
|
|
- request.getSession().getAttribute(SysConstants.ConstSession.SESSION_DATA_LEVEL));
|
|
|
+ returnMap.put("DATA_LEVEL", session.getAttribute(SysConstants.ConstSession.SESSION_DATA_LEVEL));
|
|
|
returnMap.put("USER_PHONE", user.getPhone());
|
|
|
}
|
|
|
// 将请求IP自动添加到请求参数列表中
|