|
@@ -220,10 +220,10 @@ class WxPay {
|
|
|
* @return array
|
|
|
*/
|
|
|
public function WxPayNotifyCheck() {
|
|
|
- $postStr = $GLOBALS['HTTP_RAW_POST_DATA'];
|
|
|
- if(!$postStr){
|
|
|
+// $postStr = $GLOBALS['HTTP_RAW_POST_DATA'];
|
|
|
+// if(!$postStr){
|
|
|
$postStr = file_get_contents("php://input");
|
|
|
- }
|
|
|
+// }
|
|
|
|
|
|
$postObj = simplexml_load_string($postStr, 'SimpleXMLElement', LIBXML_NOCDATA);
|
|
|
if ($postObj === false) {
|