增加连接串加密,粤北安装版本封存
This commit is contained in:
@ -28,7 +28,7 @@ namespace HT.Cloud.Service
|
||||
{
|
||||
list = new List<ConnectionConfig>();
|
||||
var data = GlobalContext.SystemConfig;
|
||||
var defaultConfig = DBContexHelper.Contex(data.DBConnectionString, data.DBProvider);
|
||||
var defaultConfig = DBContexHelper.Contex(AESKeyEncrypt.DecryptDES(data.DBConnectionString), data.DBProvider);
|
||||
defaultConfig.ConfigId = "0";
|
||||
list.Add(defaultConfig);
|
||||
try
|
||||
@ -53,7 +53,7 @@ namespace HT.Cloud.Service
|
||||
//扩展数据库
|
||||
foreach (var item in data.SqlConfig)
|
||||
{
|
||||
var config = DBContexHelper.Contex(item.DBConnectionString, item.DBProvider);
|
||||
var config = DBContexHelper.Contex(AESKeyEncrypt.DecryptDES(item.DBConnectionString), item.DBProvider);
|
||||
config.ConfigId = item.DBNumber;
|
||||
if (list.Any(a => a.ConfigId == config.ConfigId))
|
||||
{
|
||||
|
@ -152,7 +152,7 @@ namespace HT.Cloud.Service
|
||||
["quartz.jobStore.dataSource"] = "myDS", // 配置数据源名称
|
||||
["quartz.jobStore.tablePrefix"] = "QRTZ_", // quartz所使用的表,在当前数据库中的表前缀
|
||||
["quartz.jobStore.driverDelegateType"] = "Quartz.Impl.AdoJobStore.MySQLDelegate, Quartz", // 配置AdoJobStore使用的DriverDelegate
|
||||
["quartz.dataSource.myDS.connectionString"] = GlobalContext.SystemConfig.DBConnectionString, // 配置数据库连接字符串,自己处理好连接字符串,我这里就直接这么写了
|
||||
["quartz.dataSource.myDS.connectionString"] = AESKeyEncrypt.DecryptDES(GlobalContext.SystemConfig.DBConnectionString), // 配置数据库连接字符串,自己处理好连接字符串,我这里就直接这么写了
|
||||
["quartz.dataSource.myDS.provider"] = "mysql-custom", // 配置数据库提供程序(这里是自定义的,定义的代码在上面)
|
||||
["quartz.jobStore.lockHandler.type"] = "Quartz.Impl.AdoJobStore.UpdateLockRowSemaphore, Quartz",
|
||||
["quartz.serializer.type"] = "json",
|
||||
|
Reference in New Issue
Block a user