|
|
@@ -147,6 +147,11 @@ namespace Learun.Application.WebApi.Modules |
|
|
|
var ssoparam = this.GetReqData<SSOParam>(); |
|
|
|
if (userinfo != null) |
|
|
|
{ |
|
|
|
var type = 0;//1学生 0教师 |
|
|
|
if (userinfo.Description == "学生") |
|
|
|
{ |
|
|
|
type = 1; |
|
|
|
} |
|
|
|
var perm_application = perm_FunctionIBLL.GetPerm_FunctionEntity(ssoparam.appid); |
|
|
|
if (perm_application != null) |
|
|
|
{ |
|
|
@@ -156,11 +161,13 @@ namespace Learun.Application.WebApi.Modules |
|
|
|
var url = perm_application.FInterfaceUrl; |
|
|
|
if (url.Contains("?")) |
|
|
|
{ |
|
|
|
url += "&appkey=" + DESEncrypt.Encrypt(code, "bjqjsso"); |
|
|
|
url += "&appkey=" + Md5Helper.Encrypt("tlmzysso", 32) + "&name=" + DESEncrypt.Encrypt(userinfo.realName, "tlmzysso") + "&no=" + DESEncrypt.Encrypt(userinfo.enCode, "tlmzysso") + "&type=" + type; |
|
|
|
//url += "&appkey=" + DESEncrypt.Encrypt(code, "bjqjsso"); |
|
|
|
} |
|
|
|
else |
|
|
|
{ |
|
|
|
url += "?appkey=" + DESEncrypt.Encrypt(code, "bjqjsso"); |
|
|
|
//url += "&appkey=" + DESEncrypt.Encrypt(code, "bjqjsso"); |
|
|
|
url += "&appkey=" + Md5Helper.Encrypt("tlmzysso", 32) + "&name=" + DESEncrypt.Encrypt(userinfo.realName, "tlmzysso") + "&no=" + DESEncrypt.Encrypt(userinfo.enCode, "tlmzysso") + "&type=" + type; |
|
|
|
} |
|
|
|
return Success(new{ FInterfaceUrl=url }); |
|
|
|
} |
|
|
|