1.接收不到客户端传入的消息
$dataFromClient = $GLOBALS["HTTP_RAW_POST_DATA"];//php5用这个,php7已废弃,需要改成:
$dataFromClient = file_get_contents("php://input");
2.配置问题
$WxApi ->valid();//使用valid进行验证
3.消息自动恢复功能
把valid方法进行注释,那么这时才能正常使用自动回复功能