onlyoffice 在线文档编辑器回调接口参数JSON

{
    "key": "a3bde8e7534dd48a169d",
    "status": 2,
    "url": "http://192.168.1.17:8011/cache/files/a3bde8e7534dd48a169d_3251/output.docx/output.docx?md5=g5XP8VB64__YohvwZMi2iQ&expires=1661423792&filename=output.docx",
    "changesurl": "http://192.168.1.17:8011/cache/files/a3bde8e7534dd48a169d_3251/changes.zip/changes.zip?md5=xoLAvRktT6RIWQpDKG2FwA&expires=1661423792&filename=changes.zip",
    "history": {
        "serverVersion": "6.4.2",
        "changes": [{
            "created": "2022-08-25 10:08:53",
            "user": {
                "id": "uid-1660548530924",
                "name": "请问 (Guest)"
            }
        }]
    },
    "users": ["uid-1660548530924"],
    "actions": [{
        "type": 0,
        "userid": "uid-1660548530924"
    }],
    "lastsave": "2022-08-25T10:08:53.000Z",
    "notmodified": false
}

------------------------------------------------------------------
{
    "key": "e092c57f08e1178a2517",
    "status": 6,
    "url": "http://192.168.1.17:8011/cache/files/e092c57f08e1178a2517_3326/output.docx/output.docx?md5=vOcGuNRbJ8S3m7blxMf-Dg&expires=1661427973&filename=output.docx",
    "changesurl": "http://192.168.1.17:8011/cache/files/e092c57f08e1178a2517_3326/changes.zip/changes.zip?md5=ozAoIjcgYIDPmSM-JtgxfQ&expires=1661427973&filename=changes.zip",
    "history": {
        "serverVersion": "6.4.2",
        "changes": [{
            "created": "2022-08-25 11:30:20",
            "user": {
                "id": "uid-1660548530924",
                "name": "请问 (Guest)"
            }
        }]
    },
    "users": ["uid-1660548530924"],
    "actions": [{
        "type": 2,
        "userid": "uid-1660548530924"
    }],
    "lastsave": "2022-08-25T11:31:10.000Z",
    "forcesavetype": 1
}

定义文档的状态。可以具有以下值:
* 0 - 找不到带有密钥标识符的文档,
* 1 - 正在编辑文档,
* 2 - 文件已准备好保存,
* 3 - 发生了文档保存错误,
* 4 - 文件关闭,没有变化,
* 6 - 正在编辑文档,但保存当前文档状态,
* 7 - 强制保存文档时发生错误。

 

posted @ 2023-02-07 09:26  baivfhpwxf  阅读(637)  评论(0编辑  收藏  举报