awesome-wechat-sdk
Advanced tools
Comparing version 2.9.0 to 2.9.1
@@ -145,8 +145,6 @@ /// <reference types="node" /> | ||
getAppPaySign(prepayId: string, signType?: 'MD5' | 'HMAC-SHA256'): Promise<{ | ||
appid: string; | ||
partnerid: string; | ||
prepayid: string; | ||
partnerId: string; | ||
package: string; | ||
noncestr: string; | ||
timestamp: number; | ||
nonceStr: string; | ||
timeStamp: number; | ||
sign: string; | ||
@@ -153,0 +151,0 @@ }>; |
@@ -199,3 +199,9 @@ "use strict"; | ||
const sign = await this.getSign(params, signType); | ||
return Object.assign({}, params, { sign }); | ||
return { | ||
partnerId: this.mchid, | ||
package: packageStr, | ||
nonceStr, | ||
timeStamp, | ||
sign | ||
}; | ||
} | ||
@@ -202,0 +208,0 @@ async queryOrder(query, signType = 'MD5') { |
{ | ||
"name": "awesome-wechat-sdk", | ||
"version": "2.9.0", | ||
"version": "2.9.1", | ||
"description": "an awesome sdk for wechat oauth, api and message middleware", | ||
@@ -5,0 +5,0 @@ "scripts": { |
@@ -325,8 +325,6 @@ import * as crypto from 'crypto'; | ||
async getAppPaySign(prepayId: string, signType: 'MD5' | 'HMAC-SHA256' = 'MD5'): Promise<{ | ||
appid: string, | ||
partnerid: string, | ||
prepayid: string, | ||
partnerId: string, | ||
package: string, | ||
noncestr: string, | ||
timestamp: number, | ||
nonceStr: string, | ||
timeStamp: number, | ||
sign: string | ||
@@ -348,3 +346,6 @@ }> { | ||
return { | ||
...params, | ||
partnerId: this.mchid, | ||
package: packageStr, | ||
nonceStr, | ||
timeStamp, | ||
sign | ||
@@ -351,0 +352,0 @@ }; |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
322944
4889