/// <summary> 初始化数据库连接 /// </summary> /// <param name="htParas"></param> private static void InitConnString(Hashtable htParas) { if (htParas.ContainsKey(ConfigConst.ConnectionManageString)) { GlobalStaticObj_Server.Instance.ManagerConnString = htParas[ConfigConst.ConnectionManageString].ToString(); GlobalStaticObj_Server.Instance.ManagerConnString = Secret.Decrypt3DES(GlobalStaticObj_Server.Instance.ManagerConnString, Key); } if (htParas.ContainsKey(ConfigConst.ConnectionStringReadonly)) { GlobalStaticObj_Server.Instance.ReadOnlyConnString = htParas[ConfigConst.ConnectionStringReadonly].ToString(); GlobalStaticObj_Server.Instance.ReadOnlyConnString = Secret.Decrypt3DES(GlobalStaticObj_Server.Instance.ReadOnlyConnString, Key); } if (htParas.ContainsKey(ConfigConst.ConnectionStringWrite)) { GlobalStaticObj_Server.Instance.CanWriteConnString = htParas[ConfigConst.ConnectionStringWrite].ToString(); GlobalStaticObj_Server.Instance.CanWriteConnString = Secret.Decrypt3DES(GlobalStaticObj_Server.Instance.CanWriteConnString, Key); } }