vrcode

package
v0.0.0-...-1369677 Latest Latest
Warning

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

Go to latest
Published: Dec 2, 2022 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// Cloud 运营商
	Cloud = "VRCode"
	// CodeSucc 响应成功,仅为 0 时才响应成功
	CodeSucc = 0
	// CodeFailedAuth 请求失败,用户名或密码错误
	CodeFailedAuth = 1
	// CodeFailedToken 请求失败,token 无效
	CodeFailedToken = 2
	// CodeFailedLimit 制码失败,制码次数超出限制
	CodeFailedLimit = 3
	// CodeFailedErr 制码失败,请重试或联系管理人员
	CodeFailedErr = 5
	// CodeFailedParam 参数错误,请核对后重新请求
	CodeFailedParam = 6
)

Variables

This section is empty.

Functions

This section is empty.

Types

type VRCode

type VRCode struct {
	// contains filtered or unexported fields
}

VRCode 快递100快递查询服务结构详情

func NewVRCode

func NewVRCode(domain, userName, password string, mode int64) (*VRCode, error)

NewVRCode 新建VRCode客户端

func (*VRCode) GetQRCode

func (c *VRCode) GetQRCode(imgCode, codeInfo string) (string, error)

GetQRCode 获取三维码 imgCode 制码底图的base64编码,不包含空格和头部 codeInfo 编码内容 returns string 三维码图片的 base64 位值 (图片格式为 png,1000*1000 像素)

Jump to

Keyboard shortcuts

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