代码拉取完成,页面将自动刷新
package mini
import (
"encoding/json"
"fmt"
"gitee.com/h79/gothird/token"
"gitee.com/h79/gothird/weixin/consts"
"gitee.com/h79/goutils/common/http"
)
// 获取小程序码,适用于需要的码数量极多的业务场景。通过该接口生成的小程序码,永久有效,数量暂无限制
// https://developers.weixin.qq.com/miniprogram/dev/api-backend/open-api/qr-code/wxacode.getUnlimited.html
func QrcCreate(api *token.Api, qrc *WxaQrcReq) ([]byte, error) {
uri := fmt.Sprintf("%s/wxa/getwxacodeunlimit?", consts.ApiPrefixUrl)
buf, err := json.Marshal(qrc)
if err != nil {
return nil, err
}
var res []byte
er := api.Request("POST", uri, buf, func(hp *http.Http, body []byte) error {
res = body
return nil
})
return res, er
}
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。