Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

urllink接口参数缺少 env_version #502

Closed
linbaozhong opened this issue Oct 29, 2021 · 0 comments · Fixed by #514
Closed

urllink接口参数缺少 env_version #502

linbaozhong opened this issue Oct 29, 2021 · 0 comments · Fixed by #514

Comments

@linbaozhong
Copy link

// TExpireType 失效类型 (指定时间戳/指定间隔)
type TExpireType int
// TEnvVersion 要打开的小程序版本。正式版为"release",体验版为"trial",开发版为"develop",仅在微信外打开时生效
type TEnvVersion string

const (
// ExpireTypeTime 指定时间戳后失效
ExpireTypeTime TExpireType = 0

// ExpireTypeInterval 间隔指定天数后失效
ExpireTypeInterval TExpireType = 1

EnvVersionRelease TEnvVersion = "release"
EnvVersionTrial TEnvVersion = "trial"
EnvVersionDev TEnvVersion = "develop"

)

// ULParams 请求参数
// https://developers.weixin.qq.com/miniprogram/dev/api-backend/open-api/url-link/urllink.generate.html#请求参数
type ULParams struct {
Path string json:"path"
Query string json:"query"
EnvVersion TEnvVersion json:"env_version"
IsExpire bool json:"is_expire"
ExpireType TExpireType json:"expire_type"
ExpireTime int64 json:"expire_time"
ExpireInterval int json:"expire_interval"
}

silenceper pushed a commit that referenced this issue Dec 7, 2021
* 小程序码、URL Link 增加参数(#502,#512)

* gofmt
@silenceper silenceper linked a pull request Dec 7, 2021 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants