Exemplo n.º 1
0
        public JsonResult GetSMSCaptcha(string mobile)
        {
            var captcha = RandomHelper.Number(6);

            Session.Set(CustomConfig.CaptchaSession, captcha);
            ISMS sms    = WebIoc.Container.Resolve <ISMS>();
            var  result = sms.sendOnce(mobile, string.Format(CustomConfig.PhoneCapTemp, captcha));

            return(Json(result));
        }