1
0
mirror of https://github.com/silenceper/wechat.git synced 2026-02-04 12:52:27 +08:00
This commit is contained in:
silenceper
2019-07-15 18:25:01 +08:00
parent dbb43ac7ad
commit 1a9600b49f

View File

@@ -93,16 +93,16 @@ func (pcf *Pay) PrePayOrder(p *Params) (payOrder PreOrder, err error) {
param["appid"] = pcf.AppID
param["body"] = p.Body
param["mch_id"] = pcf.PayMchID
param["nonce_str"] =nonceStr
param["notify_url"] =pcf.PayNotifyURL
param["out_trade_no"] =p.OutTradeNo
param["spbill_create_ip"] =p.CreateIP
param["total_fee"] =p.TotalFee
param["trade_type"] =p.TradeType
param["nonce_str"] = nonceStr
param["notify_url"] = pcf.PayNotifyURL
param["out_trade_no"] = p.OutTradeNo
param["spbill_create_ip"] = p.CreateIP
param["total_fee"] = p.TotalFee
param["trade_type"] = p.TradeType
param["openid"] = p.OpenID
bizKey := "&key="+pcf.PayKey
str := orderParam(param,bizKey)
bizKey := "&key=" + pcf.PayKey
str := orderParam(param, bizKey)
sign := util.MD5Sum(str)
request := payRequest{
AppID: pcf.AppID,