优化认证

This commit is contained in:
FalconFly 2024-04-17 14:04:24 +08:00
parent e52930e99a
commit d27d4bec62

View File

@ -39,6 +39,10 @@ namespace Falcon.SugarApi.Swagger
/// <param name="context">HttpContext</param>
/// <returns>任务</returns>
public virtual async Task InvokeAsync(HttpContext context) {
if(this.Options == null) {
await ToNext(context);
return;
}
if(!this.Options.UseAuth) {
await ToNext(context);
return;