已经实现了/v3/3rd/users接口,还提示返回权限值update=1,需实现回调接口:/v3/3rd/users

阅读次数 1

已经实现了/v3/3rd/users接口,并且通过回调配置中测试,或者直接url中访问,都能返回结果

{
  "code": 0,
  "message": "success",
  "data": [
    {
      "id": "user001",
      "name": "用户001",
      "avatar_url": null
    }
  ]
}

打开文档时word?first、word等各种请求还是返回:

{
    "errno": 10000,
    "msg": "返回权限值update=1,需实现回调接口:/v3/3rd/users",
    "reason": "",
    "result": "ProviderError"
}

通过x-request-id查询日志如下:

http://xxx.xxx.xxx.xxx:8080/api/wps/v3/3rd/files/81a4753d345a4c5097c789f2e1109849/permission [response]HTTP/1.1 200 
Transfer-Encoding: chunked
Content-Type: application/json
Date: Wed, 29 Oct 2025 09:28:15 GMT
Vary: Origin
Vary: Access-Control-Request-Method
Vary: Access-Control-Request-Headers

9d
{"code":0,"message":"success","data":{"read":1,"update":1,"download":1,"rename":1,"history":1,"copy":1,"print":1,"saveas":1,"comment":1,"user_id":"user001"}}
0

get file extra info failed:annotate: ;hint: 返回权限值update=1,需实现回调接口:/v3/3rd/users
[request]GET /api/wps/v3/3rd/files/81a4753d345a4c5097c789f2e1109849/permission HTTP/1.1
Host: xxx.xxx.xxx.xxx:8080
User-Agent: Go-http-client/1.1
Access-Id: SX20250919WQTOVB
Authorization: WPS-2:SX20250919WQTOVB:ad4f34329dc6ea44885f436a27fdc099f1fa5bf7
Content-Md5: 0e8e5c996d11db9b4094cec01a6235d6
Date: Wed, 29 Oct 2025 17:28:15 CST
X-App-Id: SX20250919WQTOVB
X-Request-Id: 96cbb8297cac4fab485fc83439a382eb
X-User-Query: _w_appid=SX20250919WQTOVB&_w_tokentype=1&file_id=81a4753d345a4c5097c789f2e1109849&sdkId=4&with_debug_tag=&with_group_type=false&with_homepage_injection=false&with_internal_download=true&with_review=false
X-Weboffice-Token: BmO+************************************7yw=
Accept-Encoding: gzip

http://xxx.xxx.xxx.xxx:8080/api/wps/v3/3rd/files/81a4753d345a4c5097c789f2e1109849 [response]HTTP/1.1 200 
Transfer-Encoding: chunked
Content-Type: application/json
Date: Wed, 29 Oct 2025 09:28:15 GMT
Vary: Origin
Vary: Access-Control-Request-Method
Vary: Access-Control-Request-Headers

ed
{"code":0,"message":"success","data":{"id":"81a4753d345a4c5097c789f2e1109849","name":"民事起诉状.docx","version":1,"size":15267,"create_time":1761730088464,"modify_time":1761730088464,"creator_id":"user001","modifier_id":"user001"}}
0

[request]GET /api/wps/v3/3rd/files/81a4753d345a4c5097c789f2e1109849 HTTP/1.1
Host: xxx.xxx.xxx.xxx:8080
User-Agent: Go-http-client/1.1
Access-Id: SX20250919WQTOVB
Authorization: WPS-2:SX20250919WQTOVB:9692cd6b9c6dcfd1d67469a362604d8a5bb72dd4
Content-Md5: ad09614b83bee698ade6fad67d6754f7
Date: Wed, 29 Oct 2025 17:28:15 CST
X-App-Id: SX20250919WQTOVB
X-Request-Id: 96cbb8297cac4fab485fc83439a382eb
X-User-Query: _w_appid=SX20250919WQTOVB&_w_tokentype=1&file_id=81a4753d345a4c5097c789f2e1109849&sdkId=4&with_debug_tag=&with_group_type=false&with_homepage_injection=false&with_internal_download=true&with_review=false
X-Weboffice-Token: BmO+************************************7yw=
Accept-Encoding: gzip


0 Answers