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