Commit 0a61b194 by guo_minglei@163.com

目前不解析orgid和岗位id

parent 21cbc9c2
......@@ -27,12 +27,8 @@ public class JwtHelper {
String account = String.valueOf(body.get(BaseContextConstants.JWT_KEY_ACCOUNT));
String name = String.valueOf(body.get(BaseContextConstants.JWT_KEY_NAME));
String strOrgId = String.valueOf(body.get(BaseContextConstants.JWT_KEY_ORG_ID));
String strDepartmentId = String.valueOf(body.get(BaseContextConstants.JWT_KEY_STATION_ID));
Long userId = Long.valueOf(strUserId);
Long orgId = Long.valueOf(strOrgId);
Long departmentId = Long.valueOf(strDepartmentId);
return new JwtUserInfo(userId, account, name, orgId, departmentId);
return new JwtUserInfo(userId, account, name, null, null);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment