|
|
@@ -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
|
|
|
|
|
|
}
|