From 0cf17d758787f5065a23de527f7713e9546a0699 Mon Sep 17 00:00:00 2001
From: tanglong <842690096@qq.com>
Date: Fri, 16 Jan 2026 10:12:31 +0800
Subject: [PATCH] =?UTF-8?q?=E6=98=AF?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
VOL.Core/Configuration/AppSetting.cs | 18 ++++++++++++++++++
1 file changed, 18 insertions(+)
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