Пример #1
0
        /// <summary>
        /// 加载配置类(检查文件修改时间)
        /// </summary>
        /// <returns></returns>
        public static BaseConfigInfo LoadConfig()
        {
            ConfigInfo = DefaultConfigFileManager.LoadConfig(ref _fileoldchange, ConfigFilePath, ConfigInfo);

            BaseConfigInfo rtnConfigInfo = ConfigInfo as BaseConfigInfo;

            if (rtnConfigInfo == null)
            {
                return(null);
            }

            // 解密
            rtnConfigInfo.Dbconnectstring = Sjs.Common.DES.Decode(rtnConfigInfo.Dbconnectstring, "sjscanpvvvfb");

            return(rtnConfigInfo);       //如果转换失败则返回null
        }