public SimpleResultModel VoiceCheckCode(SmsParaModel model)
        {
            if (!CommonValidator.IsValidPhoneNumber(model.PhoneNumber))
            {
                return(SimpleResultModel.Conclude(SendCheckCodeStatus.InvlidPhoneNumber));
            }
            var    redis = new RedisCache();
            string msg   = string.Empty;
            string key   = model.Stype == "0" ? RedissCacheKey.PostRegisterInfo_C + model.PhoneNumber : RedissCacheKey.PostForgetPwd_C + model.PhoneNumber;


            object obj = redis.Get <object>(key);

            if (obj == null)
            {
                return(SimpleResultModel.Conclude(SendCheckCodeStatus.CodeNotExists));
            }
            string tempcode = obj.ToString().Aggregate("", (current, c) => current + (c.ToString() + ','));

            bool userStatus = iClienterProvider.CheckClienterExistPhone(model.PhoneNumber);

            if (model.Stype == "0") //注册
            {
                if (userStatus)     //判断该手机号是否已经注册过
                {
                    return(SimpleResultModel.Conclude(SendCheckCodeStatus.AlreadyExists));
                }
                msg = string.Format(SupermanApiConfig.Instance.SmsContentCheckCodeVoice, tempcode, SystemConst.MessageClinenter);
            }
            else //修改密码
            {
                if (!userStatus)
                {
                    return(SimpleResultModel.Conclude(SendCheckCodeStatus.NotExists));
                }
                msg = string.Format(SupermanApiConfig.Instance.SmsContentCheckCodeFindPwdVoice, tempcode, SystemConst.MessageClinenter);
            }
            try
            {
                // 更新短信通道
                Task.Factory.StartNew(() =>
                {
                    SendSmsHelper.SendSmsSaveLogNew(model.PhoneNumber, msg, SystemConst.SMSSOURCE);
                });
                return(SimpleResultModel.Conclude(SendCheckCodeStatus.Sending));
            }
            catch (Exception)
            {
                return(SimpleResultModel.Conclude(SendCheckCodeStatus.SendFailure));
            }
        }
        public SimpleResultModel VoiceCheckCode(SmsParaModel model)
        {
            BusinessProvider businessProvider = new BusinessProvider();

            return(businessProvider.VoiceCheckCode(model));
        }