Skip to content

Commit

Permalink
chore(doc): renew without v2's sample, ref #20
Browse files Browse the repository at this point in the history
  • Loading branch information
TheNorthMemory committed Apr 20, 2021
1 parent c7e262c commit e621eae
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -800,6 +800,9 @@ Wechatpay.client.v2.post('https://fraud.mch.weixin.qq.com/risk/getpublickey', {
mch_id: '1900000109',
nonce_str: Formatter.nonce(),
sign_type: 'HMAC-SHA256',
}, {
// 返回值无`sign`字段,无需数据校验
transformResponse: [Transformer.toObject],
})
.then(({data}) => console.info(data))
.catch(({response}) => console.error(response))
Expand Down

0 comments on commit e621eae

Please sign in to comment.