weapp
weapp copied to clipboard
微信小程序服务端 SDK (for Golang)
目前这种函数定义 ``` type AccessTokenGetter func() (token string, expireIn uint) ``` 无法支持多个appid的场景。
补充 check_path : 检查 page 是否存在,为 true 时 page 必须是已经发布的小程序存在的页面(否则报错);为 false 时允许小程序未发布或者 page 不存在, 但 page 有数量上限(60000个)请勿滥用 env_version:要打开的小程序版本。正式版为 release,体验版为 trial,开发版为 develop 参考地址:[小程序](https://developers.weixin.qq.com/miniprogram/dev/api-backend/open-api/qr-code/wxacode.getUnlimited.html) 需求: 这2个参数方便调试使用,期待加入
err:Post "https://api.weixin.qq.com/cgi-bin/message/subscribe/send?access_token=xxxx": context deadline exceeded (Client.Timeout exceeded while awaiting headers)
理论上应该更快些
Q:调用v3版本的MSGSecCheck,貌似有些内容检测不出来; 腾讯文本检测API v2介绍页: https://developers.weixin.qq.com/miniprogram/dev/api-backend/open-api/sec-check/security.msgSecCheck.html
在小程序开发文档中,phone_info 和 watermark字段 都是 map结构,不是切片结构。会导致json转换后无法获取到用户手机号信息。 https://developers.weixin.qq.com/miniprogram/dev/api-backend/open-api/phonenumber/phonenumber.getPhoneNumber.html
系统中有调用多个小程序需求,能放开自定义,或者 key里面加上 appid ```go func (cli *Client) tokenCacheKey() string { return fmt.Sprintf("weapp.access.token.%s", cli.appid) } ```
请问什么时候可以支持支付相关接口呢?现在两个版本共存总是觉得有点奇怪,没别的意思
操作系统:win10 golang版本:1.14.1 正确传入 sessionkey , encrypted_data,iv 返回以下内容 ``` invalid character '¶' looking for beginning of value ```