微信授权事件接收ticket,调用的方法:wxBizMsgCrypt.decryptMsg(msgSignature, timestamp, nonce, postData);
推送的postData:
<xml>
<AppId><![CDATA[wx0ac62cdc67578ce8]]></AppId>
<Encrypt><![CDATA[lEbF+xrvjzRLkzNlNVMQ40/Q9ZHz2uJyb2sPsVpkzVX8Skh6WzEK+27ZSW8B/PHzRGl9x9LdhZXJJ1S9cu2h2H+fFkM3EQwKnlxWsy7Sugkd55AktyRnSADUPyzaWPlTCvNlpsD78lESOdragacV1hAFR7DkXcAIZBoKGnvbvlFrXaQZm35dj7DgrgR1452QnuQHNjFC8c6L8XbwtMkLWCnvizQF7g0jko9LTjfkYcx+cGMcJ5A4I2debnWpWOxGIiuWLCQLoF3b9hkDPf0xNYdMCm5t8gATeA1R4W11g1sozkucXP7dpv1nlNh49jQ8RrmS3SMPDVPbY1m39ekx2oNIrt8rI6++jEZ1ysFLsO0UvgTv/dZnSKGQv4H2WjHT03X9e0f+mofMbiGcxWyufpbFSZI9hmC4Q1Wt4FEhL3p3YlBRx80rZ7peuwTqPVAHNgxmopFUe4Bwnrw4iUmWHA==]]></Encrypt>
</xml>
报错信息:
因为推送的明文没有ToUserName元素,导致第48行空指针
是不是我用错方法了