예제 #1
0
파일: Credits.cs 프로젝트: qq550723504/zone
 /// <summary>
 /// 重置积分配置信息
 /// </summary>
 public static void ResetCreditConfig()
 {
     lock (_locker)
     {
         _creditconfiginfo = BMAConfig.CreditConfig;
     }
 }
예제 #2
0
 /// <summary>
 /// 保存积分配置信息
 /// </summary>
 public static void SaveCreditConfig(CreditConfigInfo creditConfigInfo)
 {
     lock (_locker)
     {
         if (_iconfigstrategy.SaveCreditConfig(creditConfigInfo))
         {
             _creditconfiginfo = null;
         }
     }
 }
예제 #3
0
 /// <summary>
 /// 保存上传配置信息
 /// </summary>
 public static void SaveUploadConfig(UploadConfigInfo uploadConfigInfo)
 {
     lock (_locker)
     {
         if (_iconfigstrategy.SaveUploadConfig(uploadConfigInfo))
         {
             _creditconfiginfo = null;
         }
     }
 }
예제 #4
0
파일: Credits.cs 프로젝트: qq550723504/zone
        private static CreditConfigInfo _creditconfiginfo = null;//积分配置信息

        static Credits()
        {
            _creditconfiginfo = BMAConfig.CreditConfig;
        }
예제 #5
0
 /// <summary>
 /// 保存积分配置
 /// </summary>
 /// <param name="configInfo">积分配置信息</param>
 /// <returns>是否保存结果</returns>
 public bool SaveCreditConfig(CreditConfigInfo configInfo)
 {
     return SaveConfigInfo(configInfo, IOHelper.GetMapPath(_creditconfigfilepath));
 }
예제 #6
0
 /// <summary>
 /// 保存积分配置信息
 /// </summary>
 public static void SaveCreditConfig(CreditConfigInfo creditConfigInfo)
 {
     lock (_locker)
     {
         if (_iconfigstrategy.SaveCreditConfig(creditConfigInfo))
             _creditconfiginfo = null;
     }
 }