Compare commits

..

No commits in common. "3a3184a5acfb947d815a3db200afa96e131f5246" and "3ca9be0a29db5aacc2b6f6294bae510e85b527ca" have entirely different histories.

1 changed files with 0 additions and 11 deletions

View File

@ -41,17 +41,6 @@ public class TrialResourceFilter : Attribute, IAsyncResourceFilter
// var typeFilter = context.ActionDescriptor.EndpointMetadata.Where(t => t.GetType() == typeof(TypeFilterAttribute)).Select(t => (TypeFilterAttribute)t).ToList().FirstOrDefault();
//var _trialOptList= typeFilter.Arguments.Select(t => t.ToString()).ToList();
// 获取当前请求的 Host 信息
var requestHost = context.HttpContext.Request.Host;
// 检查请求是否来自 localhost:6100
if (requestHost.Host == "localhost" && requestHost.Port == 6100)
{
await next.Invoke();
return;
}
#region 处理新的用户类型,不能操作项目相关接口
// 后期列举出具体的类型,其他任何用户类型,都不允许操作