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