Skip to content

Commit 1a47cca

Browse files
authored
Merge pull request #11 from Chisonline/master
修正了src/pay.rs中trait Payer的trade_query接口名称拼写错误
2 parents 5c55c7c + 69df06c commit 1a47cca

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/pay.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ pub trait Payer {
3939

4040
fn trade_page_pay(&self, biz_content: &TradePagePayBiz) -> Result<String>;
4141

42-
fn trede_query(&self, biz_content: &TradeQueryBiz) -> Result<TradeQueryResponse>;
42+
fn trade_query(&self, biz_content: &TradeQueryBiz) -> Result<TradeQueryResponse>;
4343

4444
fn trade_cancel(&self, biz_content: &TradeCancelBiz) -> Result<TradeCancelResponse>;
4545

@@ -196,7 +196,7 @@ impl Payer for PayClient {
196196
/// <https://opendocs.alipay.com/apis/api_1/alipay.trade.query>
197197
///
198198
/// alipay.trade.query(统一收单线下交易查询)
199-
fn trede_query(&self, biz_content: &TradeQueryBiz) -> Result<TradeQueryResponse> {
199+
fn trade_query(&self, biz_content: &TradeQueryBiz) -> Result<TradeQueryResponse> {
200200
let body = self.do_alipay(biz_content)?;
201201
let res: TradeQueryResponse = serde_json::from_slice(&body)?;
202202
if res.response.code != Some("10000".to_string()) {

0 commit comments

Comments
 (0)