diff --git a/extend/payment/WeixinMini.php b/extend/payment/WeixinMini.php index 66b55e68bbd7afb81cf0e433a1ac302b95f476ae..6bc34eb99f7f1c13896c9df2a4c185adc88ec36b 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']) ? '' : $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));