Skip to content

Commit

Permalink
异步回调通知
Browse files Browse the repository at this point in the history
异步回调通知
  • Loading branch information
dedemao committed Aug 1, 2018
1 parent d217cbe commit 5bec811
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions notify.php
Expand Up @@ -35,7 +35,7 @@ public function notify()
'appid' => $this->appid,
'key' => $this->apiKey,
);
$postStr = $GLOBALS["HTTP_RAW_POST_DATA"];
$postStr = file_get_contents('php://input');
$postObj = simplexml_load_string($postStr, 'SimpleXMLElement', LIBXML_NOCDATA);
if ($postObj === false) {
die('parse xml error');
Expand Down Expand Up @@ -82,4 +82,4 @@ protected static function formatQueryParaMap($paraMap, $urlEncode = false)
}
return $reqPar;
}
}
}

0 comments on commit 5bec811

Please sign in to comment.