1,创建一个继承自FilterAttribute,IActionFilter的类namespaceHeatMetering2.Filters{publicclassHMV2AuthenticationAttribute:FilterAttribute,IActionFilter{intnotAuthentication=0;//设置未认证标志,用于区分返回不同的未认证页面publicvoidOnActionExecuted(ActionExecutedContextfilterContext)...
查看全文