修改vivo支付接口

This commit is contained in:
ayflying
2025-07-24 18:33:54 +08:00
parent 90b72129a5
commit 7c19a66cb5
6 changed files with 36 additions and 12 deletions

View File

@@ -1,15 +1,15 @@
package vivo
type Pay struct {
AppId string
AppKey string
AppSecret string
AppId string
AppKey string
//AppSecret string
}
func New(appId, appKey, appSecret string) (client *Pay) {
func New(cfg *Pay) (client *Pay) {
return &Pay{
AppId: appId,
AppKey: appKey,
AppSecret: appSecret,
AppId: cfg.AppId,
AppKey: cfg.AppKey,
//AppSecret: cfg.AppSecret,
}
}