把
$postStr = $GLOBALS["HTTP_RAW_POST_DATA"];
替换为
$postStr = isset($GLOBALS['HTTP_RAW_POST_DATA']) ? $GLOBALS['HTTP_RAW_POST_DATA'] : file_get_contents("php://input");
即可。
把
$postStr = $GLOBALS["HTTP_RAW_POST_DATA"];
$postStr = isset($GLOBALS['HTTP_RAW_POST_DATA']) ? $GLOBALS['HTTP_RAW_POST_DATA'] : file_get_contents("php://input");