Exemplo n.º 1
0
        public async Task <ActionResult> CreateCaptcha(CreateCaptcha captcha)
        {
            GetBaseInfo.Log.Write("aaa");
            CaptchaHelper vch = new CaptchaHelper();

            try
            {
                var model = await vch.CreateCaptcha(captcha.codeNum, captcha.width, captcha.height);

                return(Success("获取成功", model));
            }
            catch (Exception ex)
            {
                return(Fail(ex.Message));
            }
        }