Captcha.json 1.6 KB

1234567891011121314151617181920212223242526272829
  1. {
  2. "$schema": "https://gitee.com/dotnetchina/Furion/raw/v4/schemas/v4/furion-schema.json",
  3. // Lazy.Captcha.Core 组件详细文档(https://api.gitee.com/pojianbing/lazy-captcha/)
  4. "CaptchaOptions": {
  5. "CaptchaType": 10, // 验证码类型0、1、2、3、4、5、6、7、8、9、10、11
  6. "CodeLength": 1, // 验证码长度, 要放在CaptchaType设置后 当类型为算术表达式时,长度代表操作的个数, 例如2
  7. "ExpirySeconds": 60, // 验证码过期秒数
  8. "IgnoreCase": true, // 比较时是否忽略大小写
  9. "StoreageKeyPrefix": "", // 存储键前缀
  10. "ImageOption": {
  11. "Animation": true, // 是否启用动画
  12. "FontSize": 36, // 字体大小
  13. "Width": 150, // 验证码宽度
  14. "Height": 50, // 验证码高度
  15. "BubbleMinRadius": 5, // 气泡最小半径
  16. "BubbleMaxRadius": 10, // 气泡最大半径
  17. "BubbleCount": 3, // 气泡数量
  18. "BubbleThickness": 1.0, // 气泡边沿厚度
  19. "InterferenceLineCount": 3, // 干扰线数量
  20. "FontFamily": "kaiti", // 包含actionj,epilog,fresnel,headache,lexo,prefix,progbot,ransom,robot,scandal,kaiti
  21. "FrameDelay": 300, // 每帧延迟,Animation=true时有效, 默认300
  22. "BackgroundColor": "#ffffff", // 格式: rgb, rgba, rrggbb, or rrggbbaa format to match web syntax, 默认#fff
  23. "ForegroundColors": "", // 颜色格式同BackgroundColor,多个颜色逗号分割,随机选取。不填,空值,则使用默认颜色集
  24. "Quality": 100, // 图片质量(质量越高图片越大,gif调整无效可能会更大)
  25. "TextBold": true // 粗体
  26. }
  27. }
  28. }