fix: 富友预下单补充必填字段 txn_begin_ts(交易起始时间)
All checks were successful
构建并部署到测试环境(无 SSH) / build-and-deploy (push) Successful in 7m6s

This commit is contained in:
2026-03-30 12:23:50 +08:00
parent 0c82ae2b73
commit 8296742cce
2 changed files with 3 additions and 0 deletions

View File

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