ppt 文件中插入图片, 提示 userId 不能为空

Viewed 36

请求: curl 'https://o.wpsgo.com/api/v3/office/file/7114242906187231233/object/wpp?connid=69369d70a8ded6142f77cb5bdfc6d1aa&orientation' -H 'authority: o.wpsgo.com' -H 'accept: /'
-H 'accept-language: zh-CN,zh;q=0.9'
-H 'content-type: multipart/form-data; boundary=----WebKitFormBoundary8dhb9Lt6RgjonFYk'
-H 'cookie: SX20230207MZCEOC_token=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJzdGFmZkNvZGUiOiI3MDQ0NjI0MDAyOTE5NzM5MzkyIn0.ksjuz4Vjvt0nxFk5K1fXgV3XbJG4wQBb-fSd1f6eNLQ'
-H 'origin: https://o.wpsgo.com'
-H 'referer: https://o.wpsgo.com/office/p/7114242906187231233?_w_file_source=teach-manage&_w_permission=write&_w_sub_file_id=7114242906187231233&_w_tenant_id=6944161307163918336&_w_campus_id=7000381880702083072&_w_file_version=2&_w_appid=SX20230207MZCEOC&_w_signature=iNk1RGFfCE%252F4K3IY4dyN19C2PAY%253D&_w_school_id=6970662285670088704&_w_env=teach-manage-test&_w_user_id=7044624002919739392&_w_tokentype=1&_w_file_id=7114242906187231232'
-H 'sec-ch-ua: "Chromium";v="118", "Google Chrome";v="118", "Not=A?Brand";v="99"'
-H 'sec-ch-ua-mobile: ?0'
-H 'sec-ch-ua-platform: "Windows"'
-H 'sec-fetch-dest: empty'
-H 'sec-fetch-mode: cors'
-H 'sec-fetch-site: same-origin'
-H 'user-agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/118.0.0.0 Safari/537.36'
-H 'x-app-id: SX20230207MZCEOC'
-H 'x-app-signature: iNk1RGFfCE%2F4K3IY4dyN19C2PAY%3D'
-H 'x-csrf-rand: SmHTRm/l++UIq7GghnJTvk05uftT/qNr4/pLeLJuPztMwViKAc1872kC6W0tX6lZyxOsv0GN5k1uDkR3gx8KCGblt0elciz64GzVcp44IfPz1WIb1FszrRQ5Lm51QHjqkqi09Gf51RziIBeGB7ZWUicoTA8m'
-H 'x-user-query: _w_file_source=teach-manage&_w_permission=write&_w_sub_file_id=7114242906187231233&_w_tenant_id=6944161307163918336&_w_campus_id=7000381880702083072&_w_file_version=2&_w_appid=SX20230207MZCEOC&_w_signature=iNk1RGFfCE%252F4K3IY4dyN19C2PAY%253D&_w_school_id=6970662285670088704&_w_env=teach-manage-test&_w_user_id=7044624002919739392&_w_tokentype=1&_w_file_id=7114242906187231232'
-H 'x-user-token: eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJzdGFmZkNvZGUiOiI3MDQ0NjI0MDAyOTE5NzM5MzkyIn0.ksjuz4Vjvt0nxFk5K1fXgV3XbJG4wQBb-fSd1f6eNLQ'
--data-raw $'------WebKitFormBoundary8dhb9Lt6RgjonFYk\r\nContent-Disposition: form-data; name="object"; filename="logo.png"\r\nContent-Type: image/png\r\n\r\n\r\n------WebKitFormBoundary8dhb9Lt6RgjonFYk--\r\n'
--compressed

响应: {"errno":10000,"msg":"userId 不能为空","reason":"","result":"CustomMsg"}

image.png image.png

1 Answers

你好,该错误信息,是您的接口中的返回的 “自定义错误信息”,由/permission接口返回。具体日志如下: image.png