1、陕西建龙打包版本
2、drawio导入SFC 3、多系统并存修改
This commit is contained in:
@ -38,13 +38,13 @@ namespace HT.Cloud.Code
|
||||
public virtual void ConfigureServices(IServiceCollection services)
|
||||
{
|
||||
GlobalContext.SystemConfig = Configuration.GetSection("SystemConfig").Get<SystemConfig>();
|
||||
var environment = Environment.GetEnvironmentVariable("ASPNETCORE_ENVIRONMENT");
|
||||
//没有设置环境变量就默认生产环境
|
||||
if (string.IsNullOrWhiteSpace(environment))
|
||||
environment = "Production";
|
||||
Configuration = new ConfigurationBuilder().AddJsonFile($"appsettings.{environment}.json", optional: true, reloadOnChange: true).Build();
|
||||
//var environment = Environment.GetEnvironmentVariable("ASPNETCORE_ENVIRONMENT");
|
||||
////没有设置环境变量就默认生产环境
|
||||
//if (string.IsNullOrWhiteSpace(environment))
|
||||
// environment = "Production";
|
||||
//Configuration = new ConfigurationBuilder().AddJsonFile($"appsettings.json", optional: true, reloadOnChange: true).Build();
|
||||
|
||||
GlobalContext.SystemConfig = Configuration.GetSection("SystemConfig").Get<SystemConfig>();
|
||||
//GlobalContext.SystemConfig = Configuration.GetSection("SystemConfig").Get<SystemConfig>();
|
||||
GlobalContext.Services = services;
|
||||
GlobalContext.Configuration = Configuration;
|
||||
services.Configure<CookiePolicyOptions>(options =>
|
||||
|
@ -13,11 +13,14 @@ namespace HT.Cloud.Code.Model
|
||||
/// 系统备注
|
||||
/// </summary>
|
||||
public string SystemDescription { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 是否是调试模式
|
||||
/// </summary>
|
||||
public bool Debug { get; set; }
|
||||
/// <summary>
|
||||
/// 系统备注
|
||||
/// </summary>
|
||||
public string MainPageSystemName { get; set; }
|
||||
/// <summary>
|
||||
/// 是否是调试模式
|
||||
/// </summary>
|
||||
public bool Debug { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 允许一个用户在多个电脑同时登录
|
||||
|
Reference in New Issue
Block a user