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

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)
}