更新 'SrcJySet.js'

master
src48597962 5 months ago
parent 06d6b41c98
commit 9427456b39
  1. 15
      SrcJySet.js

@ -317,9 +317,10 @@ function SRCSet() {
if(duoselect.length==0){ if(duoselect.length==0){
return "toast://未选择"; return "toast://未选择";
} }
return $("hiker://empty#noRecordHistory##noHistory#").rule((num) => { return $("hiker://empty#noRecordHistory##noHistory#").rule((num) => {
addListener("onClose", $.toString(() => { addListener("onClose", $.toString(() => {
clearMyVar('failSource'); clearMyVar("failSourceList");
putMyVar("批量较验_停止线程","1"); putMyVar("批量较验_停止线程","1");
let nowtime = Date.now(); let nowtime = Date.now();
setItem('checkSourcetime', nowtime+'|'+getMyVar("checkSource_nexttime", "0")); setItem('checkSourcetime', nowtime+'|'+getMyVar("checkSource_nexttime", "0"));
@ -334,7 +335,7 @@ function SRCSet() {
putMyVar("checkSource_nexttime", "24"); putMyVar("checkSource_nexttime", "24");
putMyVar("批量较验_线程启动", "1"); putMyVar("批量较验_线程启动", "1");
clearMyVar("批量较验_停止线程"); clearMyVar("批量较验_停止线程");
let duoselect = storage0.getMyVar("failSource") || storage0.getMyVar('SrcJu_duoselect') || []; let duoselect = 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) {
@ -389,10 +390,10 @@ function SRCSet() {
longClick: [{ longClick: [{
title: "保留", title: "保留",
js: $.toString((dataurl) => { js: $.toString((dataurl) => {
let failSource = storage0.getMyVar("failSource") || []; let failSource = storage0.getMyVar("failSourceList") || [];
let index = failSource.indexOf(failSource.filter(d => dataurl==d.url )[0]); let index = failSource.indexOf(failSource.filter(d => dataurl==d.url )[0]);
failSource.splice(index, 1); failSource.splice(index, 1);
storage0.putMyVar("failSource",failSource); storage0.putMyVar("failSourceList",failSource);
deleteItem("failSource-" + dataurl); deleteItem("failSource-" + dataurl);
return "toast://已保留,不处理"; return "toast://已保留,不处理";
},data.url) },data.url)
@ -417,7 +418,7 @@ function SRCSet() {
addItemAfter("testSource2", { addItemAfter("testSource2", {
title: "批量删除失败的源", title: "批量删除失败的源",
url: $("确定将失败的源全部删除").confirm(() => { url: $("确定将失败的源全部删除").confirm(() => {
let failSource = storage0.getMyVar("failSource") || []; let failSource = storage0.getMyVar("failSourceList") || [];
require(config.依赖.match(/http(s)?:\/\/.*\//)[0] + 'SrcJyPublic.js'); require(config.依赖.match(/http(s)?:\/\/.*\//)[0] + 'SrcJyPublic.js');
deleteData("jk", failSource); deleteData("jk", failSource);
back(true); back(true);
@ -460,7 +461,7 @@ function SRCSet() {
}, faillist.length), }, faillist.length),
col_type : "text_center_1" col_type : "text_center_1"
}); });
storage0.putMyVar("failSource", faillist); storage0.putMyVar("failSourceList", faillist);
}else{ }else{
deleteItem("deletefailSource"); deleteItem("deletefailSource");
} }
@ -501,7 +502,7 @@ function SRCSet() {
col_type: "line_blank" col_type: "line_blank"
}); });
let failSource = storage0.getMyVar("failSource") || []; let failSource = storage0.getMyVar("failSourceList") || [];
if(failSource.length>0){ if(failSource.length>0){
num = failSource.length; num = failSource.length;
} }

Loading…
Cancel
Save