klover2 / wechatpay-node-v3-ts

微信支付v3
MIT License
527 stars 81 forks source link

调用回调解密方法decipher_gcm时报错缺少key #64

Closed ngnwg closed 3 months ago

ngnwg commented 7 months ago

/root/wechat/wechat-server/node_modules/wechatpay-node-v3/dist/index.js:323 throw new Error('缺少key'); ^

Error: 缺少key at Pay.decipher_gcm (/root/wechat/wechat-server/node_modules/wechatpay-node-v3/dist/index.js:323:19) at /root/wechat/wechat-server/node_modules/wechatpay-node-v3/dist/index.js:162:64 at Array.forEach () at Pay. (/root/wechat/wechat-server/node_modules/wechatpay-node-v3/dist/index.js:161:34) at step (/root/wechat/wechat-server/node_modules/wechatpay-node-v3/dist/index.js:59:23) at Object.next (/root/wechat/wechat-server/node_modules/wechatpay-node-v3/dist/index.js:40:53) at fulfilled (/root/wechat/wechat-server/node_modules/wechatpay-node-v3/dist/index.js:31:58) at processTicksAndRejections (node:internal/process/task_queues:96:5)

klover2 commented 6 months ago

/root/wechat/wechat-server/node_modules/wechatpay-node-v3/dist/index.js:323 throw new Error('缺少key'); ^

Error: 缺少key at Pay.decipher_gcm (/root/wechat/wechat-server/node_modules/wechatpay-node-v3/dist/index.js:323:19) at /root/wechat/wechat-server/node_modules/wechatpay-node-v3/dist/index.js:162:64 at Array.forEach () at Pay. (/root/wechat/wechat-server/node_modules/wechatpay-node-v3/dist/index.js:161:34) at step (/root/wechat/wechat-server/node_modules/wechatpay-node-v3/dist/index.js:59:23) at Object.next (/root/wechat/wechat-server/node_modules/wechatpay-node-v3/dist/index.js:40:53) at fulfilled (/root/wechat/wechat-server/node_modules/wechatpay-node-v3/dist/index.js:31:58) at processTicksAndRejections (node:internal/process/task_queues:96:5)

请使用版本2.1.8 同时检查你的key 是否传了

image