回调demo

接收回调,以 php 为例,可以用下面的

file_get_contents("php://input");

demo 如下

<?php
    $myfile = fopen("res.txt", "w");
    $notify = file_get_contents("php://input");
    fwrite($myfile, $notify);
    fclose($myfile);