/// <summary> /// 重置积分配置信息 /// </summary> public static void ResetCreditConfig() { lock (_locker) { _creditconfiginfo = BMAConfig.CreditConfig; } }
/// <summary> /// 保存积分配置信息 /// </summary> public static void SaveCreditConfig(CreditConfigInfo creditConfigInfo) { lock (_locker) { if (_iconfigstrategy.SaveCreditConfig(creditConfigInfo)) { _creditconfiginfo = null; } } }
/// <summary> /// 保存上传配置信息 /// </summary> public static void SaveUploadConfig(UploadConfigInfo uploadConfigInfo) { lock (_locker) { if (_iconfigstrategy.SaveUploadConfig(uploadConfigInfo)) { _creditconfiginfo = null; } } }
private static CreditConfigInfo _creditconfiginfo = null;//积分配置信息 static Credits() { _creditconfiginfo = BMAConfig.CreditConfig; }
/// <summary> /// 保存积分配置 /// </summary> /// <param name="configInfo">积分配置信息</param> /// <returns>是否保存结果</returns> public bool SaveCreditConfig(CreditConfigInfo configInfo) { return SaveConfigInfo(configInfo, IOHelper.GetMapPath(_creditconfigfilepath)); }
/// <summary> /// 保存积分配置信息 /// </summary> public static void SaveCreditConfig(CreditConfigInfo creditConfigInfo) { lock (_locker) { if (_iconfigstrategy.SaveCreditConfig(creditConfigInfo)) _creditconfiginfo = null; } }