public static void RegisterGlobalFilters(GlobalFilterCollection filters) { filters.Add(new HandleErrorAttribute()); filters.Add(new LangFilterAttribute(LangHelper.GetThreadLang()), 0); // 语言过滤器 }