From 8d5112c619e40f149fd78ae67cd8de0e0491344b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=8B=8F=E5=B0=B9=E5=B2=9A?= <770236076@qq.com> Date: Mon, 23 Nov 2020 16:03:38 +0800 Subject: [PATCH] aa --- platformapi/wxpayapi/wxpayapi.go | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/platformapi/wxpayapi/wxpayapi.go b/platformapi/wxpayapi/wxpayapi.go index a2245759..ae44ff5a 100644 --- a/platformapi/wxpayapi/wxpayapi.go +++ b/platformapi/wxpayapi/wxpayapi.go @@ -175,8 +175,8 @@ type CreateOrderParam struct { TradeType string `json:"trade_type" xml:"trade_type"` TotalFee int `json:"total_fee" xml:"total_fee"` - SubAppID string `json:"subAppID" xml:"sub_appid,omitempty"` - SubMchID string `json:"subMchID" xml:"sub_mch_id,omitempty"` + // SubAppID string `json:"sub_appid" xml:"sub_appid,omitempty"` + SubMchID string `json:"sub_mch_id" xml:"sub_mch_id,omitempty"` Detail CData `json:"detail.omitempty" xml:"detail,omitempty"` Attach string `json:"attach,omitempty" xml:"attach,omitempty"` FeeType string `json:"fee_type,omitempty" xml:"fee_type,omitempty"` @@ -442,7 +442,6 @@ func (a *API) signParam(signType string, params map[string]interface{}) (sig str sort.Sort(sort.StringSlice(valueList)) valueList = append(valueList, fmt.Sprintf("key=%s", a.appKey)) sig = strings.Join(valueList, "&") - fmt.Println("tettttttttttttttttttttttttttttttttttttttttt", sig) var binSig []byte if signType == sigTypeSha256 { mac := hmac.New(sha256.New, []byte(a.appKey))