php插入日志到数据库,对象转json时间:2023-03-08 19:43:47 打印插入日志数据到库 M()->table("t_log")->data(array( 'id'=>'6'.time(), 't'=> json_encode($item) //对象转json ))->add();