Skip to content

Commit 57b6fa6

Browse files
authored
Merge pull request #630 from ArtisanCloud/develop
fix(payment): change fundflowbill from post to get method; StreamDown…
2 parents 754e15b + 764f170 commit 57b6fa6

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/payment/bill/client.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ func (comp *Client) GetFlowBill(ctx context.Context, date string, accountType st
5454
}
5555

5656
endpoint := comp.Wrap("/v3/bill/fundflowbill")
57-
_, err := comp.Request(ctx, endpoint, params, http.MethodPost, &object.HashMap{}, false, nil, result)
57+
_, err := comp.Request(ctx, endpoint, params, http.MethodGet, &object.HashMap{}, false, nil, result)
5858

5959
return result, err
6060
}

src/payment/kernel/baseClient.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -495,7 +495,7 @@ func (client *BaseClient) StreamDownload(ctx context.Context, requestDownload *p
495495
config := client.App.GetConfig()
496496

497497
method := http.MethodGet
498-
options, err := client.AuthSignRequest(ctx, config, requestDownload.DownloadURL, method, nil, nil)
498+
options, err := client.AuthSignRequest(ctx, config, requestDownload.DownloadURL, method, nil, &object.HashMap{})
499499
if err != nil {
500500
return 0, err
501501
}

0 commit comments

Comments
 (0)