相同参数,一个可以预览文件,一个预览失败

阅读次数 2

/admin/api/2022-12/web/office/callback/v3/3rd/user

<img src="https://solution-community.wps.cn/uploads/post/59MWkDLZh6o.jpg" alt="img_v3_02an_bd13300b-f0f1-47b3-b886-3ce4d59d3d0g.jpg"/> 成功------ <img src="https://solution-community.wps.cn/uploads/post/59PJ3Hn1aWh.png" alt="image.png"/> 失败------
<img src="https://solution-community.wps.cn/uploads/post/59PJr7z4N11.png" alt="image.png"/>
<img src="https://solution-community.wps.cn/uploads/post/59PJHAagSJd.png" alt="image.png"/>

检查一下您那边是否有某个回调中返回了用户id为"null"的信息,比如获取文件信息接口返回的creator_id和modifier_id。

噢噢 好的

1 Answers

您好,您那边控制台调式看看是否正常呢,也可以在控制台日志查询,根据相关预览报错接口的x-request-id查询日志查看实际调用users接口的情况。

前端怎么去传这个参数,或者说是调用这个users接口

你们前端项目中不用调用这个接口,这个接口是weboffice服务端会回调请求的,参考文档https://solution.wps.cn/docs/product/principle.html,您那边可以根据我上面说的在控制台日志查询中根据x-request-id查询到实际调用时发送的users请求,检查返回值是否存在问题。

您好,我在问题里面上传了失败和成功的日志,您看一下