|
|
@@ -158,19 +158,15 @@ namespace Learun.Application.WebApi.Modules |
|
|
|
//写入当前请求所登录的用户 |
|
|
|
var code = Util.CommonHelper.RndNum(9); |
|
|
|
cache.Write(code, userinfo.account, TimeSpan.FromMinutes(10)); |
|
|
|
string tyrz = ConfigurationManager.AppSettings["tyrz"]; |
|
|
|
if (!perm_application.FSecret.IsEmpty()) |
|
|
|
{ |
|
|
|
tyrz = perm_application.FSecret; |
|
|
|
} |
|
|
|
|
|
|
|
var url = perm_application.FInterfaceUrl; |
|
|
|
if (url.Contains("?")) |
|
|
|
{ |
|
|
|
url += "&appkey=" + Md5Helper.Encrypt("tyrz", 32) + "&name=" + DESEncrypt.Encrypt(userinfo.realName, "tyrz") + "&type=" + type + "&a=" + DESEncrypt.Encrypt(userinfo.enCode, "tyrz"); |
|
|
|
url += "&appkey=" + Md5Helper.Encrypt(perm_application.FSecret, 32) + "&name=" + DESEncrypt.Encrypt(userinfo.realName, perm_application.FSecret) + "&type=" + type + "&a=" + DESEncrypt.Encrypt(userinfo.enCode, perm_application.FSecret); |
|
|
|
} |
|
|
|
else |
|
|
|
{ |
|
|
|
url += "?appkey=" + Md5Helper.Encrypt("tyrz", 32) + "&name=" + DESEncrypt.Encrypt(userinfo.realName, "tyrz") + "&type=" + type + "&a=" + DESEncrypt.Encrypt(userinfo.enCode, "tyrz"); |
|
|
|
url += "?appkey=" + Md5Helper.Encrypt(perm_application.FSecret, 32) + "&name=" + DESEncrypt.Encrypt(userinfo.realName, perm_application.FSecret) + "&type=" + type + "&a=" + DESEncrypt.Encrypt(userinfo.enCode, perm_application.FSecret); |
|
|
|
} |
|
|
|
return Success(new { FInterfaceUrl = url }); |
|
|
|
} |
|
|
|