diff --git a/extend/payment/WeixinMini.php b/extend/payment/WeixinMini.php index 6bc34eb99f7f1c13896c9df2a4c185adc88ec36b..16d634a0805666c35f9e254f942db7261d46918a 100644 --- a/extend/payment/WeixinMini.php +++ b/extend/payment/WeixinMini.php @@ -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));