hpyer / node-easywechat

EasyWeChat for Node.js
MIT License
138 stars 18 forks source link

微信 加密方式错误,注意该问题不是bug,但是很多人会犯错 #65

Closed ValueLan closed 9 months ago

ValueLan commented 9 months ago

https://github.com/hpyer/node-easywechat/blob/04ae22158f81aa223d653bf4936214fd8499491c/src/Core/Support/RSA.ts#L49

hashType='sha1'

ValueLan commented 9 months ago

个人建议 这里, 改写一下默认为sha1 https://github.com/hpyer/node-easywechat/blob/04ae22158f81aa223d653bf4936214fd8499491c/src/Pay/Encryptor.ts#L21

hpyer commented 9 months ago

好的,微信是真坑啊~😂