Skip to content

Commit

Permalink
fixed bug
Browse files Browse the repository at this point in the history
  • Loading branch information
blusewang committed Dec 15, 2020
1 parent 7030774 commit f672e7e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
2 changes: 2 additions & 0 deletions mch.go
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,8 @@ func (ma MchAccount) OrderSign(or mch_api.PayUnifiedOrderRes) map[string]interfa
data["signType"] = "MD5"
data["paySign"] = ma.orderSign(data)
delete(data, "appId")
data["timestamp"] = data["timeStamp"]
delete(data, "timeStamp")
return data
}

Expand Down
1 change: 1 addition & 0 deletions mch_api/structs.go
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,7 @@ func (m MchBaseResponse) ToError() error {
// 不设置,或设置为"N",为普通定单
type PayUnifiedOrderData struct {
MchBase
Openid string `xml:"openid,omitempty"`
DeviceInfo string `xml:"device_info"`
Body string `xml:"body"`
OutTradeNo string `xml:"out_trade_no"`
Expand Down

0 comments on commit f672e7e

Please sign in to comment.