From ac661b13d002e959a0fb87f3131ad8b98c510aeb Mon Sep 17 00:00:00 2001 From: Faker Date: Sun, 18 Dec 2022 22:07:29 +0800 Subject: [PATCH] sync --- JDJRValidator_Pure.js | 3 ++- jd_joy_feedPets.js | 3 +-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/JDJRValidator_Pure.js b/JDJRValidator_Pure.js index 72c71dccb..db3d7bd44 100644 --- a/JDJRValidator_Pure.js +++ b/JDJRValidator_Pure.js @@ -243,7 +243,7 @@ class JDJRValidator { // console.log(pos[pos.length-1][2] -Date.now()); // await sleep(4500); - console.log(pos[pos.length - 1][2] - Date.now()); + //console.log(pos[pos.length - 1][2] - Date.now()); await sleep(pos[pos.length - 1][2] - Date.now()); const result = await JDJRValidator.jsonp('/slide/s.html', {d, ...this.data}, scene); @@ -267,6 +267,7 @@ class JDJRValidator { try { const data = await JDJRValidator.jsonp('/slide/g.html', {e: ''}, scene); const {bg, patch, y} = data; + if (bg.length < 30000) return; // const uri = 'data:image/png;base64,'; // const re = new PuzzleRecognizer(uri+bg, uri+patch, y); const re = new PuzzleRecognizer(bg, patch, y); diff --git a/jd_joy_feedPets.js b/jd_joy_feedPets.js index 45aad3462..d084beda6 100644 --- a/jd_joy_feedPets.js +++ b/jd_joy_feedPets.js @@ -2,9 +2,8 @@ 宠汪汪喂食(默认20g) 更新时间:2022-10-14 活动入口:京东APP我的-更多工具-宠汪汪 -33 0-23/4 * * * jd_joy_feedPets.js */ -const $ = new Env('宠汪汪🐕喂食'); +const $ = new Env('宠汪汪喂食'); const Slider = require('./JDJRValidator_Pure'); //$.get = Slider.injectToRequest2($.get.bind($)); const notify = $.isNode() ? require('./sendNotify') : '';