@@ -96,15 +96,16 @@ namespace Learun.Application.Web.Controllers | |||||
var code = Util.CommonHelper.RndNum(9); | var code = Util.CommonHelper.RndNum(9); | ||||
redisCache.Write(code, userinfo.account, TimeSpan.FromMinutes(10)); | redisCache.Write(code, userinfo.account, TimeSpan.FromMinutes(10)); | ||||
var url = perm_application.FInterfaceUrl; | var url = perm_application.FInterfaceUrl; | ||||
string zzjjz = ConfigurationManager.AppSettings["zzjjz"]; | |||||
if (url.Contains("?")) | if (url.Contains("?")) | ||||
{ | { | ||||
url += "&appkey=" + Md5Helper.Encrypt("tlmzysso", 32) + "&name=" + DESEncrypt.Encrypt(userinfo.realName, "tlmzysso") + "&no=" + DESEncrypt.Encrypt(userinfo.enCode, "tlmzysso") + "&type=" + type; | |||||
url += "&appkey=" + Md5Helper.Encrypt(zzjjz, 32) + "&name=" + DESEncrypt.Encrypt(userinfo.realName, zzjjz) + "&no=" + DESEncrypt.Encrypt(userinfo.enCode, zzjjz) + "&type=" + type; | |||||
//url += "&appkey=" + DESEncrypt.Encrypt(code, "bjqjsso"); | //url += "&appkey=" + DESEncrypt.Encrypt(code, "bjqjsso"); | ||||
} | } | ||||
else | 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; | |||||
url += "?appkey=" + Md5Helper.Encrypt(zzjjz, 32) + "&name=" + DESEncrypt.Encrypt(userinfo.realName, zzjjz) + "&no=" + DESEncrypt.Encrypt(userinfo.enCode, zzjjz) + "&type=" + type; | |||||
} | } | ||||
@@ -174,10 +174,12 @@ | |||||
<add key="ForbidLoginNum" value="5"/> | <add key="ForbidLoginNum" value="5"/> | ||||
<!-- 禁止登录时间(分钟) --> | <!-- 禁止登录时间(分钟) --> | ||||
<add key="ForbidLoginMinutes" value="10"/> | <add key="ForbidLoginMinutes" value="10"/> | ||||
<!--统一认证加密--> | |||||
<add key="zzjjz" value="tlmzysso"/> | |||||
<!--下发新闻配置--> | |||||
<add key="SiteId" value="39"/> | |||||
<add key="ChannelId" value="49"/> | |||||
<!--下发新闻配置--> | |||||
<add key="SiteId" value="39"/> | |||||
<add key="ChannelId" value="49"/> | |||||
<add key="ApiKey" value="fafc361a-40c1-4060-8eee-ea796640c39c"/> | <add key="ApiKey" value="fafc361a-40c1-4060-8eee-ea796640c39c"/> | ||||
<add key="Ports" value="192.168.50.127:8007"/> | <add key="Ports" value="192.168.50.127:8007"/> | ||||
@@ -159,15 +159,16 @@ namespace Learun.Application.WebApi.Modules | |||||
var code = Util.CommonHelper.RndNum(9); | var code = Util.CommonHelper.RndNum(9); | ||||
cache.Write(code, userinfo.account, TimeSpan.FromMinutes(10)); | cache.Write(code, userinfo.account, TimeSpan.FromMinutes(10)); | ||||
var url = perm_application.FInterfaceUrl; | var url = perm_application.FInterfaceUrl; | ||||
string zzjjz = ConfigurationManager.AppSettings["zzjjz"]; | |||||
if (url.Contains("?")) | if (url.Contains("?")) | ||||
{ | { | ||||
url += "&appkey=" + Md5Helper.Encrypt("tlmzysso", 32) + "&name=" + DESEncrypt.Encrypt(userinfo.realName, "tlmzysso") + "&no=" + DESEncrypt.Encrypt(userinfo.enCode, "tlmzysso") + "&type=" + type; | |||||
url += "&appkey=" + Md5Helper.Encrypt(zzjjz, 32) + "&name=" + DESEncrypt.Encrypt(userinfo.realName, zzjjz) + "&no=" + DESEncrypt.Encrypt(userinfo.enCode, zzjjz) + "&type=" + type; | |||||
//url += "&appkey=" + DESEncrypt.Encrypt(code, "bjqjsso"); | //url += "&appkey=" + DESEncrypt.Encrypt(code, "bjqjsso"); | ||||
} | } | ||||
else | 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; | |||||
url += "?appkey=" + Md5Helper.Encrypt(zzjjz, 32) + "&name=" + DESEncrypt.Encrypt(userinfo.realName, zzjjz) + "&no=" + DESEncrypt.Encrypt(userinfo.enCode, zzjjz) + "&type=" + type; | |||||
} | } | ||||
return Success(new{ FInterfaceUrl=url }); | return Success(new{ FInterfaceUrl=url }); | ||||
} | } | ||||
@@ -113,5 +113,6 @@ | |||||
<add key="OnlineElectiveLessonApplyMax" value="2" /> | <add key="OnlineElectiveLessonApplyMax" value="2" /> | ||||
<!--系主任角色Id--> | <!--系主任角色Id--> | ||||
<add key="DeptDirectorRoleId" value="9310c5f3-1a0a-4f23-9452-3e5a15b3b722" /> | <add key="DeptDirectorRoleId" value="9310c5f3-1a0a-4f23-9452-3e5a15b3b722" /> | ||||
<!--统一认证加密--> | |||||
<add key="zzjjz" value="tlmzysso"/> | |||||
</appSettings> | </appSettings> |