Browse Source

第三方登录接口增加usertype返回值,用来区分教师、学生登录

新疆影视学院高职
liangkun 2 years ago
parent
commit
10f5e16b79
2 changed files with 3 additions and 3 deletions
  1. +1
    -1
      Learun.Framework.Ultimate V7/Doc文档/数字化智慧校园统一身份认证补充接口说明V1.0(塔里木).docx
  2. +2
    -2
      Learun.Framework.Ultimate V7/Learun.Application.Web/Controllers/LoginController.cs

+ 1
- 1
Learun.Framework.Ultimate V7/Doc文档/数字化智慧校园统一身份认证补充接口说明V1.0(塔里木).docx View File

@@ -44,7 +44,7 @@ code
info info
状态消息 返回login success表示登录成功、其他失败 状态消息 返回login success表示登录成功、其他失败
data data
保留 暂时无用
userType 返回值:教师、学生


登录成功后,认证服务器将在用户浏览器cookies中写入数字化智慧校园系统数据,第三方系统可直接跳转到http://10.30.0.10:8000/Home/Index 进入数字化智慧校园系统。 登录成功后,认证服务器将在用户浏览器cookies中写入数字化智慧校园系统数据,第三方系统可直接跳转到http://10.30.0.10:8000/Home/Index 进入数字化智慧校园系统。




+ 2
- 2
Learun.Framework.Ultimate V7/Learun.Application.Web/Controllers/LoginController.cs View File

@@ -802,11 +802,11 @@ namespace Learun.Application.Web.Controllers
else else
{ {
OperatorHelper.Instance.AddLoginUser(userEntity.F_Account, "Learun_ADMS_6.1_PC", null);//写入缓存信息 OperatorHelper.Instance.AddLoginUser(userEntity.F_Account, "Learun_ADMS_6.1_PC", null);//写入缓存信息
//写入日志
//写入日志
logEntity.F_ExecuteResult = 1; logEntity.F_ExecuteResult = 1;
logEntity.F_ExecuteResultJson = "无ui接口登录成功"; logEntity.F_ExecuteResultJson = "无ui接口登录成功";
logEntity.WriteLog(); logEntity.WriteLog();
return Success("login success");
return Success("login success",new{userType=userEntity?.F_Description});
} }
} }
else else


Loading…
Cancel
Save