Browse Source

测试接收数据 并保存到日志2

master
wanghongjun 2 years ago
parent
commit
d5885127fe
  1. 4
      app/controller/Index.php

4
app/controller/Index.php

@ -23,7 +23,7 @@ class Index extends BaseController
$param = Request::param() ?? []; $param = Request::param() ?? [];
$input = stream_get_contents($handle); $input = stream_get_contents($handle);
fclose($handle); fclose($handle);
Log::info('HTTP',$param); Log::info(json_encode($param));
echo $input; return json(['code' => 200, 'msg' => '成功']);
} }
} }

Loading…
Cancel
Save