Browse Source

更改app支付 package签名

abiao 4 years ago
parent
commit
e76a53ce13
1 changed files with 2 additions and 1 deletions
  1. 2 1
      go/gopath/src/fohow.com/libs/wx_mp/pay.go

+ 2 - 1
go/gopath/src/fohow.com/libs/wx_mp/pay.go

@@ -162,8 +162,9 @@ func GetAppPayData(outTradeNo string, totalPrice int64, body, notifyUrl, remoteI
 	ret = map[string]string{
 		"appId":     appId,
 		"partnerId": outTradeNo,
-		"timeStamp": fmt.Sprintf("%d", time.Now().Unix()),
 		"prepayId":  prepayId,
+		"mch_id":    mechantInfo.MchId,
+		"timeStamp": fmt.Sprintf("%d", time.Now().Unix()),
 		"signType":  "MD5",
 		"nonceStr":  nonce_str}
 	ret["paySign"] = mch.Sign(ret, mechantInfo.ApiKey, nil)