diff --git a/Learun.Framework.Ultimate V7/Doc文档/数字化智慧校园统一身份认证oauth2.0对接说明V1.0.docx b/Learun.Framework.Ultimate V7/Doc文档/数字化智慧校园统一身份认证oauth2.0对接说明V1.0.docx index 7d2e56bc0..f88f2eeae 100644 --- a/Learun.Framework.Ultimate V7/Doc文档/数字化智慧校园统一身份认证oauth2.0对接说明V1.0.docx +++ b/Learun.Framework.Ultimate V7/Doc文档/数字化智慧校园统一身份认证oauth2.0对接说明V1.0.docx @@ -77,3 +77,34 @@ appkey 第三步:获取useraccount并实现系统登录逻辑 使用获取到的useraccount数据进行接入方系统认证操作。 + + +H5版本对接方式与上述PC版本一致,如下图: + + 点击【统一应用2.0】进入应用列表,再点击【相对应的对接系统】系统会根据各系统在【应用配置】功能中填写的【登录接口地址】重定向到【登录接口地址】并携带参数appkey,对接方需要获取appkey,并发送请求到授权接口换取当前登录用户信息。 + +授权接口采用标准Http Get请求方式,appkey有效期为10分钟 +请求地址:http:// 数字化智慧校园API部署地址/quanjiang/sso/authorize?appid=APPID&secret=SECRET&appkey=APPKEY +参数说明 + 参数 + 是否必须 + 说明 +appid +是 +应用唯一标识 +secret +是 +密钥 +appkey +是 +统一认证平台重定向携带的appkey参数值 + +返回成功结果示例: +{ + "code": 200, + "info": "响应成功", + "data": { + "useraccount": "user01" + } +} + diff --git a/Learun.Framework.Ultimate V7/Doc文档/数字化智慧校园统一身份认证对接说明V1.0.docx b/Learun.Framework.Ultimate V7/Doc文档/数字化智慧校园统一身份认证对接说明V1.0.docx index ded672d18..26bfa91d1 100644 --- a/Learun.Framework.Ultimate V7/Doc文档/数字化智慧校园统一身份认证对接说明V1.0.docx +++ b/Learun.Framework.Ultimate V7/Doc文档/数字化智慧校园统一身份认证对接说明V1.0.docx @@ -84,9 +84,9 @@ ip 第三方系统使用解密的明文结合系统登录逻辑进行登录验证并跳转到系统业务界面,本次对接结束。(上表参数t根据各自业务需要可使用可不使用) +H5版本对接方式与上述PC版本一致,如下图: - - + 点击【统一应用】进入应用列表,再点击【相对应的对接系统】系统会跳转到第一步配置的【登录接口地址】并发送标准Http Get请求,随后实现上述【实现解密】部分,第三方系统使用解密的明文结合系统登录逻辑进行登录验证并跳转到系统业务界面,本次对接结束。(上表参数t根据各自业务需要可使用可不使用) diff --git a/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/Permission/Views/Perm_Function/Form.cshtml b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/Permission/Views/Perm_Function/Form.cshtml index e1f4ef021..2bc115659 100644 --- a/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/Permission/Views/Perm_Function/Form.cshtml +++ b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/Permission/Views/Perm_Function/Form.cshtml @@ -35,10 +35,14 @@
是否启用*
-
+
是否管理页*
+
+
是否手机端*
+
+
图片*
diff --git a/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/Permission/Views/Perm_Function/Form.js b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/Permission/Views/Perm_Function/Form.js index ef0fc852b..2db2690e2 100644 --- a/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/Permission/Views/Perm_Function/Form.js +++ b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/Permission/Views/Perm_Function/Form.js @@ -30,6 +30,7 @@ var bootstrap = function ($, learun) { } $('#FEnabled').lrDataItemSelect({ code: 'YesOrNoBit' }); $('#FIsManagePage').lrDataItemSelect({ code: 'YesOrNoBit' }); + $('#FIsH5').lrDataItemSelect({ code: 'YesOrNoBit' }); $('#FImage').lrUploader(); }, initData: function () { diff --git a/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/Permission/Views/Perm_Function/TeacherIndex.js b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/Permission/Views/Perm_Function/TeacherIndex.js index 1cbe5f30f..272709dac 100644 --- a/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/Permission/Views/Perm_Function/TeacherIndex.js +++ b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/Permission/Views/Perm_Function/TeacherIndex.js @@ -97,6 +97,7 @@ var bootstrap = function ($, learun) { param = param || {}; param.FTId = FTId; param.UserId = UserId; + param.FIsH5 = 0; $('#gridtable').jfGridSet('reload', { queryJson: JSON.stringify(param) }); } }; diff --git a/Learun.Framework.Ultimate V7/Learun.Application.Web/Controllers/HomeController.cs b/Learun.Framework.Ultimate V7/Learun.Application.Web/Controllers/HomeController.cs index a25c809bb..90e33cd1b 100644 --- a/Learun.Framework.Ultimate V7/Learun.Application.Web/Controllers/HomeController.cs +++ b/Learun.Framework.Ultimate V7/Learun.Application.Web/Controllers/HomeController.cs @@ -69,7 +69,7 @@ namespace Learun.Application.Web.Controllers public ActionResult SSOApplication() { var userinfo = LoginUserInfo.Get(); - ViewBag.FunctionList = perm_FunctionIBLL.GetListByUserId(userinfo.userId); + ViewBag.FunctionList = perm_FunctionIBLL.GetListByUserId(userinfo.userId).Where(m=>m.FIsH5==false); return View(); } /// diff --git a/Learun.Framework.Ultimate V7/Learun.Application.WebApi/Modules/SSOApi.cs b/Learun.Framework.Ultimate V7/Learun.Application.WebApi/Modules/SSOApi.cs index 0ea83d074..b258582ec 100644 --- a/Learun.Framework.Ultimate V7/Learun.Application.WebApi/Modules/SSOApi.cs +++ b/Learun.Framework.Ultimate V7/Learun.Application.WebApi/Modules/SSOApi.cs @@ -267,7 +267,7 @@ namespace Learun.Application.WebApi.Modules public Response GetList20(dynamic _) { var userinfo = userInfo; - var functionlist = perm_FunctionIBLL.GetListByUserId(userinfo.userId).Select(m=> + var functionlist = perm_FunctionIBLL.GetListByUserId(userinfo.userId).Where(m=>m.FIsH5==true).Select(m=> new { m.FName, @@ -289,7 +289,7 @@ namespace Learun.Application.WebApi.Modules var datatype = perm_FunctionTypeIBLL.GetListByUserId(userInfo.userId); foreach (var typeEntity in datatype) { - var datafunction = perm_FunctionIBLL.GetListByFTId(typeEntity.FTId, userInfo.userId); + var datafunction = perm_FunctionIBLL.GetListByFTId(typeEntity.FTId, userInfo.userId).Where(m=>m.FIsH5==true); foreach (var item in datafunction) { if (item.FIsManagePage == true) diff --git a/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/Permission/Perm_Function/Perm_FunctionEntity.cs b/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/Permission/Perm_Function/Perm_FunctionEntity.cs index e65f43c53..cb7f3d371 100644 --- a/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/Permission/Perm_Function/Perm_FunctionEntity.cs +++ b/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/Permission/Perm_Function/Perm_FunctionEntity.cs @@ -62,6 +62,11 @@ namespace Learun.Application.TwoDevelopment.Permission [Column("FISMANAGEPAGE")] public bool? FIsManagePage { get; set; } /// + /// 是否手机端 + /// + [Column("FISH5")] + public bool? FIsH5 { get; set; } + /// /// FEnabled /// [Column("FENABLED")] diff --git a/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/Permission/Perm_Function/Perm_FunctionService.cs b/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/Permission/Perm_Function/Perm_FunctionService.cs index 2cb6ae7dc..1055c0c6a 100644 --- a/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/Permission/Perm_Function/Perm_FunctionService.cs +++ b/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/Permission/Perm_Function/Perm_FunctionService.cs @@ -67,6 +67,11 @@ namespace Learun.Application.TwoDevelopment.Permission dp.Add("FTId", "" + queryParam["FTId"].ToString() + "", DbType.String); strSql.Append(" AND t.FTId=@FTId "); } + if (!queryParam["FIsH5"].IsEmpty()) + { + dp.Add("FIsH5", "" + queryParam["FIsH5"].ToString() + "", DbType.Int32); + strSql.Append(" AND t.FIsH5=@FIsH5 "); + } return this.BaseRepository().FindList(strSql.ToString(), dp, pagination); } catch (Exception ex)