首先选择回头模式,然后生成Tokey EncodingAESKey。
把附件的代码上传到网站目录下。
然后修改 Sample.php ,最后验证就可以了。
include_once "WXBizMsgCrypt.php";
$encodingAesKey = "xxxxxxxxxxxxxxxxxxxxxxx"; //替换成上面生成的
$token = "xxxxxx"; //替换成上面生成的
$corpId = "xxxxxxxxxxxxxxxx"; //#替换成上面生成自己的corpID
转载于:https://blog.51cto.com/hequan/1898947