请求响应内容 Response如下:
HTTP/1.1 401 Unauthorized
Server: openresty
Date: Mon, 02 Dec 2024 09:17:01 GMT
Content-Type: application/json; charset=utf-8
Content-Length: 74
Connection: keep-alive
Access-Control-Allow-Credentials: ture
Access-Control-Allow-Headers:
Access-Control-Allow-Methods: GET, HEAD, POST, PATCH, PUT, DELETE
Access-Control-Allow-Origin:
Access-Control-Allow-Private-Network: ture
Access-Control-Expose-Headers: Content-Length, Access-Control-Allow-Origin, Access-Control-Allow-Headers, Anonymous-Id
Access-Control-Max-Age: 86400
Anonymous-Id: f16bed9bd7920cc5b1cb2147fe5bbda1
Error: 试用次数已用完,请登录后继续使用哦~
Traceparent: 00-6acb6fe1791b03afbb211f56de55a698-6513d209430cd924-00
Vary: Origin
{"code":4001,"msg":"试用次数已用完,请登录后继续使用哦~"}
-------------------------------------------------------------------分割线-------------------------------------------------------------------
以上是抓包的返回,在ios真机中的 uni.uploadFile 的 success 回调中返回的是以下数据,data为空
{
"data": "",
"statusCode": 401,
"errMsg": "uploadFile:ok"
}
-------------------------------------------------------------------分割线-------------------------------------------------------------------
在安卓真机中的 uni.uploadFile 的 success 回调中返回的是以下数据,data是服务器返回的数据
{
"data": "{\"code\":4001,\"msg\":\"试用次数已用完,请登录后继续使用哦~\"}",
"statusCode": 401,
"errMsg": "uploadFile:ok"
}
1 个回复
锦鲤丶接单丶 - 锦鲤丶接单丶18560000860丶10+年开发经验
这不是告诉你了,试用次数没了,就没给你返数据吧