fix: 富友预下单补充必填字段 txn_begin_ts(交易起始时间)
All checks were successful
构建并部署到测试环境(无 SSH) / build-and-deploy (push) Successful in 7m6s
All checks were successful
构建并部署到测试环境(无 SSH) / build-and-deploy (push) Successful in 7m6s
This commit is contained in:
@@ -18,6 +18,7 @@ type WxPreCreateRequest struct {
|
||||
OrderAmt string `xml:"order_amt"` // 订单金额(分)
|
||||
GoodsDesc string `xml:"goods_des"` // 商品描述
|
||||
TermIp string `xml:"term_ip"` // 终端IP
|
||||
TxnBeginTs string `xml:"txn_begin_ts"` // 交易起始时间,格式 yyyyMMddHHmmss
|
||||
NotifyUrl string `xml:"notify_url"` // 回调地址
|
||||
SubAppid string `xml:"sub_appid"` // 子应用ID(公众号/小程序AppID)
|
||||
SubOpenid string `xml:"sub_openid"` // 用户OpenID
|
||||
|
||||
@@ -2,6 +2,7 @@ package fuiou
|
||||
|
||||
import (
|
||||
"fmt"
|
||||
"time"
|
||||
|
||||
"go.uber.org/zap"
|
||||
)
|
||||
@@ -22,6 +23,7 @@ func (c *Client) WxPreCreate(orderNo, amount, goodsDesc, termIP, tradeType, subA
|
||||
OrderAmt: amount,
|
||||
GoodsDesc: goodsDesc,
|
||||
TermIp: termIP,
|
||||
TxnBeginTs: time.Now().Format("20060102150405"),
|
||||
NotifyUrl: c.NotifyURL,
|
||||
SubAppid: subAppid,
|
||||
SubOpenid: subOpenid,
|
||||
|
||||
Reference in New Issue
Block a user