增加连接串加密,粤北安装版本封存
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))
|
||||
{
|
||||
|
Reference in New Issue
Block a user