$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"];
转载于:https://www.cnblogs.com/ghjbk/p/6861243.html