$admin_menu_name, //操作描述 'general_description' => $general_description, // 操作类型 'notes_type' => $type, // 操作表名 'table_name' => $table, // 操作用户 'admin_uid' => $uid, // 操作之前 'before_value' => json_encode($oldData), // 操作之后 'after_value' => json_encode($newData), // 时间 'insert_time' => time(), ]; // 结果 $result = $this->insertGetId($insert_data); // 如果有数据 return $result; } }