mirror of
https://github.com/silenceper/wechat.git
synced 2026-02-12 16:52:28 +08:00
增加部分小程序接口
This commit is contained in:
@@ -4,6 +4,7 @@ import (
|
||||
"net/http"
|
||||
"sync"
|
||||
|
||||
"github.com/JefferyWang/wechat/miniprogram"
|
||||
"github.com/silenceper/wechat/cache"
|
||||
"github.com/silenceper/wechat/context"
|
||||
"github.com/silenceper/wechat/js"
|
||||
@@ -99,3 +100,8 @@ func (wc *Wechat) GetTemplate() *template.Template {
|
||||
func (wc *Wechat) GetPay() *pay.Pay {
|
||||
return pay.NewPay(wc.Context)
|
||||
}
|
||||
|
||||
// GetMiniProgram 获取小程序的实例
|
||||
func (wc *Wechat) GetMiniProgram() *miniprogram.MiniProgram {
|
||||
return miniprogram.NewMiniProgram(wc.Context)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user