优化微信支付V3版

master
李光春 3 years ago
parent 3b1a41dd7e
commit 3bc7af3d44

@ -1,3 +1,7 @@
## v1.0.23 / 2021-08-18
- 优化微信支付V3版
## v1.0.22 / 2021-08-18
- 增加微信支付V3版

@ -11,5 +11,5 @@
## Install 安装
```Importing
go get -v -u gitee.com/dtapps/go-library@v1.0.22
go get -v -u gitee.com/dtapps/go-library@v1.0.23
```

@ -1,5 +1,5 @@
package go_library
func Version() string {
return "v1.0.22"
return "v1.0.23"
}

@ -32,6 +32,10 @@ type ErrResp struct {
func (app *App) request(url string, params map[string]interface{}) (resp []byte, result ErrResp, err error) {
// common params
params["appid"] = app.AppId
params["mchid"] = app.MchId
canonicalURL := fmt.Sprintf("%s/%s", WechatPayAPIServer, url)
method := "POST"
authorization, _ := app.authorization(method, params, canonicalURL)

@ -6,8 +6,6 @@ import (
)
type PayTransactionsJsapi struct {
Appid string `json:"appid"` //【是】应用ID
Mchid string `json:"mchid"` //【是】直连商户号
Description string `json:"description"` //【是】商品描述
OutTradeNo string `json:"out_trade_no"` //【是】商户订单号
TimeExpire time.Time `json:"time_expire,omitempty"` //【否】交易结束时间

Loading…
Cancel
Save