历史版本预览失败

Viewed 90

image.png 界面一直处于loading状态 https://o.wpsgo.com/api/v3/office/session/21656_132000162342/et 循环请求该接口,但是一直没有数据返回
image.png
点击版本时,会调用这个接口且history_id是undefine
历史版本的三个接口都实现了,帮忙确认是什么原因
image.png
报错接口入参
image.png
看控制台好像session接口timeout了
image.png

2 Answers

请确认历史版本列表,返回了正确的版本号。 image.png

/v3/3rd/files/${file_id}/versions 接口返回值 {"code":0,"data":[{"createTime":1686290796,"creatorId":"1474236","id":"21656_132000162342","modifierId":"1474236","modifyTime":1686290796,"name":"edit.xlsx","size":11734,"version":13},{"createTime":1686290796,"creatorId":"1474236","id":"21656_132000162342","modifierId":"1474236","modifyTime":1686283048,"name":"edit.xlsx","size":11728,"version":12},{"createTime":1686290796,"creatorId":"1474236","id":"21656_132000162342","modifierId":"1474236","modifyTime":1686276550,"name":"edit.xlsx","size":11698,"version":11},{"createTime":1686290796,"creatorId":"1474236","id":"21656_132000162342","modifierId":"1474236","modifyTime":1686276528,"name":"edit.xlsx","size":11700,"version":10},{"createTime":1686290796,"creatorId":"1474236","id":"21656_132000162342","modifierId":"1474236","modifyTime":1686207527,"name":"edit.xlsx","size":11707,"version":9},{"createTime":1686290796,"creatorId":"1474236","id":"21656_132000162342","modifierId":"1474236","modifyTime":1686207213,"name":"edit.xlsx","size":11716,"version":8},{"createTime":1686290796,"creatorId":"1474236","id":"21656_132000162342","modifierId":"1474236","modifyTime":1686207159,"name":"edit.xlsx","size":11710,"version":7},{"createTime":1686290796,"creatorId":"1474236","id":"21656_132000162342","modifierId":"1474236","modifyTime":1686196409,"name":"edit.xlsx","size":11704,"version":6},{"createTime":1686290796,"creatorId":"1474236","id":"21656_132000162342","modifierId":"1474236","modifyTime":1686195819,"name":"edit.xlsx","size":11682,"version":5},{"createTime":1686290796,"creatorId":"1474236","id":"21656_132000162342","modifierId":"1474236","modifyTime":1686193602,"name":"edit.xlsx","size":11593,"version":4},{"createTime":1686290796,"creatorId":"1474236","id":"21656_132000162342","modifierId":"1474236","modifyTime":1686193563,"name":"edit.xlsx","size":11590,"version":3},{"createTime":1686290796,"creatorId":"1474236","id":"21656_132000162342","modifierId":"1474236","modifyTime":1686138177,"name":"edit.xlsx","size":11568,"version":2},{"createTime":1686290796,"creatorId":"1474236","id":"21656_132000162342","modifierId":"1474236","modifyTime":1686138154,"name":"edit.xlsx","size":8342,"version":1}]}

versoin是正常的

你好,看上述信息您返回的数据字段和我们要求的不一致,请严格按照我们的要求实现回调接口。

image.png

上面给的接口返回值是抓的日志所以是驼峰形式,正常传给你们的是下划线形式,具体可以看我后补充的图。应该不是这个问题,还是需要帮忙确认下

看控制台好像session接口timeout了,帮忙再看下

你好,请提供可以外网访问的文档URL地址给我们排查,谢谢