This commit is contained in:
gongfuxiang
2019-01-08 01:42:45 +08:00
parent 967d4e3508
commit 033ec293bf

View File

@ -212,7 +212,7 @@ class WeixinMini
*/
public function Respond($params = [])
{
$result = empty($GLOBALS['HTTP_RAW_POST_DATA']) ? '' : $this->XmlToArray($GLOBALS['HTTP_RAW_POST_DATA']);
$result = empty($GLOBALS['HTTP_RAW_POST_DATA']) ? file_get_contents('php://input') : $this->XmlToArray($GLOBALS['HTTP_RAW_POST_DATA']);
file_put_contents(ROOT.'gggggg.txt', json_encode($result));