public function __construct($token, $debug = FALSE)
{
//未通过消息真假性验证
if ($this->isValid() && $this->validateSignature($token)) {
return $_GET['echostr'];
}
//是否打印错误报告
$this->debug = $debug;
//接受并解析微信中心POST发送XML数据
$xml = (array) simplexml_load_string(file_get_contents('php://input'), 'SimpleXMLElement', LIBXML_NOCDATA);
//将数组键名转换为小写
$this->request = array_change_key_case($xml, CASE_LOWER);
}