fix vali middleware
This commit is contained in:
@@ -15,6 +15,8 @@ using Microsoft.AspNetCore.Mvc;
|
||||
using COMCMS.Common;
|
||||
using COMCMS.Web.Models;
|
||||
using COMCMS.Web.Common;
|
||||
using COMCMS.Web.ExceptionHandler;
|
||||
using Lib.Core.MiddlewareExtension.Extension;
|
||||
|
||||
namespace COMCMS.Web
|
||||
{
|
||||
@@ -118,6 +120,8 @@ namespace COMCMS.Web
|
||||
ForwardedHeaders = ForwardedHeaders.XForwardedFor | ForwardedHeaders.XForwardedProto
|
||||
});
|
||||
|
||||
app.UseMiddlewareExtension(new ResultExceptionHandler());
|
||||
|
||||
//加入HttpContext
|
||||
//MyHttpContext.ServiceProvider = svp;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user