diff --git a/extend/payment/WeixinMini.php b/extend/payment/WeixinMini.php index 6bc34eb99..16d634a08 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));