优化代码

This commit is contained in:
不做码农
2022-01-08 21:48:09 +08:00
parent 3fee68d504
commit 58bbb2b967
5 changed files with 19 additions and 22 deletions

View File

@@ -22,7 +22,7 @@ namespace ZR.Admin.WebApi.Filters
public class VerifyAttribute : Attribute, IAuthorizationFilter
{
static readonly Logger logger = LogManager.GetCurrentClassLogger();
IWebHostEnvironment webHostEnvironment = (IWebHostEnvironment)App.ServiceProvider.GetService(typeof(IWebHostEnvironment));
//IWebHostEnvironment webHostEnvironment = (IWebHostEnvironment)App.ServiceProvider.GetService(typeof(IWebHostEnvironment));
//public VerifyAttribute() { }