是
This commit is contained in:
parent
0e8ad966de
commit
0cf17d7587
@ -72,6 +72,12 @@ namespace VOL.Core.Configuration
|
||||
/// </summary>
|
||||
public static YueDongServerOSS YueDongServerOSS { get; set; }
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// JingShiTiJiao
|
||||
/// </summary>
|
||||
public static JingShiTiJiao JingShiTiJiao { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// JWT有效期(分钟=默认120)
|
||||
/// </summary>
|
||||
@ -96,6 +102,8 @@ namespace VOL.Core.Configuration
|
||||
services.Configure<ALiYunOSS>(configuration.GetSection("ALiYunOSS"));
|
||||
services.Configure<YueDongServerOSS>(configuration.GetSection("YueDongServerOSS"));
|
||||
|
||||
services.Configure<JingShiTiJiao>(configuration.GetSection("JingShiTiJiao"));
|
||||
|
||||
var provider = services.BuildServiceProvider();
|
||||
IWebHostEnvironment environment = provider.GetRequiredService<IWebHostEnvironment>();
|
||||
CurrentPath = Path.Combine(environment.ContentRootPath, "").ReplacePath();
|
||||
@ -115,6 +123,8 @@ namespace VOL.Core.Configuration
|
||||
ALiYunOSS = provider.GetRequiredService<IOptions<ALiYunOSS>>().Value ?? new ALiYunOSS();
|
||||
YueDongServerOSS = provider.GetRequiredService<IOptions<YueDongServerOSS>>().Value ?? new YueDongServerOSS();
|
||||
|
||||
JingShiTiJiao = provider.GetRequiredService<IOptions<JingShiTiJiao>>().Value ?? new JingShiTiJiao();
|
||||
|
||||
_connection = provider.GetRequiredService<IOptions<Connection>>().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; }
|
||||
}
|
||||
}
|
||||
Loading…
x
Reference in New Issue
Block a user