提交人:邹江涛

时间:2025-11-24 11:00
提交内容:单点登录切换为用户名登录
This commit is contained in:
Tao 2025-11-24 15:02:42 +08:00
parent fe18fc0500
commit 042d2d862a
2 changed files with 4 additions and 3 deletions

View File

@ -79,8 +79,8 @@ public class AuthService {
logger.info(String.format("getUserInfo→返回结果:%s",jsonObject)); logger.info(String.format("getUserInfo→返回结果:%s",jsonObject));
JSONObject obj = jsonObject.getJSONObject("data"); JSONObject obj = jsonObject.getJSONObject("data");
if (obj!=null){ if (obj!=null){
// return obj.getString("loginName"); return obj.getString("loginName");
return obj.getString("phone"); // return obj.getString("phone");
} }
return null; return null;
} }

View File

@ -176,7 +176,8 @@ public class SSOPluginLogin implements ThirdSSOAuthHandler {
cache.put(userKey, httpServletRequest.getParameter("eossSessionId")); cache.put(userKey, httpServletRequest.getParameter("eossSessionId"));
} }
//当前返回类型手机用户名email工号 //当前返回类型手机用户名email工号
result.setUserType(UserProperType.Mobile); // result.setUserType(UserProperType.Mobile);
result.setUserType(UserProperType.UserName);
result.setUser(user); result.setUser(user);
result.setSucess(true); result.setSucess(true);
logger.info("SSO用户登录成功进入苍穹系统"); logger.info("SSO用户登录成功进入苍穹系统");