From 2f68db46786cbe35fcbc034ad3a2a88ce4b98848 Mon Sep 17 00:00:00 2001 From: src48597962 <48597962@qq.com> Date: Sat, 9 Sep 2023 21:07:05 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0=20'SrcJu.js'?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- SrcJu.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/SrcJu.js b/SrcJu.js index dfc16f59..37f7b6b3 100644 --- a/SrcJu.js +++ b/SrcJu.js @@ -1037,8 +1037,11 @@ function search(keyword, mode, sdata, group, type) { function ocr(codeurl,headers) { headers= headers || {}; let img = convertBase64Image(codeurl,headers).replace('data:image/jpeg;base64,',''); - let code = request('https://api.xhofe.top/ocr/b64/text', { body: img, method: 'POST', headers: {"Content-Type":"text/html"}}); + let code = request('https://api-cf.nn.ci/ocr/b64/text', { body: img, method: 'POST', headers: {"Content-Type":"text/html"}}); code = code.replace(/o/g, '0').replace(/u/g, '0').replace(/I/g, '1').replace(/l/g, '1').replace(/g/g, '9'); + if(code.includes("+")&&code.includes("=")){ + code = eval(code.split("=")[0]); + } log('识别验证码:'+code); return code; }