Documentation
¶
Overview ¶
Package code 小程序二维码
Index ¶
Constants ¶
View Source
const (
QRCodeAPI = "/cgi-bin/wxaapp/createwxaqrcode"
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type QRCoder ¶
type QRCoder struct { Page string `json:"page,omitempty"` // path 识别二维码后进入小程序的页面链接 Path string `json:"path,omitempty"` // width 图片宽度 Width int `json:"width,omitempty"` // scene 参数数据 Scene string `json:"scene,omitempty"` // autoColor 自动配置线条颜色,如果颜色依然是黑色,则说明不建议配置主色调 AutoColor bool `json:"auto_color,omitempty"` // lineColor AutoColor 为 false 时生效,使用 rgb 设置颜色 例如 {"r":"xxx","g":"xxx","b":"xxx"},十进制表示 LineColor Color `json:"line_color,omitempty"` // isHyaline 是否需要透明底色 IsHyaline bool `json:"is_hyaline,omitempty"` }
QRCoder 小程序码参数
func (QRCoder) AppCode ¶
AppCode 获取小程序码 可接受path参数较长 生成个数受限 永久有效 适用于需要的码数量较少的业务场景
@token 微信access_token
Click to show internal directories.
Click to hide internal directories.