代码拉取完成,页面将自动刷新
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); // 错误处理
}
});
}
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。