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

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