Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Develop #32

Merged
merged 4 commits into from
Dec 7, 2023
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
Update wxpay.rs
更新query_order_v3为Get请求
  • Loading branch information
Lethannn committed Dec 6, 2023
commit d908ad8668abfe0f0d787a43f9529acc3aeb1da7
3 changes: 2 additions & 1 deletion src/wechat/pay/api/wxpay.rs
Original file line number Diff line number Diff line change
Expand Up @@ -317,7 +317,8 @@ impl<'a, T: SessionStore> WxPay<'a, T> {
/// ```
///
pub async fn query_order_v3(&self, params: WechatQueryOrderRequestV3) -> LabradorResult<WechatQueryOrderResponseV3> {
self.client.post_v3(params.mchid.to_owned().into(), WechatPayMethod::WxPay(WxPayMethod::QueryOrderV3((params.out_trade_no.to_owned(), params.out_trade_no.to_owned()))), vec![], "", RequestType::Json)
let mchid = params.mchid.clone();
self.client.get_v3(WechatPayMethod::WxPay(WxPayMethod::QueryOrderV3((params.out_trade_no.to_owned(), params.out_trade_no.to_owned()))), vec![("mchid",mchid.as_str())], RequestType::Json)
.await?.json::<WechatQueryOrderResponseV3>()
}

Expand Down