This commit is contained in:
gongfuxiang
2019-01-08 01:43:42 +08:00
parent 033ec293bf
commit fe2700ae1d

View File

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