From 143df60485172c8bec4b56e7fb0a390ed2c28851 Mon Sep 17 00:00:00 2001 From: break Date: Tue, 18 Aug 2026 17:32:15 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pkg/fuiou/scan.go | 4 ++-- pkg/fuiou/types.go | 1 + 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/pkg/fuiou/scan.go b/pkg/fuiou/scan.go index c6c811e..577e28a 100644 --- a/pkg/fuiou/scan.go +++ b/pkg/fuiou/scan.go @@ -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, diff --git a/pkg/fuiou/types.go b/pkg/fuiou/types.go index 636cec7..6003f34 100644 --- a/pkg/fuiou/types.go +++ b/pkg/fuiou/types.go @@ -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,不参与签名) }