修改界面

This commit is contained in:
“wanyongkang”
2025-04-29 15:24:29 +08:00
parent eece750ec0
commit 3bbbe8bc0f
3 changed files with 9 additions and 9 deletions

View File

@@ -33,18 +33,18 @@ namespace Hncore.Infrastructure.WebApi
context.Reject();
}
var IP = context.HttpContext.Request.Headers["X-Real-IP"].ToString();
System.IO.StreamReader reader = new System.IO.StreamReader("/var/www/ip/ip");
string limitIp = reader.ReadLine();
// var IP = context.HttpContext.Request.Headers["X-Real-IP"].ToString();
// System.IO.StreamReader reader = new System.IO.StreamReader("/var/www/ip/ip");
// string limitIp = reader.ReadLine();
// //LogHelper.Error("ipaddresses", (!limitIp.Contains(IP)).ToString());
if ((!limitIp.Contains(IP)) && manager_user_info.OperaterId<100000) {
context.Reject();
}
// if ((!limitIp.Contains(IP)) && manager_user_info.OperaterId<100000) {
// context.Reject();
// }
context.SetPassed("ManageAuth");
}