Skip to content

Commit

Permalink
Merge pull request #376 from ArtisanCloud/develop
Browse files Browse the repository at this point in the history
fix(payment): query order with mchid
  • Loading branch information
Matrix-X authored Aug 12, 2023
2 parents 010f280 + 7080889 commit 06d5d66
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/payment/order/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ func (comp *Client) Query(ctx context.Context, params *object.HashMap) (*respons
endpoint := (*params)["endpoint"].(string)
endpoint = comp.Wrap(endpoint)
_, err := comp.Request(ctx, endpoint, &object.StringMap{
"appid": config.GetString("app_id", ""),
"mchid": config.GetString("mch_id", ""),
}, http.MethodGet, &object.HashMap{}, false, nil, result)

return result, err
Expand Down

0 comments on commit 06d5d66

Please sign in to comment.