修复
This commit is contained in:
@@ -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,
|
||||
|
||||
@@ -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,不参与签名)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user