解决了没?我也一直很困惑
企业微信被动回复消息怎么调试就是没消息回复?背景:我有6个企业微信自建应用,原来自建应用被动回复消息一直都是能用的,很长时间没有管了,近期发现被动回复消息没有反应,是所有自建应用都没有反应。研究了很久也搞不定,求助在线的技术大拿。 企业ID:ww0c6aa217f5ce0d64 AgentId:1000010 我拿其中一个应用进行了不断调试,打印输出信息,具体如下: 1、企业微信POST给我服务器的内容: <xml><ToUserName><![CDATA[ww0c6aa217f5ce0d64]]></ToUserName><Encrypt><![CDATA[cQSYl9JjRDKgRcJL9sZjOg9r9rAqsQdlofRJ2KTbZOgpq0ybtp4g93jkR6lj4MqKKEUazcECL+MkeGSLX6ul4+ADxUMkG6a8mp0QriugdMOTpH2fzdtjEvQDqQgga8dttOaT1fCRvE71U6zYscLhMETkmUTBLM7dtcRWRI1wBCdGarKIceUtm9ofDxqGWGaJyMJ4qj7n1tSyJMbbREL7bZx5r8QuMue2z/qyLifMp7xlh1T3yWfPKvWS/Te5ccVcObs0GqRnq6cM63MaK9tRXqbkLSt4GxD7MSzo5gD6vjXEi+X6SsHpufC/fw+oTWKjPE+85yjeW8j6RAV6uNZ43z/+64QcfZS7Gla/m6Ja+60WkxAfQXxwOFGzHsYXcugB65xG8zFizx6ugJH+U448iWt7Xsv1hkOXTpbe7B21sr3UPjC7NfPV0QoO6ZsxdSleY8sD6nzucOKu0Rc20b+uHw==]]></Encrypt><AgentID><![CDATA[1000010]]></AgentID></xml> 2、我服务器解密出的内容: <xml><ToUserName><![CDATA[ww0c6aa217f5ce0d64]]></ToUserName><FromUserName><![CDATA[TangKaiTian]]></FromUserName><CreateTime>1640173779</CreateTime><MsgType><![CDATA[text]]></MsgType><Content><![CDATA[test]]></Content><MsgId>7044492743810106372</MsgId><AgentID>1000010</AgentID></xml> 3、我服务器构建的响应XML <xml><ToUserName><![CDATA[TangKaiTian]]></ToUserName><FromUserName><![CDATA[ww0c6aa217f5ce0d64]]></FromUserName><CreateTime>1640173779</CreateTime><MsgType><![CDATA[text]]></MsgType><Content><![CDATA[test]]></Content></xml> 4、响应包加密后的内容 <xml> <Encrypt><![CDATA[4Caw0qkwJavEbhSxbpICw1nxXPZVsjK0HoN2JKuqHjTvUMqwJaVv0yDQUrlAySPNWvdF4j94OsD1aVJcHDcfm2oItfAPFZyYJBtwKo0H4/g0nvyptAYvBIw+NmIEpqP3k25UUji649bbz8mTiWwRIYX5Q8p4FSVH8w4MIL9JeH1DooNmjXsk6qvjvwoPVOGckiaMAbG5SCV+031cI2TqRQLIsONUBCxFwCLgyIcKAu9i6RUAzKus5HQ9z2CSEGEtl7GtzGAuV7XvJri4Hzzt5CwMxnBgGosVC5+riY67d8RV5BzXBWsVVbWzROm/MW3JOLZF766cZmO/2BlA2oOd0w0KISdupmhIk/txO1Vul8XcDzYdBgVZIihKwY0+JyhQ]]></Encrypt> <MsgSignature><![CDATA[782c2358947a53737e32bafc6ff824f4ad05f810]]></MsgSignature> <TimeStamp>1640173779</TimeStamp> <Nonce><![CDATA[1640993238]]></Nonce> </xml> 5、通过输出语句,也不知企业微信判断有问题,还是什么原因,就是收不到消息。下面的$errCode通过打印也是0,print($sEncryptMsg)也能打印出上面的加密内容,请大虾指导…………。 $sEncryptMsg = ""; //xml格式的密文 $errCode = $wxcpt->EncryptMsg($sRespData, $sReqTimeStamp, $sReqNonce, $sEncryptMsg); if ($errCode == 0) { print($sEncryptMsg); } else { print("ERR: " . $errCode . "\n\n"); }
2022-03-20解决了吗?我也是同样问题
消息推送-被动回复消息收不到用户给应用发送消息,根据消息自动回复功能,<xml> <Encrypt><![CDATA[z3+n9sO5Dg1aCq/IFJHEa75YVqsqIElkMjMA7yS7Q+JNgNZP60yy/Hqg1nChrUseqRT9V9Q6h3qMo14Dk/uwP2ZTyVyhYeKWtoUEZzeEFdkBy59iyJdkuKOdkYbwSFPrmEhf9h9YSW4mZF/hcAad9F0bz4V6PGq7PstoNY34FE9CUKdOYqf9ygxboP176wRqvNWmdNLlsMqS2VGa4jztcQkd9RyMSVS9AXxRAHeGtTvPwXTCNKFlGuLXQePtw/yjOd5AwE+JpXzNp3efW4ntAV28Vz5rvUwim7+LRZT5UqcNp/g2TEwNKc3bieVxEzLD+0MMA1BbeWPzW5Rsm9CkIIe5q0cSH4FzcAOozxih5BHc3T9TiyANN1aXl/UQ32zsFBkL1Nss585Dx7ip6IHMDXzQ4H0bwqYLg4cqI0wvJ3lkZdKJ8S7aoh4MKEbAG/uWR5Z7vVIqlNDBXj2sISmbrLOQ2VyNmHDJ86qmI0cERLYf6XtVrHEEo3gzuLfk8kvksEwcZ/jOtGl9hZx65QG+xNbl4VR1mdXBaNnP7J0alCSoQy0a3JmbW0ze5S70LyajCyS2zlKtSgv74Aextt+SPQ==]]></Encrypt> <MsgSignature><![CDATA[f15d21b74b359a8ad820f3921fda86b0e1fa8ede]]></MsgSignature> <TimeStamp>1610111832</TimeStamp> <Nonce><![CDATA[1609621853]]></Nonce> </xml> 这是被动回复的消息,但收不到,而且微信服务器不断给回调url发消息
2022-01-25