优化认证
This commit is contained in:
parent
e52930e99a
commit
d27d4bec62
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue
Block a user