Skip to content

Commit

Permalink
bump to v0.8.5
Browse files Browse the repository at this point in the history
  • Loading branch information
TheNorthMemory committed Mar 9, 2022
1 parent fbccce0 commit eb3aeeb
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 2 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# 变更历史

## v0.8.5 (2022-03-09)
- 优化`README`,增加v2版付款到零钱示例不验签使用方法;
- 解决`CLI`下初始化参数`mchid`必须是字符串类型的遗留问题;

## v0.8.4 (2022-01-27)
- 修正`Hash.md5`当给正确的`key`时,返回错误的签名值问题;

Expand Down
2 changes: 2 additions & 0 deletions bin/cli.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,8 @@ yargs(hideBin(process.argv))
})
.epilog('for more information visit https://github.com/TheNorthMemory/wechatpay-axios-plugin')
.middleware((argv) => {
if (argv.c && argv.c.mchid) { Reflect.set(argv.config, 'mchid', `${argv.config.mchid}`); }

if (argv.c && argv.c.privateKey && argv.c.privateKey !== 'any') {
Reflect.set(argv.config, 'privateKey', readFileSync(argv.c.privateKey));
}
Expand Down
1 change: 0 additions & 1 deletion bin/cli/request.js
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,6 @@ module.exports = {
const {
baseURL, uri, config, method, data, params, headers,
} = argv;
config.mchid = `${config.mchid}`
const responseType = argv.binary && typeof argv.binary === 'boolean' ? 'arraybuffer' : undefined;
const structure = [{ params, headers, responseType }];

Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "wechatpay-axios-plugin",
"version": "0.8.4",
"version": "0.8.5",
"description": "微信支付APIv2及v3 NodeJS SDK,支持CLI模式请求OpenAPI,支持v3证书下载,v2付款码支付、企业付款、退款,企业微信-企业支付-企业红包/向员工付款,v2&v3 Native支付、扫码支付、H5支付、JSAPI/小程序支付、合单支付...",
"main": "index.js",
"typings": "index.d.ts",
Expand Down

0 comments on commit eb3aeeb

Please sign in to comment.