Exemplo n.º 1
0
        public static bool Insert(SmsLog model)
        {
            string errMsg;

            if (SmsLogRedisBll.Insert(model))
            {
                return(dal.Insert(model, Global.ApplicationParms.ConnectionString, out errMsg));
            }
            else
            {
                return(false);
            }
        }
Exemplo n.º 2
0
 /// <summary>
 /// 返回指定手机号发送短信条数(1天有效)
 /// </summary>
 /// <param name="mobilePhone"></param>
 /// <returns></returns>
 public static int GetSmsCount(string mobilePhone, ESmsLogType logType)
 {
     return(SmsLogRedisBll.GetSmsCount(mobilePhone, logType));
 }
Exemplo n.º 3
0
 /// <summary>
 /// 返回指定手机号指定日志
 /// </summary>
 /// <param name="mobilePhone"></param>
 /// <param name="logType"></param>
 /// <returns></returns>
 public static SmsLog GetLastModel(string mobilePhone, ESmsLogType logType)
 {
     return(SmsLogRedisBll.GetLastModel(mobilePhone, logType));
 }