|
|
@@ -313,10 +313,14 @@ async function recognizeCaptchaByDdddocr(captchaInfo) {
|
|
|
const msg = `请求滑块验证异常\n${JSON.stringify(err)}`;
|
|
|
magicJS.logger.error(msg);
|
|
|
});
|
|
|
- if (result) {
|
|
|
+ if (result && result.code == 1) {
|
|
|
+ let targetInfo = result.result.target;
|
|
|
+ result.positionX = targetInfo[0];
|
|
|
+ result.positionY = positionY;
|
|
|
result.uuid = uuid;
|
|
|
+ return result;
|
|
|
}
|
|
|
- return result;
|
|
|
+ return null;
|
|
|
}
|
|
|
|
|
|
function generateRandString(length) {
|