【移动端】百度系优化

用于【移动端】的百度系列产品优化,包括【百度搜索】、【百家号】、【百度贴吧】、【百度文库】、【百度经验】、【百度百科】、【百度知道】、【百度翻译】、【百度图片】、【百度地图】、【百度好看视频】、【百度爱企查】、【百度问题】、【百度识图】等

< Feedback on 【移动端】百度系优化

Question/comment

§
Posted: 2024-04-11

百度识图点击“识图一下”选择图片后弹窗提示“图片API返回信息中status不为0,详情请看控制台”

WhiteSevsAuthor
§
Posted: 2024-04-11

所以控制台的信息呢...

§
Posted: 2024-04-11

所以控制台的信息呢...

是这个吗?


%c[Utils.Log%c-%cHTMLInputElement.uploadImage%c]%c %o font-weight: bold; color: cornflowerblue font-weight: bold; color: cornflowerblue font-weight: bold; color: darkorange font-weight: bold; color: cornflowerblue color: #0000FF; {"status":true,"data":{"readyState":4,"responseHeaders":"null: [HTTP/1.1 200 OK]\nAccess-Control-Allow-Credentials: [true]\nAccess-Control-Allow-Origin: [https://graph.baidu.com]\nContent-Length: [50]\nContent-Type: [application/json; charset=utf-8]\nDate: [Thu, 11 Apr 2024 14:59:39 GMT]\nSet-Cookie: [BAIDUID=5CF804160AD7911E85C2900DE7CA7A2B:FG=1; Path=/; Domain=baidu.com; Max-Age=31536000, BAIDUID_BFESS=5CF804160AD7911E85C2900DE7CA7A2B:FG=1; Path=/; Domain=baidu.com; Max-Age=31536000; Secure; SameSite=None]\nUri-Md5: [68d408b32ba2262a4c364d4cf12da60e]\nX-Android-Received-Millis: [1712847579228]\nX-Android-Response-Source: [NETWORK 200]\nX-Android-Selected-Protocol: [http/1.1]\nX-Android-Sent-Millis: [1712847579165]\n","responseText":"{\"status\":1002,\"msg\":\"Params illegal\",\"data\":null}","status":200,"statusText":"OK","finalUrl":"https://graph.baidu.com/upload?uptime=1712847579158","lengthComputable":true,"loaded":0,"total":50,"response":"{\"status\":1002,\"msg\":\"Params illegal\",\"data\":null}"},"details":{"url":"https://graph.baidu.com/upload?uptime=1712847579158","data":{},"resposeType":"json","headers":{"user-agent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/119.0.3787.97 Safari/537.36","Origin":"https://graph.baidu.com","Referer":"https://graph.baidu.com/pcpage/index?tpl_from=pc","Accept":"*/*"}},"msg":"请求完毕","type":"onload"}

%c[Utils.Log%c-%cHTMLInputElement.uploadImage%c]%c %o font-weight: bold; color: cornflowerblue font-weight: bold; color: cornflowerblue font-weight: bold; color: darkorange font-weight: bold; color: cornflowerblue color: #0000FF; {"status":1002,"msg":"Params illegal","data":null}

WhiteSevsAuthor
§
Posted: 2024-04-11

已修复,测试为套壳浏览器未实现post上传formData中包含File类型的数据,已使用fetch代替

Post reply

Sign in to post a reply.