更新 'SrcJySet.js'

master
src48597962 5 months ago
parent 6a41fee841
commit 8d210883e0
  1. 14
      SrcJySet.js

@ -330,6 +330,7 @@ function SRCSet() {
clearMyVar("failSourceList"); clearMyVar("failSourceList");
clearMyVar("executeList"); clearMyVar("executeList");
clearMyVar("批量检测_暂停检测"); clearMyVar("批量检测_暂停检测");
clearMyVar("批量检测_复检模式");
})); }));
function testSource(option) { function testSource(option) {
let sm = option=="yi"?"一级列表":option=="er"?"二级选集":"搜索结果" let sm = option=="yi"?"一级列表":option=="er"?"二级选集":"搜索结果"
@ -337,9 +338,10 @@ function SRCSet() {
if(getMyVar("批量检测_线程开始")=="1"){ if(getMyVar("批量检测_线程开始")=="1"){
return "toast://上一个任务还没有结束,请等待."; return "toast://上一个任务还没有结束,请等待.";
} }
clearMyVar("批量检测_复检模式");
putMyVar("checkSource_nexttime", "24"); putMyVar("checkSource_nexttime", "24");
putMyVar("批量检测_线程开始", "1"); putMyVar("批量检测_线程开始", "1");
let duoselect = storage0.getMyVar("failSourceList") || storage0.getMyVar('SrcJu_duoselect') || []; let duoselect = getMyVar("批量检测_复检模式")?storage0.getMyVar("failSourceList"):storage0.getMyVar('SrcJu_duoselect') || [];
require(config.依赖.match(/http(s)?:\/\/.*\//)[0] + 'SrcJyPublic.js'); require(config.依赖.match(/http(s)?:\/\/.*\//)[0] + 'SrcJyPublic.js');
require(config.依赖.match(/http(s)?:\/\/.*\//)[0] + 'SrcJyData.js'); require(config.依赖.match(/http(s)?:\/\/.*\//)[0] + 'SrcJyData.js');
let task = function (data) { let task = function (data) {
@ -425,7 +427,6 @@ function SRCSet() {
desc: "点击中止线程,暂停批量检测", desc: "点击中止线程,暂停批量检测",
url: $().lazyRule(()=>{ url: $().lazyRule(()=>{
putMyVar("批量检测_暂停检测","1"); putMyVar("批量检测_暂停检测","1");
deleteItem("pausetestSource");
return "hiker://empty"; return "hiker://empty";
}), }),
col_type: "text_center_1", col_type: "text_center_1",
@ -436,8 +437,9 @@ function SRCSet() {
let executeList = []; let executeList = [];
let success = 0; let success = 0;
let faillist = []; let faillist = storage0.getMyVar("failSourceList") || [];
log("批量检测_线程开始"); log("批量检测_线程开始");
if(list.length>0){
be(list, { be(list, {
func: function (obj, id, error, taskResult) { func: function (obj, id, error, taskResult) {
executeList.push(id); executeList.push(id);
@ -475,8 +477,10 @@ function SRCSet() {
param: { param: {
} }
}) })
}
log("批量检测_线程结束"); log("批量检测_线程结束");
clearMyVar("批量检测_线程开始"); clearMyVar("批量检测_线程开始");
deleteItem("pausetestSource");
hideLoading(); hideLoading();
if(getMyVar("批量检测_停止线程")=="1"){ if(getMyVar("批量检测_停止线程")=="1"){
@ -487,6 +491,7 @@ function SRCSet() {
addItemAfter("testSource2", { addItemAfter("testSource2", {
title: "针对失败的源,进入复检模式", title: "针对失败的源,进入复检模式",
url: $().lazyRule((failnum)=>{ url: $().lazyRule((failnum)=>{
putMyVar("批量检测_复检模式");
refreshPage(true); refreshPage(true);
return "toast://进入复检" + failnum; return "toast://进入复检" + failnum;
}, faillist.length), }, faillist.length),
@ -535,11 +540,12 @@ function SRCSet() {
d.push({ d.push({
col_type: "line_blank" col_type: "line_blank"
}); });
if(getMyVar("批量检测_复检模式")){
let failSource = storage0.getMyVar("failSourceList") || []; let failSource = storage0.getMyVar("failSourceList") || [];
if(failSource.length>0){ if(failSource.length>0){
num = failSource.length; num = failSource.length;
} }
}
d.push({ d.push({
title: "待检测源:" + num, title: "待检测源:" + num,

Loading…
Cancel
Save