Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

EncryptMsg方法返回结果不正确 #23

Open
thinker2013 opened this issue Nov 21, 2018 · 2 comments
Open

EncryptMsg方法返回结果不正确 #23

thinker2013 opened this issue Nov 21, 2018 · 2 comments

Comments

@thinker2013
Copy link

thinker2013 commented Nov 21, 2018

回复明文:
<xml><ToUserName><![CDATA[隐去]]></ToUserName><FromUserName><![CDATA[隐去]]></FromUserName><CreateTime>1542773288</CreateTime><MsgType><![CDATA[text]]></MsgType><Content><![CDATA[欢迎使用本应用,本应用处于开发完善阶段,您可以留言提出想法建议!]]></Content><MsgId>1234567890123456</MsgId><AgentID>1000028</AgentID></xml>
EncryptMsg返回值:0
<xml> <Encrypt><![CDATA[���(��ǧ!#��V���]]></Encrypt> <MsgSignature><![CDATA[20c7c304ff8347ef4e2f04c772b0b1fc67f73d6e]]></MsgSignature> <TimeStamp>1542773532</TimeStamp> <Nonce><![CDATA[1542988481]]></Nonce> </xml>

@thinker2013
Copy link
Author

问题已经解决
使用 https://wximg.gtimg.com/shake_tv/mpwiki/cryptoDemo.zip 这里的pkcs7Encoder.php替换即可.
请修正!

@Xyelidae
Copy link

有效。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants