Skip to content

Commit 75a0e9b

Browse files
author
Matrix-X
committed
feat(payment): add fund app client
1 parent 09310f6 commit 75a0e9b

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

src/payment/application.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -291,6 +291,8 @@ func (app *Payment) GetComponent(name string) interface{} {
291291
return app.RedPack
292292
case "Transfer":
293293
return app.Transfer
294+
case "FundApp":
295+
return app.FundApp
294296
case "Reverse":
295297
return app.Reverse
296298
case "ProfitSharing":

src/payment/fundApp/client.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,13 +30,13 @@ func (comp *Client) TransferBills(ctx context.Context, data *request.RequestTran
3030

3131
result := &response.ResponseTransferBills{}
3232

33-
params, err := object.StructToHashMap(data)
33+
params, err := object.StructToStringMap(data)
3434
if err != nil {
3535
return nil, err
3636
}
3737

3838
endpoint := comp.Wrap("/v3/fund-app/mch-transfer/transfer-bills")
39-
_, err = comp.SafeRequest(ctx, endpoint, params, http.MethodPost, &object.HashMap{}, nil, result)
39+
_, err = comp.SafeRequestV3(ctx, endpoint, params, http.MethodPost, &object.HashMap{}, nil, result)
4040

4141
return result, err
4242
}

0 commit comments

Comments
 (0)