def get_attachments(task_operation_history):
    """
    根据 task_operation_history 获取 attachments
    :param task_operation_history:
    :return:
    """
    task_attachments = []
    for history in task_operation_history:
        if history['content']['attachments']:
            task_attachments.extend(history['content']['attachments'])
    return task_attachments
