修改info未赋值问题
This commit is contained in:
@@ -232,7 +232,7 @@ public class SsoService {
|
||||
isCompanyUser = "01".equals(isCompanyUser) ? "1" : "0";
|
||||
//获取身份证号
|
||||
String personCardNo = null;
|
||||
JSONObject info = null;
|
||||
JSONObject info = userJson.getJSONObject("info");;
|
||||
//判断是否是企业
|
||||
boolean hasRecruitRole = Optional.ofNullable(userJson.getJSONArray("roles"))
|
||||
.filter(arr -> !arr.isEmpty())
|
||||
@@ -243,6 +243,7 @@ public class SsoService {
|
||||
Long roleCode = role.getLong("roleCode");
|
||||
return roleCode != null && roleCode == 1102L;
|
||||
});
|
||||
|
||||
//保存企业信息
|
||||
if("0".equals(isCompanyUser) && hasRecruitRole){
|
||||
personCardNo=info.getString("entCreditCode");
|
||||
|
||||
Reference in New Issue
Block a user