Skip to content

Commit

Permalink
Merge pull request #473 from ArtisanCloud/develop
Browse files Browse the repository at this point in the history
fix(payemnt): QueryOutBatchNoDetail with get method
  • Loading branch information
Matrix-X committed Apr 14, 2024
2 parents 4aad29d + fb5eb09 commit fb4f16b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/payment/transfer/batch.go
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ func (comp *BatchClient) QueryOutBatchNoDetail(ctx context.Context, outBatchNO s
result := &response.ResponseOutBatchNODetail{}

endpoint := fmt.Sprintf("/%s/transfer/batches/out-batch-no/%s/details/out-detail-no/%s", comp.Version, outBatchNO, outDetailNO)
_, err := comp.Request(ctx, comp.Wrap(endpoint), nil, http.MethodPost, &object.HashMap{}, false, nil, result)
_, err := comp.Request(ctx, comp.Wrap(endpoint), nil, http.MethodGet, &object.HashMap{}, false, nil, result)
return result, err
}

Expand Down

0 comments on commit fb4f16b

Please sign in to comment.