diff --git a/WeChat/Contracts/BasicPushEvent.php b/WeChat/Contracts/BasicPushEvent.php index 473a966..8593693 100644 --- a/WeChat/Contracts/BasicPushEvent.php +++ b/WeChat/Contracts/BasicPushEvent.php @@ -109,6 +109,7 @@ class BasicPushEvent } $this->receive = new DataArray(Tools::xml2arr($this->postxml)); } elseif ($_SERVER['REQUEST_METHOD'] == "GET" && $this->checkSignature()) { + $this->receive = new DataArray([]); if ($showEchoStr && ob_clean()) { echo($this->input->get('echostr')); }