Skip to content

Commit 3108aa3

Browse files
committed
chore: 删除 aes 加密文档入口(功能未实现)
1 parent 4c8a426 commit 3108aa3

File tree

4 files changed

+5
-4
lines changed

4 files changed

+5
-4
lines changed

README.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,5 +43,4 @@ const result = await alipaySdk.exec('alipay.system.oauth.token', {
4343
- [不包含业务参数](https://www.yuque.com/chenqiu/alipay-node-sdk/without_biz_content)
4444
- [上传文件](https://www.yuque.com/chenqiu/alipay-node-sdk/file_upload)
4545
- [页面类接口调用](https://www.yuque.com/chenqiu/alipay-node-sdk/page_api)
46-
- [AES 加密](https://www.yuque.com/chenqiu/alipay-node-sdk/aes)
4746
- [通知验签](https://www.yuque.com/chenqiu/alipay-node-sdk/msg_verify)

lib/alipay.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -257,6 +257,8 @@ class AlipaySdk {
257257
return `${key}=${decodeURIComponent(value)}`;
258258
}).join('&');
259259

260+
console.log('>>>>>> signContent: ', signContent);
261+
260262
const verifier = crypto.createVerify(ALIPAY_ALGORITHM_MAPPING[signType]);
261263

262264
return verifier.update(signContent, 'utf8').verify(this.config.alipayPublicKey, signStr, 'base64');

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "alipay-sdk",
3-
"version": "3.0.7",
3+
"version": "3.0.8",
44
"description": "蚂蚁金服开放平台 node sdk",
55
"main": "lib/alipay.js",
66
"scripts": {

test/alipay.test.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -861,7 +861,7 @@ describe('sdk', function() {
861861
buyer_id: '2088102534368455',
862862
invoice_amount: '0.10',
863863
notify_id: '2019081500222153759068450559621257',
864-
fund_bill_list: [{amount:"0.10",fundChannel:"ALIPAYACCOUNT"}],
864+
fund_bill_list: '[{amount:"0.10",fundChannel:"ALIPAYACCOUNT"}]',
865865
notify_type: 'trade_status_sync',
866866
trade_status: 'TRADE_SUCCESS',
867867
receipt_amount: '0.10',
@@ -878,7 +878,7 @@ describe('sdk', function() {
878878
auth_app_id: '2019073166072302',
879879
buyer_logon_id: 'xud***@126.com',
880880
point_amount: '0.00' }
881-
881+
882882
sdk.checkNotifySign(postData).should.eql(true);
883883
});
884884

0 commit comments

Comments
 (0)