|
|
|
@ -2,6 +2,8 @@ |
|
|
|
namespace app\controller; |
|
|
|
|
|
|
|
use app\BaseController; |
|
|
|
use think\facade\Log; |
|
|
|
use think\facade\Request; |
|
|
|
|
|
|
|
class Index extends BaseController |
|
|
|
{ |
|
|
|
@ -18,8 +20,10 @@ class Index extends BaseController |
|
|
|
// 测试连接 |
|
|
|
public function msg(){ |
|
|
|
$handle = fopen('php://input', 'r'); |
|
|
|
$param = Request::param() ?? []; |
|
|
|
$input = stream_get_contents($handle); |
|
|
|
fclose($handle); |
|
|
|
Log::info('HTTP',$param); |
|
|
|
echo $input; |
|
|
|
} |
|
|
|
} |
|
|
|
|