Skip to content

Commit 83b4cba

Browse files
authored
Merge pull request #638 from ArtisanCloud/develop
fix(payment): QueryOutBill and QueryTransferBill with get method
2 parents 0e1d9fe + d552146 commit 83b4cba

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ go 1.23.0
44

55
// replace github.com/ArtisanCloud/PowerLibs/v3 => ../PowerLibs
66

7-
//replace github.com/ArtisanCloud/PowerSocialite/v3 => ../PowerSocialite
7+
// replace github.com/ArtisanCloud/PowerSocialite/v3 => ../PowerSocialite
88

99
require (
1010
github.com/ArtisanCloud/PowerLibs/v3 v3.3.2

src/payment/fundApp/client.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ func (comp *Client) QueryOutBill(ctx context.Context, outBillNO string) (*respon
4949
result := &response.ResponseQueryOutBill{}
5050

5151
endpoint := comp.Wrap(fmt.Sprintf("/v3/fund-app/mch-transfer/transfer-bills/out-bill-no/%s", outBillNO))
52-
_, err := comp.SafeRequestV3(ctx, endpoint, nil, http.MethodPost, &object.HashMap{}, nil, result)
52+
_, err := comp.SafeRequestV3(ctx, endpoint, nil, http.MethodGet, &object.HashMap{}, nil, result)
5353

5454
return result, err
5555
}
@@ -61,7 +61,7 @@ func (comp *Client) QueryTransferBill(ctx context.Context, transferBillNO string
6161
result := &response.ResponseQueryTransferBill{}
6262

6363
endpoint := comp.Wrap(fmt.Sprintf("/v3/fund-app/mch-transfer/transfer-bills/transfer-bill-no/%s", transferBillNO))
64-
_, err := comp.SafeRequestV3(ctx, endpoint, nil, http.MethodPost, &object.HashMap{}, nil, result)
64+
_, err := comp.SafeRequestV3(ctx, endpoint, nil, http.MethodGet, &object.HashMap{}, nil, result)
6565

6666
return result, err
6767
}

0 commit comments

Comments
 (0)