测试回传数据有奇效!!!!
代码语言:javascript
复制public function createlog(Request $request){
if (!is_dir('log')){
mkdir('log',0777,true);
}
$path="log/".date('Y-m-d H:i:s').".log";
file_put_contents($path, "【" . date('Y-m-d H:i:s') . "】" . $request . "rnrn", FILE_APPEND);
}