From c0c976c72e7bf204bf93d3a44a58e69f62ff615d Mon Sep 17 00:00:00 2001 From: smalls0098 Date: Tue, 4 Mar 2025 11:45:59 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E8=8B=B9=E6=9E=9C=E9=80=80=E6=AC=BE?= =?UTF-8?q?=E5=8E=86=E5=8F=B2=E6=9F=A5=E8=AF=A2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- apple/refund.go | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/apple/refund.go b/apple/refund.go index d6bf0163..0b67310b 100644 --- a/apple/refund.go +++ b/apple/refund.go @@ -12,7 +12,10 @@ import ( // GetRefundHistory Get Refund History // Doc: https://developer.apple.com/documentation/appstoreserverapi/get_refund_history func (c *Client) GetRefundHistory(ctx context.Context, transactionId, revision string) (rsp *RefundHistoryRsp, err error) { - path := fmt.Sprintf(getRefundHistory, transactionId) + "?revision=" + revision + path := fmt.Sprintf(getRefundHistory, transactionId) + if revision != "" { + path = fmt.Sprintf(getRefundHistory, transactionId) + "?revision=" + revision + } res, bs, err := c.doRequestGet(ctx, path) if err != nil { return nil, err