平安校园
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

36 lines
497 B

  1. //
  2. namespace SafeCampus.Core.Utils;
  3. /// <summary>
  4. /// 验证码信息
  5. /// </summary>
  6. public class CaptchaInfo
  7. {
  8. /// <summary>
  9. /// 验证码
  10. /// </summary>
  11. public string Code { get; set; }
  12. /// <summary>
  13. /// 验证码数据流
  14. /// </summary>
  15. public byte[] Image { get; set; }
  16. /// <summary>
  17. /// base64
  18. /// </summary>
  19. public string Base64Str
  20. {
  21. get { return "data:image/png;base64," + Convert.ToBase64String(Image); }
  22. }
  23. }