feat/task1-c-wallet
gongfuxiang 2019-01-08 01:42:45 +08:00
parent 967d4e3508
commit 033ec293bf
1 changed files with 1 additions and 1 deletions

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));