From 94530b5c036c21c5b16cdc3642a00bae17fc23cb Mon Sep 17 00:00:00 2001 From: src48597962 <48597962@qq.com> Date: Wed, 11 Sep 2024 15:02:17 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0=20'SrcJySet.js'?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- SrcJySet.js | 50 ++++++++++++++++++++++++++++++++++++++++++++------ 1 file changed, 44 insertions(+), 6 deletions(-) diff --git a/SrcJySet.js b/SrcJySet.js index b77d15c7..b09434ad 100644 --- a/SrcJySet.js +++ b/SrcJySet.js @@ -307,16 +307,54 @@ function SRCSet() { if(duoselect.length==0){ return "toast://未选择"; } - return $('hiker://empty#noRecordHistory##noHistory#').rule(() => { + return $('hiker://empty#noRecordHistory##noHistory#').rule((num) => { let d = []; - let duoselect = storage0.getMyVar('SrcJu_duoselect') || []; d.push({ - title: "待较验源:" + duoselect.length, - url: "toast://未上线", - col_type : "text_center_1" + title: "待较验源:" + num, + url: $('#noLoading#').lazyRule(() => { + require(config.依赖.match(/http(s)?:\/\/.*\//)[0] + 'SrcJyPublic.js'); + require(config.依赖.match(/http(s)?:\/\/.*\//)[0] + 'SrcJyData.js'); + let duoselect = storage0.getMyVar('SrcJu_duoselect') || []; + let task = function (jkdata) { + try { + log(getYiData(jkdata)); + log(getErData(jkdata)); + log(getSsData(jkdata)); + return {result:[], success:1}; + } catch (e) { + log(obj.name + '>测试失败>' + e.message); + return {result:[], success:0}; + } + } + let list = duoselect.map((item) => { + return { + func: task, + param: item, + id: item.url + } + }); + be(list, { + func: function (obj, id, error, taskResult) { + if(getMyVar("SrcJu_停止搜索线程")=="1"){ + return "break"; + }else if(taskResult.success==1){ + + }else if(taskResult.success==0){ + + } + }, + param: { + } + }) + return "toast://测试结束"; + }), + col_type : "text_center_1", + extra: { + id: "testSource" + } }) setResult(d); - }) + }, duoselect.length) }), col_type: 'scroll_button' })