update
This commit is contained in:
@@ -316,12 +316,16 @@ public class SsoService {
|
||||
//取角色判断是网格员2,还是内部工作者3
|
||||
String isCompanyUser = null;
|
||||
if(userJson.containsKey("roles")) {
|
||||
JSONObject role = userJson.getJSONArray("roles").getJSONObject(0);
|
||||
if (role != null && role.containsKey("roleId")) {
|
||||
/*1101(求职者)、1102(招聘者)、1103(网格员)、1104(内部工作者)*/
|
||||
Long roleId = role.getLong("roleId");
|
||||
if (roleId != null && roleId.equals(1103L)) {
|
||||
isCompanyUser = "2";//2网格员
|
||||
JSONArray role = userJson.getJSONArray("roles");
|
||||
if (role != null && role.size() != 0) {
|
||||
for (int i=0;i<role.size();i++) {
|
||||
JSONObject js = role.getJSONObject(i);
|
||||
/*1101(求职者)、1102(招聘者)、1103(网格员)、1104(内部工作者)*/
|
||||
Long roleId = js.getLong("roleId");
|
||||
if (roleId != null && roleId.equals(1103L)) {
|
||||
isCompanyUser = "2";//2网格员
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -509,7 +513,7 @@ public class SsoService {
|
||||
|
||||
//获取身份证
|
||||
String personCardNo="";
|
||||
//0.企业 1.求职者 2.风格员
|
||||
//0.企业 1.求职者 2.网格员
|
||||
if("0".equals(isCompanyUser)){
|
||||
personCardNo = info.getString("entCreditCode");
|
||||
String phone = info.getString("entAdminPhone");
|
||||
|
||||
Reference in New Issue
Block a user