Skip to content

Commit

Permalink
v1.5.69
Browse files Browse the repository at this point in the history
  • Loading branch information
iGoogle-ink committed Dec 29, 2021
1 parent 0574bd3 commit d54d25a
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 2 deletions.
2 changes: 1 addition & 1 deletion constant.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ const (
OK = "OK"
DebugOff = 0
DebugOn = 1
Version = "1.5.68"
Version = "1.5.69"
)

type DebugSwitch int8
4 changes: 4 additions & 0 deletions release_note.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
版本号:Release 1.5.69
修改记录:
(1) 微信V3:修改 client.V3RefundQuery()、增加入参参数,适配 服务商 模式

版本号:Release 1.5.68
修改记录:
(1) 微信V3:修复 client.V3ComplaintResponse()、client.V3ComplaintComplete(), complaintId 参数类型错误问题
Expand Down
6 changes: 5 additions & 1 deletion wechat/v3/refund.go
Original file line number Diff line number Diff line change
Expand Up @@ -37,11 +37,15 @@ func (c *ClientV3) V3Refund(ctx context.Context, bm gopay.BodyMap) (wxRsp *Refun
}

// 查询单笔退款API
// 注意:商户查询时,bm 可传 nil;服务商时,传相应query参数
// Code = 0 is success
// 商户文档:https://pay.weixin.qq.com/wiki/doc/apiv3/apis/chapter3_1_10.shtml
// 服务商文档:https://pay.weixin.qq.com/wiki/doc/apiv3_partner/apis/chapter4_1_10.shtml
func (c *ClientV3) V3RefundQuery(ctx context.Context, outRefundNo string) (wxRsp *RefundQueryRsp, err error) {
func (c *ClientV3) V3RefundQuery(ctx context.Context, outRefundNo string, bm gopay.BodyMap) (wxRsp *RefundQueryRsp, err error) {
uri := fmt.Sprintf(v3DomesticRefundQuery, outRefundNo)
if bm != nil {
uri = fmt.Sprintf(v3DomesticRefundQuery, outRefundNo) + "?" + bm.EncodeURLParams()
}
authorization, err := c.authorization(MethodGet, uri, nil)
if err != nil {
return nil, err
Expand Down

0 comments on commit d54d25a

Please sign in to comment.