Commit 8f24bb1f authored by hangjun83's avatar hangjun83

日志存储

parent f4bfb71d
......@@ -44,7 +44,7 @@ class SysLogService
public function writeLog($content, $logType, $level = 'info')
{
$context = [
'content' => $content,
'content' => is_array($content) || is_object($content) ? json_encode($content,true) : $content,
'optime' => microtime(true),
];
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment