mirror of
https://github.com/silenceper/wechat.git
synced 2026-02-04 12:52:27 +08:00
go fmt
This commit is contained in:
16
pay/pay.go
16
pay/pay.go
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user