houseme d8fde54f2d improve comment ,参考:https://github.com/huacnlee/autocorrect 1 år sedan
..
analysis d8fde54f2d improve comment ,参考:https://github.com/huacnlee/autocorrect 1 år sedan
auth d8fde54f2d improve comment ,参考:https://github.com/huacnlee/autocorrect 1 år sedan
business d8fde54f2d improve comment ,参考:https://github.com/huacnlee/autocorrect 1 år sedan
config dea33e0e48 小程序消息推送 (#713) 2 år sedan
content d8fde54f2d improve comment ,参考:https://github.com/huacnlee/autocorrect 1 år sedan
context 972dec0406 将小程序获取ak的方式也抽象出来 6 år sedan
encryptor d8fde54f2d improve comment ,参考:https://github.com/huacnlee/autocorrect 1 år sedan
message d8fde54f2d improve comment ,参考:https://github.com/huacnlee/autocorrect 1 år sedan
minidrama 8f10936479 fix: util.DecodeWithError result (#729) 2 år sedan
order d8fde54f2d improve comment ,参考:https://github.com/huacnlee/autocorrect 1 år sedan
privacy d8fde54f2d improve comment ,参考:https://github.com/huacnlee/autocorrect 1 år sedan
qrcode d8fde54f2d improve comment ,参考:https://github.com/huacnlee/autocorrect 1 år sedan
redpacketcover d8fde54f2d improve comment ,参考:https://github.com/huacnlee/autocorrect 1 år sedan
riskcontrol d8fde54f2d improve comment ,参考:https://github.com/huacnlee/autocorrect 1 år sedan
security d8fde54f2d improve comment ,参考:https://github.com/huacnlee/autocorrect 1 år sedan
shortlink d28ca4f334 feat: optimized-error-handling&remove unused constant (#772) 2 år sedan
subscribe d8fde54f2d improve comment ,参考:https://github.com/huacnlee/autocorrect 1 år sedan
tcb d8fde54f2d improve comment ,参考:https://github.com/huacnlee/autocorrect 1 år sedan
urllink d8fde54f2d improve comment ,参考:https://github.com/huacnlee/autocorrect 1 år sedan
urlscheme d8fde54f2d improve comment ,参考:https://github.com/huacnlee/autocorrect 1 år sedan
virtualpayment d8fde54f2d improve comment ,参考:https://github.com/huacnlee/autocorrect 1 år sedan
werun 45caf61899 Silenceper release 2.0 (#408) 5 år sedan
README.md cc201fcece feat: create Mini Program entertainment mini-drama related interface (#711) 2 år sedan
miniprogram.go 1138a7db0e feat:追加动态消息接口 (#775) 2 år sedan

README.md

微信小程序

官方文档

包说明

  • analysis 数据分析相关 API

快速入门

wc := wechat.NewWechat()
memory := cache.NewMemory()
cfg := &miniConfig.Config{
    AppID:     "xxx",
    AppSecret: "xxx",
    Cache: memory,
}
miniprogram := wc.GetMiniProgram(cfg)
miniprogram.GetAnalysis().GetAnalysisDailyRetain()

小程序虚拟支付

注意:需要传入 Appkey、OfferID 的值

相关文档:小程序虚拟支付

wc := wechat.NewWechat()
miniprogram := wc.GetMiniProgram(&miniConfig.Config{
    AppID:     "xxx",
    AppSecret: "xxx",
    AppKey:    "xxx",
    OfferID:   "xxx",
    Cache: cache.NewRedis(&redis.Options{
        Addr: "",
    }),
})
virtualPayment := miniprogram.GetVirtualPayment()
virtualPayment.SetSessionKey("xxx")
// 查询用户余额
var (
    res *virtualPayment.QueryUserBalanceResponse
    err error
)

if res, err = virtualPayment.QueryUserBalance(context.TODO(), &virtualPayment.QueryUserBalanceRequest{
    OpenID: "xxx",
    Env: virtualPayment.EnvProduction,
    UserIP: "xxx",
}); err != nil {
    panic(err)
}