From 3d988667c907feb33c94373e0a83ec3f285fc813 Mon Sep 17 00:00:00 2001 From: TheNorthMemory Date: Tue, 7 May 2024 14:17:37 +0800 Subject: [PATCH] typo `outTradeNo.$out_trade_no$.close` --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 8e05f9b..9fae033 100644 --- a/README.md +++ b/README.md @@ -290,11 +290,11 @@ wxpay.v3.pay.transactions.id._transaction_id_ // _placeholder_ 语法糖会转 ### 关闭订单 ```js -wxpay.v3.pay.transactions.outTradeNo.$transaction_id$.close // $placeholder$ 语法糖会转换成 '{placeholder}' 格式 +wxpay.v3.pay.transactions.outTradeNo.$out_trade_no$.close // $placeholder$ 语法糖会转换成 '{placeholder}' 格式 .post({ mchid: '1230000109' }, { - transaction_id: '1217752501201407033233368018' + out_trade_no: 'P1217752501201407033233368018' //当商户订单号有大写字符时,只能这样参数化传递 }) .then(({status, statusText}) => console.info(status, statusText)) .catch(({response: {status, statusText, data}}) => console.error(status, statusText, data))