|
@@ -147,6 +147,11 @@ namespace Learun.Application.WebApi.Modules |
|
|
var ssoparam = this.GetReqData<SSOParam>(); |
|
|
var ssoparam = this.GetReqData<SSOParam>(); |
|
|
if (userinfo != null) |
|
|
if (userinfo != null) |
|
|
{ |
|
|
{ |
|
|
|
|
|
var type = 0;//1学生 0教师 |
|
|
|
|
|
if (userinfo.Description == "学生") |
|
|
|
|
|
{ |
|
|
|
|
|
type = 1; |
|
|
|
|
|
} |
|
|
var perm_application = perm_FunctionIBLL.GetPerm_FunctionEntity(ssoparam.appid); |
|
|
var perm_application = perm_FunctionIBLL.GetPerm_FunctionEntity(ssoparam.appid); |
|
|
if (perm_application != null) |
|
|
if (perm_application != null) |
|
|
{ |
|
|
{ |
|
@@ -161,13 +166,13 @@ namespace Learun.Application.WebApi.Modules |
|
|
var url = perm_application.FInterfaceUrl; |
|
|
var url = perm_application.FInterfaceUrl; |
|
|
if (url.Contains("?")) |
|
|
if (url.Contains("?")) |
|
|
{ |
|
|
{ |
|
|
url += "&appkey=" + Md5Helper.Encrypt("tyrz", 32) + "&name=" + DESEncrypt.Encrypt(userinfo.realName, "tyrz") + "&no=" + DESEncrypt.Encrypt(userinfo.enCode, "tyrz"); |
|
|
|
|
|
|
|
|
url += "&appkey=" + Md5Helper.Encrypt("tyrz", 32) + "&name=" + DESEncrypt.Encrypt(userinfo.realName, "tyrz") + "&type=" + type + "&a=" + DESEncrypt.Encrypt(userinfo.enCode, "tyrz"); |
|
|
} |
|
|
} |
|
|
else |
|
|
else |
|
|
{ |
|
|
{ |
|
|
url += "?appkey=" + Md5Helper.Encrypt("tyrz", 32) + "&name=" + DESEncrypt.Encrypt(userinfo.realName, "tyrz") + "&no=" + DESEncrypt.Encrypt(userinfo.enCode, "tyrz"); |
|
|
|
|
|
|
|
|
url += "?appkey=" + Md5Helper.Encrypt("tyrz", 32) + "&name=" + DESEncrypt.Encrypt(userinfo.realName, "tyrz") + "&type=" + type + "&a=" + DESEncrypt.Encrypt(userinfo.enCode, "tyrz"); |
|
|
} |
|
|
} |
|
|
return Success(new{ FInterfaceUrl=url }); |
|
|
|
|
|
|
|
|
return Success(new { FInterfaceUrl = url }); |
|
|
} |
|
|
} |
|
|
else |
|
|
else |
|
|
return Fail("appid解析失败,请确认。"); |
|
|
return Fail("appid解析失败,请确认。"); |
|
@@ -272,12 +277,12 @@ namespace Learun.Application.WebApi.Modules |
|
|
public Response GetList20(dynamic _) |
|
|
public Response GetList20(dynamic _) |
|
|
{ |
|
|
{ |
|
|
var userinfo = userInfo; |
|
|
var userinfo = userInfo; |
|
|
var functionlist = perm_FunctionIBLL.GetListByUserId(userinfo.userId).Where(m=>m.FIsH5==true).Select(m=> |
|
|
|
|
|
new |
|
|
|
|
|
{ |
|
|
|
|
|
m.FName, |
|
|
|
|
|
m.FId, |
|
|
|
|
|
}); |
|
|
|
|
|
|
|
|
var functionlist = perm_FunctionIBLL.GetListByUserId(userinfo.userId).Where(m => m.FIsH5 == true).Select(m => |
|
|
|
|
|
new |
|
|
|
|
|
{ |
|
|
|
|
|
m.FName, |
|
|
|
|
|
m.FId, |
|
|
|
|
|
}); |
|
|
return Success(functionlist); |
|
|
return Success(functionlist); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
@@ -294,7 +299,7 @@ namespace Learun.Application.WebApi.Modules |
|
|
var datatype = perm_FunctionTypeIBLL.GetListByUserId(userInfo.userId); |
|
|
var datatype = perm_FunctionTypeIBLL.GetListByUserId(userInfo.userId); |
|
|
foreach (var typeEntity in datatype) |
|
|
foreach (var typeEntity in datatype) |
|
|
{ |
|
|
{ |
|
|
var datafunction = perm_FunctionIBLL.GetListByFTId(typeEntity.FTId, userInfo.userId).Where(m=>m.FIsH5==true); |
|
|
|
|
|
|
|
|
var datafunction = perm_FunctionIBLL.GetListByFTId(typeEntity.FTId, userInfo.userId).Where(m => m.FIsH5 == true); |
|
|
foreach (var item in datafunction) |
|
|
foreach (var item in datafunction) |
|
|
{ |
|
|
{ |
|
|
if (item.FIsManagePage == true) |
|
|
if (item.FIsManagePage == true) |
|
|