浏览代码

更改app支付 package签名

abiao 4 年之前
父节点
当前提交
40d2f9135a
共有 1 个文件被更改,包括 2 次插入2 次删除
  1. 2 2
      go/gopath/src/fohow.com/libs/wx_mp/pay.go

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

@@ -164,8 +164,8 @@ func GetAppPayData(outTradeNo string, totalPrice int64, body, notifyUrl, remoteI
 		"partnerid": outTradeNo,
 		"prepayid":  prepayId,
 		"package":   "Sign=WXPay",
-		"timeStamp": fmt.Sprintf("%d", time.Now().Unix()),
-		"nonceStr":  nonce_str}
+		"timestamp": fmt.Sprintf("%d", time.Now().Unix()),
+		"noncestr":  nonce_str}
 	ret["pasignySign"] = mch.Sign(ret, mechantInfo.ApiKey, nil)
 	return ret