Ver a proveniência

123服务器跳过授权验证,修改获取IP

西昌缴费二期
zhangli há 2 anos
ascendente
cometimento
a4770aa153
4 ficheiros alterados com 6 adições e 3 eliminações
  1. +1
    -1
      Learun.Framework.Ultimate V7/Learun.Application.Web/Controllers/HomeController.cs
  2. +1
    -1
      Learun.Framework.Ultimate V7/Learun.Application.Web/Controllers/LoginController.cs
  3. +3
    -0
      Learun.Framework.Ultimate V7/Learun.Application.Web/Learun.Application.Web.csproj
  4. +1
    -1
      Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Util/Learun.Util/Web/Net.cs

+ 1
- 1
Learun.Framework.Ultimate V7/Learun.Application.Web/Controllers/HomeController.cs Ver ficheiro

@@ -425,7 +425,7 @@ namespace Learun.Application.Web.Controllers
public ActionResult Index()
{
//判断当前ip是否是123服务器,如果是123服务器,跳过授权验证
if (Net.Ip != "183.185.97.88" && Net.Ip != "123.57.209.16")
if (Net.GetLanIp() != "172.17.3.181")
{
//授权验证
var lc = LicenseChecker.CheckLicense();


+ 1
- 1
Learun.Framework.Ultimate V7/Learun.Application.Web/Controllers/LoginController.cs Ver ficheiro

@@ -178,7 +178,7 @@ namespace Learun.Application.Web.Controllers
public ActionResult Index()
{
//判断当前ip是否是123服务器,如果是123服务器,跳过授权验证
if (Net.Ip != "183.185.97.88" && Net.Ip != "123.57.209.16")
if (Net.GetLanIp() != "172.17.3.181")
{
//授权验证
var lc = LicenseChecker.CheckLicense();


+ 3
- 0
Learun.Framework.Ultimate V7/Learun.Application.Web/Learun.Application.Web.csproj Ver ficheiro

@@ -7687,6 +7687,9 @@
<None Include="Properties\PublishProfiles\FolderProfile3.pubxml" />
<None Include="Properties\PublishProfiles\FolderProfile4.pubxml" />
<None Include="Properties\PublishProfiles\FolderProfile5.pubxml" />
<None Include="Properties\PublishProfiles\FolderProfile6.pubxml" />
<None Include="Properties\PublishProfiles\FolderProfile7.pubxml" />
<None Include="Properties\PublishProfiles\FolderProfile8.pubxml" />
<None Include="Properties\PublishProfiles\learunadms6.1.pubxml" />
</ItemGroup>
<ItemGroup>


+ 1
- 1
Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Util/Learun.Util/Web/Net.cs Ver ficheiro

@@ -55,7 +55,7 @@ namespace Learun.Util
/// 获取局域网IP
/// </summary>
/// <returns></returns>
private static string GetLanIp()
public static string GetLanIp()
{
foreach (var hostAddress in Dns.GetHostAddresses(Dns.GetHostName()))
{


Carregando…
Cancelar
Guardar