如果PHP中使用file_get_contents(“php://input”);
得在php.ini中去掉always_populate_raw_post_data = -1前的;
重启服务
<?php
header("Content-type: text/html; charset=utf-8");
ini_set('date.timezone','Asia/Shanghai');
error_reporting(0);
require_once 'function.php';
require_once 'config.php';
$response = file_get_contents("php://input"); // 接收别的接口发送的json数据
writeslog('notify '.$response);
$response = json_decode($response , true); // 转为数组