Exemple #1
0
        private static MallConfigInfo _mallconfiginfo = null;//商城配置

        static SMSes()
        {
            _ismsstrategy = BMASMS.Instance;
            _smsconfiginfo = BMAConfig.SMSConfig;
            _mallconfiginfo = BMAConfig.MallConfig;
            _ismsstrategy.Url = _smsconfiginfo.Url;
            _ismsstrategy.UserName = _smsconfiginfo.UserName;
            _ismsstrategy.Password = _smsconfiginfo.Password;
        }
Exemple #2
0
 /// <summary>
 /// 保存短信配置信息
 /// </summary>
 public static void SaveSMSConfig(SMSConfigInfo smsConfigInfo)
 {
     lock (_locker)
     {
         if (_iconfigstrategy.SaveSMSConfig(smsConfigInfo))
         {
             _smsconfiginfo = null;
         }
     }
 }
Exemple #3
0
 /// <summary>
 /// 重置短信配置
 /// </summary>
 public static void ResetSMS()
 {
     lock (_locker)
     {
         _smsconfiginfo = BMAConfig.SMSConfig;
         _ismsstrategy.Url = _smsconfiginfo.Url;
         _ismsstrategy.UserName = _smsconfiginfo.UserName;
         _ismsstrategy.Password = _smsconfiginfo.Password;
     }
 }
Exemple #4
0
 /// <summary>
 /// 保存短信配置
 /// </summary>
 /// <param name="configInfo">短信配置信息</param>
 /// <returns>是否保存结果</returns>
 public bool SaveSMSConfig(SMSConfigInfo configInfo)
 {
     return SaveConfigInfo(configInfo, IOHelper.GetMapPath(_smsconfigfilepath));
 }
Exemple #5
0
 /// <summary>
 /// 保存短信配置信息
 /// </summary>
 public static void SaveSMSConfig(SMSConfigInfo smsConfigInfo)
 {
     lock (_locker)
     {
         if (_iconfigstrategy.SaveSMSConfig(smsConfigInfo))
             _smsconfiginfo = null;
     }
 }