php 阿里云视频点播事件回调post获取不到参数

常规的post获取方式拿不到回调参数,比如$_POST,需要以 file_get_contents("php://input") 获取输入流的方式获取,如:

$info = file_get_contents("php://input");

因为header头的content-type是content-type:application/json,以json的形式传递数据。

原文地址:https://www.cnblogs.com/spareribs/p/13705151.html