Browse Source

更改app支付 package签名

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

+ 5 - 6
go/gopath/src/fohow.com/libs/wx_mp/pay.go

@@ -160,14 +160,13 @@ func GetAppPayData(outTradeNo string, totalPrice int64, body, notifyUrl, remoteI
 	us := strings.Split(u, "-")
 	nonce_str := strings.Join(us, "")
 	ret = map[string]string{
-		"appId":     appId,
-		"partnerId": outTradeNo,
-		"prepayId":  prepayId,
-		"mch_id":    mechantInfo.MchId,
+		"appid":     appId,
+		"partnerid": outTradeNo,
+		"prepayid":  prepayId,
+		"package":   "Sign=WXPay",
 		"timeStamp": fmt.Sprintf("%d", time.Now().Unix()),
-		"signType":  "MD5",
 		"nonceStr":  nonce_str}
-	ret["paySign"] = mch.Sign(ret, mechantInfo.ApiKey, nil)
+	ret["pasignySign"] = mch.Sign(ret, mechantInfo.ApiKey, nil)
 	return ret
 
 }