Exemplo n.º 1
0
        private static SMSConfigInfo _smsconfiginfo = null; //短信配置

        #endregion Fields

        #region Constructors

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