|
|
@@ -162,7 +162,7 @@ namespace Learun.Application.WebApi.Modules |
|
|
|
{ |
|
|
|
url += "?appkey=" + DESEncrypt.Encrypt(code, "bjqjsso"); |
|
|
|
} |
|
|
|
return Success(new{ FInterfaceUrl=url }); |
|
|
|
return Success(new { FInterfaceUrl = url }); |
|
|
|
} |
|
|
|
else |
|
|
|
return Fail("appid解析失败,请确认。"); |
|
|
@@ -210,6 +210,15 @@ namespace Learun.Application.WebApi.Modules |
|
|
|
functionVisitEntity.PIsLoginSuccess = true; |
|
|
|
functionVisitEntity.PContent = "成功转到统一认证网站:" + perfun.FUrl; |
|
|
|
functionVisitIbll.SaveEntity(null, functionVisitEntity); |
|
|
|
var Stype = LoginUserInfo.Get().Description; |
|
|
|
if (Stype == "学生") |
|
|
|
{ |
|
|
|
Stype = "1"; |
|
|
|
} |
|
|
|
else |
|
|
|
{ |
|
|
|
Stype = "2"; |
|
|
|
} |
|
|
|
return Success(new |
|
|
|
{ |
|
|
|
FInterfaceUrl = perfun.FInterfaceUrl + "?u=" + |
|
|
@@ -220,7 +229,9 @@ namespace Learun.Application.WebApi.Modules |
|
|
|
DESEncrypt.Encrypt( |
|
|
|
DESEncrypt.Encrypt(DateTime.Now.ToString("yyyyMMddHHmmss"), secretkey), |
|
|
|
publickey) + "&ip=" + |
|
|
|
DESEncrypt.Encrypt(DESEncrypt.Encrypt(GetIP(), secretkey), publickey) |
|
|
|
DESEncrypt.Encrypt(DESEncrypt.Encrypt(GetIP(), secretkey), |
|
|
|
publickey) + "&stype=" + Stype |
|
|
|
|
|
|
|
}); |
|
|
|
} |
|
|
|
else |
|
|
@@ -267,12 +278,12 @@ namespace Learun.Application.WebApi.Modules |
|
|
|
public Response GetList20(dynamic _) |
|
|
|
{ |
|
|
|
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); |
|
|
|
} |
|
|
|
|
|
|
@@ -289,7 +300,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).Where(m=>m.FIsH5==true); |
|
|
|
var datafunction = perm_FunctionIBLL.GetListByFTId(typeEntity.FTId, userInfo.userId).Where(m => m.FIsH5 == true); |
|
|
|
foreach (var item in datafunction) |
|
|
|
{ |
|
|
|
if (item.FIsManagePage == true) |
|
|
|