Skip to content

Commit

Permalink
bump to v0.4.3
Browse files Browse the repository at this point in the history
  • Loading branch information
TheNorthMemory committed Mar 6, 2021
1 parent a241bb4 commit e0ec316
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 3 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ The WeChatPay OpenAPI v2&v3' Smart Development Kit
- [x] 支持微信支付XML风格的接口(通常所说v2)调用,依赖 [node-xml2js](https://github.com/Leonidas-from-XIV/node-xml2js), 示例代码如下
- [x] 支持微信支付APIv2版的 `AES-256-ECB/PKCS7PADDING` 通知消息加/解密
- [x] APIv2 & APIv3 与微信交互的各种数据签名用法示例
- [x] 支持 企业微信-企业支付-企业红包/向员工付款 功能,示例用法及代码如下

## 系统要求

Expand Down
6 changes: 5 additions & 1 deletion index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -153,11 +153,15 @@ export namespace WechatpayAxiosPlugin {
* Calculate the input string with an optional secret `key` in MD5,
* when the `key` is Falsey, this method works as normal `MD5`.
*
* - [agency] is available since v0.4.3, spec @link https://work.weixin.qq.com/api/doc/90000/90135/90281
*
* @param {string|buffer} thing - The input string.
* @param {string} [key] - The secret key string.
* @param {boolean|number|string} [agency = false] - The secret **key** is from wework, placed with `true` or better of the `AgentId` value.
*
* @return {string} - data signature
*/
static md5(thing: string | any, key?: string | undefined): string;
static md5(thing: string | any, key?: string | undefined, agency?: boolean | number | string | undefined): string;
/**
* Calculate the input string with a secret `key` in HMAC-SHA256
* @param {string|buffer} thing - The input string.
Expand Down
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "wechatpay-axios-plugin",
"version": "0.4.2",
"description": "微信支付APIv2及v3 NodeJS SDK,支持v3证书下载,v2付款码支付、企业付款、退款,v2&v3 Native支付、扫码支付、H5支付、小程序支付、合单支付...",
"version": "0.4.3",
"description": "微信支付APIv2及v3 NodeJS SDK,支持v3证书下载,v2付款码支付、企业付款、退款,企业微信-企业支付-企业红包/向员工付款,v2&v3 Native支付、扫码支付、H5支付、JSAPI/小程序支付、合单支付...",
"main": "index.js",
"typings": "index.d.ts",
"files": [
Expand Down

0 comments on commit e0ec316

Please sign in to comment.