diff --git a/VOL.Core/Configuration/AppSetting.cs b/VOL.Core/Configuration/AppSetting.cs index c987182..d687a49 100644 --- a/VOL.Core/Configuration/AppSetting.cs +++ b/VOL.Core/Configuration/AppSetting.cs @@ -72,6 +72,12 @@ namespace VOL.Core.Configuration /// public static YueDongServerOSS YueDongServerOSS { get; set; } + + /// + /// JingShiTiJiao + /// + public static JingShiTiJiao JingShiTiJiao { get; set; } + /// /// JWT有效期(分钟=默认120) /// @@ -96,6 +102,8 @@ namespace VOL.Core.Configuration services.Configure(configuration.GetSection("ALiYunOSS")); services.Configure(configuration.GetSection("YueDongServerOSS")); + services.Configure(configuration.GetSection("JingShiTiJiao")); + var provider = services.BuildServiceProvider(); IWebHostEnvironment environment = provider.GetRequiredService(); CurrentPath = Path.Combine(environment.ContentRootPath, "").ReplacePath(); @@ -115,6 +123,8 @@ namespace VOL.Core.Configuration ALiYunOSS = provider.GetRequiredService>().Value ?? new ALiYunOSS(); YueDongServerOSS = provider.GetRequiredService>().Value ?? new YueDongServerOSS(); + JingShiTiJiao = provider.GetRequiredService>().Value ?? new JingShiTiJiao(); + _connection = provider.GetRequiredService>().Value; ExpMinutes = (configuration["ExpMinutes"] ?? "120").GetInt(); @@ -247,4 +257,12 @@ namespace VOL.Core.Configuration public int ExpirationDate { get; set; } public string DataSyncCallBackUrl { get; set; } } + public class JingShiTiJiao + { + public string Channel { get; set; } + public string SecretKey { get; set; } + public string BaseUrl { get; set; } + public string SchoolCode { get; set; } + public string SportsItem { get; set; } + } } \ No newline at end of file