1 Star 0 Fork 0

极客/代码库

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
asvc-ai-250612.js 1.53 KB
一键复制 编辑 原始数据 按行查看 历史
极客 提交于 3个月前 . update asvc-ai-250612.js.
function queryAI(username,password,bigImg, subImg){
var b1 = "username="+username+"&password="+password+"&pages=1&captchaType=1316"+"&subCaptchaData="+subImg+"&captchaData="+bigImg;
conlog("AI validate start...");
GM_xmlhttpRequest({
method: "POST",
headers: {
"accept": "*/*","accept-language": "zh-CN,zh;q=0.9",
"content-type": "application/x-www-form-urlencoded; charset=UTF-8",
"sec-ch-ua": "\"Chromium\";v=\"122\", \"Not(A:Brand\";v=\"24\", \"Google Chrome\";v=\"122\""
},
url: "http://www.bingtop.com/ocr/upload/", // 目标URL
data: b1, // 请求体数据(需字符串化)
onload: function(response) {
conlog("AI validate end!!!");
//console.log("AI response:", response); // 成功回调
//{"code": 0, "message": "", "data": {"captchaId": "1316-078e3b7b-3327-4e8c-9d5d-d93cea952677", "captchaType": "1316", "recognition": "143,97"}}
var jObj = JSON.parse(response.responseText);
if(jObj && jObj['message']===''){
queryAIRst(jObj.data.recognition);
}else if(jObj && jObj['message']!==''){
alert("ASVC: AI ERROR "+jObj['message']);
}else{
alert("ASVC:AI UNKONW ERROR!");
}
},
onerror: function(error) {
alert("ASVC:AI HTTP ERROR!:", error); // 错误处理
}
});
}
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/geek-mh/code-repository.git
git@gitee.com:geek-mh/code-repository.git
geek-mh
code-repository
代码库
master

搜索帮助