点击历史版本跳转后的页面,接口未传递token

阅读次数 4

这是正常在线编辑点击进入调用接口是带有token的 <img src="https://solution-community.wps.cn/uploads/post/5fVxgjn27Ro.png" alt="图片.png"/>

如果点击历史版本会新弹出页面 <img src="https://solution-community.wps.cn/uploads/post/5fVxmd4qbP3.png" alt="图片.png"/>

新页面在调用下载文档接口时未传递token 导致鉴权报错 <img src="https://solution-community.wps.cn/uploads/post/5fVBBp4CT2J.png" alt="图片.png"/> <img src="https://solution-community.wps.cn/uploads/post/5fVBJG7Srpo.png" alt="图片.png"/> 该怎么办呢

1 Answers

您好,根据您截图的x-request-id查询到的日志看历史版本接口是有携带token的,检查看看是不是token接收方法不对, 回调接口请求头是X-WebOffice-Token,https://solution.wps.cn/docs/callback/summary.html#%E4%B8%9A%E5%8A%A1%E6%95%B0%E6%8D%AE%E8%AF%B7%E6%B1%82%E5%A4%B4 <img src="https://solution-community.wps.cn/uploads/post/5fZ2gVPSFud.png" alt="image.png"/>