excel预览失败

阅读次数 59

image.png

1 Answers

你好,通过sdk打开文档的fileId与回调接口返回值的fileid需要一一对应的关系,保持一致

如:

const instance = WebOfficeSDK.init({
          officeType: WebOfficeSDK.OfficeType.Writer,
          appId: 'xxxxx',
          fileId: '1'
        })
{
  "code": 0,
  "data": {
    "create_time": 1670218748,
    "creator_id": "404",
    "id": "1",
    "modifier_id": "404",
    "modify_time": 1670328304,
    "name": "统计月报.xlsx",
    "size": 18961,
    "version": 180
  }
}

image.png

https://solution.wps.cn/docs/callback/preview.html#%E8%8E%B7%E5%8F%96%E6%96%87%E4%BB%B6%E4%BF%A1%E6%81%AF