平安校园
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.

CaptchaInfo.cs 497 B

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