|
|
@ -2,7 +2,7 @@ let SrcVerify ={ |
|
|
|
ocr: function(url){ |
|
|
|
ocr: function(url){ |
|
|
|
let img = convertBase64Image(url).replace('data:image/jpeg;base64,',''); |
|
|
|
let img = convertBase64Image(url).replace('data:image/jpeg;base64,',''); |
|
|
|
let code = post("http://124.221.241.174:9898/ocr/b64/text", {headers: {"Content-Type": "application/json"}, body: img}); |
|
|
|
let code = post("http://124.221.241.174:9898/ocr/b64/text", {headers: {"Content-Type": "application/json"}, body: img}); |
|
|
|
log('验证码:'+code); |
|
|
|
log(url+'>验证码:'+code); |
|
|
|
return code; |
|
|
|
return code; |
|
|
|
}, |
|
|
|
}, |
|
|
|
slide: function(){ |
|
|
|
slide: function(){ |
|
|
|