This commit is contained in:
2026-08-18 17:32:15 +08:00
parent 656a921ff0
commit 143df60485
2 changed files with 3 additions and 2 deletions

View File

@@ -12,7 +12,7 @@ import (
// reservedExpireMinute: 订单有效期分钟reserved 字段,不参与签名)。
func (c *Client) PreCreate(orderNo, amount, goodsDesc, termIP, orderType, reservedExpireMinute string) (*PreCreateResponse, error) {
req := &PreCreateRequest{
Version: "1.0",
Version: "1",
InsCd: c.InsCd,
MchntCd: c.MchntCd,
TermId: c.TermId,
@@ -59,7 +59,7 @@ func (c *Client) PreCreate(orderNo, amount, goodsDesc, termIP, orderType, reserv
// orderType: 订单类型,须与下单时一致。
func (c *Client) CommonQuery(orderNo, orderType string) (*CommonQueryResponse, error) {
req := &CommonQueryRequest{
Version: "1.0",
Version: "1",
InsCd: c.InsCd,
MchntCd: c.MchntCd,
TermId: c.TermId,

View File

@@ -103,6 +103,7 @@ type PreCreateRequest struct {
NotifyUrl string `xml:"notify_url"` // 回调地址
GoodsDesc string `xml:"goods_des"` // 商品描述
GoodsDetail string `xml:"goods_detail"` // 商品详情(可选)
GoodsTag string `xml:"goods_tag"` // 商品标记(可选,非 reserved参与签名
AddnInf string `xml:"addn_inf"` // 附加数据(可选)
ReservedExpireMinute string `xml:"reserved_expire_minute"` // 订单有效期分钟reserved不参与签名
}