mirror of
https://github.com/silenceper/wechat.git
synced 2026-02-16 18:52:27 +08:00
skip-valid-when-debug-mode(fix #82)
This commit is contained in:
10
wechat.go
10
wechat.go
@@ -10,10 +10,10 @@ import (
|
||||
"github.com/silenceper/wechat/material"
|
||||
"github.com/silenceper/wechat/menu"
|
||||
"github.com/silenceper/wechat/oauth"
|
||||
"github.com/silenceper/wechat/pay"
|
||||
"github.com/silenceper/wechat/server"
|
||||
"github.com/silenceper/wechat/template"
|
||||
"github.com/silenceper/wechat/user"
|
||||
"github.com/silenceper/wechat/pay"
|
||||
)
|
||||
|
||||
// Wechat struct
|
||||
@@ -27,9 +27,9 @@ type Config struct {
|
||||
AppSecret string
|
||||
Token string
|
||||
EncodingAESKey string
|
||||
PayMchID string //支付 - 商户 ID
|
||||
PayNotifyURL string //支付 - 接受微信支付结果通知的接口地址
|
||||
PayKey string //支付 - 商户后台设置的支付 key
|
||||
PayMchID string //支付 - 商户 ID
|
||||
PayNotifyURL string //支付 - 接受微信支付结果通知的接口地址
|
||||
PayKey string //支付 - 商户后台设置的支付 key
|
||||
Cache cache.Cache
|
||||
}
|
||||
|
||||
@@ -98,4 +98,4 @@ func (wc *Wechat) GetTemplate() *template.Template {
|
||||
// GetPay 返回支付消息的实例
|
||||
func (wc *Wechat) GetPay() *pay.Pay {
|
||||
return pay.NewPay(wc.Context)
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user