pcaptcha

package
v1.6.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 24, 2023 License: MIT Imports: 5 Imported by: 0

Documentation

Overview

行为式验证码

Index

Constants

This section is empty.

Variables

View Source
var (
	Behavior = gBehavior{}
)

Functions

This section is empty.

Types

type CaptchaInfo

type CaptchaInfo struct {
	Dots             map[int]captcha.CharDot `json:"dots"`             // 图片位置数据
	ImageBase64      string                  `json:"imageBase64"`      // 主图base64
	ThumbImageBase64 string                  `json:"thumbImageBase64"` // 缩略图base64
	UniqKey          string                  `json:"uniqKey"`          // 验证码key
}

type ImageSize

type ImageSize struct {
	Image captcha.Size // 主图尺寸 默认:300 * 300
	Thumb captcha.Size // 缩略图尺寸 默认:150 * 40
}

验证码图片尺寸配置

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL