APCGC_CBS.Admin/Controllers/CommonController.cs

(完整代码) 791B

using APCGC_CBS.Admin.Code;
using APCGC_CBS.Common;
using System;
using System.Collections.Generic;
using System.Drawing.Imaging;
using System.Linq;
using System.Web;
using System.Web.Mvc;

namespace APCGC_CBS.Admin.Controllers
{
    public class CommonController : BaseController
    {
        /// <summary>
        /// 图片验证码
        /// </summary>
        /// <returns></returns>
        public ActionResult GetValidateCode()
        {
            ValidateCode vCode = new ValidateCode();
            string validateCode = "";
            byte[] bytes = vCode.CreateValidateGraphic(4, 80, 22, 18, ImageFormat.Png, ref validateCode);
            Session["Login_Ck_Code"] = validateCode;
            return File(bytes, @"image/jpeg");
        }
    }
}

24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明

AI 解读 AI

登录后可用,每次 10 算力,解读结果公开显示在下面。

还没有人解读过这个文件。