Skip to content

Commit

Permalink
修复oss上传没有配置region数据导致异常的问题
Browse files Browse the repository at this point in the history
  • Loading branch information
zhontai committed Jan 12, 2023
1 parent f13f5d9 commit 06e1231
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,7 @@ public static IServiceCollection AddOSS(this IServiceCollection services)
option.SecretKey = oSSOptions.SecretKey;
option.IsEnableHttps = oSSOptions.IsEnableHttps;
option.IsEnableCache = oSSOptions.IsEnableCache;
option.Region = oSSOptions.Region;
});

var oSSServiceFactory = services.BuildServiceProvider().GetRequiredService<IOSSServiceFactory>();
Expand Down

0 comments on commit 06e1231

Please sign in to comment.