From 7e99dce9f6520ac23bf20850a9413de01b3a6b80 Mon Sep 17 00:00:00 2001 From: src48597962 <48597962@qq.com> Date: Wed, 5 Jul 2023 16:07:41 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0=20'SrcJu.js'?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- SrcJu.js | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/SrcJu.js b/SrcJu.js index 3cc0d958..4e9d5150 100644 --- a/SrcJu.js +++ b/SrcJu.js @@ -879,7 +879,7 @@ function sousuo() { data.push({ "title": it.name, "search_url": "hiker://empty##fypage", - "searchFind": `js: require(config.依赖); search('`+name+` `+it.name+`','sousuo');` + "searchFind": `js: require(config.依赖); let d = search('`+name+` `+it.name+`','jusousuo'); setResult(d);` }); }) return JSON.stringify(data) @@ -904,8 +904,8 @@ function search(keyword, mode, sdata, group, type) { } } } - /* - if(getMyVar('SrcJuSearching')=="1"){ + + if(mode!="jusousuo" && getMyVar('SrcJuSearching')=="1"){ toast("上次搜索线程还未结束,等等再来"); if(mode=="sousuotest"){ return []; @@ -913,7 +913,7 @@ function search(keyword, mode, sdata, group, type) { return "hiker://empty"; } } - */ + let page = 1; if(mode=="sousuo"){ if(MY_PAGE==1){ @@ -922,7 +922,7 @@ function search(keyword, mode, sdata, group, type) { page = parseInt(getMyVar('MY_PGAE','1'))+1; putMyVar('MY_PGAE',page); } - }else if(mode=="sousuotest" || mode=="sousuo2"){ + }else if(mode=="sousuotest" || mode=="sousuo2" || mode=="jusousuo"){ page = MY_PAGE; } if(page==1){ @@ -1050,8 +1050,8 @@ function search(keyword, mode, sdata, group, type) { item.title = objmode=="erji"?objdata.name:item.title; //item.content = item.content || item.desc; item.desc = item.desc || ""; - item.desc = objmode=="sousuo"||objmode=="sousuo2" ? MY_RULE.title+' · '+objdata.name+' · '+item.desc :objmode=="sousuotest"?(item.content || item.desc): (extra.sdesc || item.desc); - item.col_type = objmode=="sousuo" ? "video" : (objmode=="sousuotest"||objmode=="sousuo2") ? "movie_1_vertical_pic" : "avatar"; + item.desc = objmode=="sousuo"||objmode=="sousuo2"||objmode=="jusousuo" ? MY_RULE.title+' · '+objdata.name+' · '+item.desc :objmode=="sousuotest"?(item.content || item.desc): (extra.sdesc || item.desc); + item.col_type = objmode=="sousuo"||objmode=="jusousuo" ? "video" : (objmode=="sousuotest"||objmode=="sousuo2") ? "movie_1_vertical_pic" : "avatar"; resultdata.push(item); } }) @@ -1090,7 +1090,7 @@ function search(keyword, mode, sdata, group, type) { addItemBefore("sousuoloading", data); }else if(mode=="sousuo2"){ addItemBefore("sousuoloading", data); - }else if(mode=="sousuotest"){ + }else if(mode=="sousuotest"||mode=="jusousuo"){ results = data; } }else{ @@ -1106,7 +1106,7 @@ function search(keyword, mode, sdata, group, type) { storage0.putMyVar('searchMark', searchMark); } clearMyVar('SrcJuSearching'); - if(mode=="sousuotest"){ + if(mode=="sousuotest"||mode=="jusousuo"){ return results; }else{ let sousuosm = mode=="sousuo"||mode=="sousuo2" ? success + "/" + list.length + ",第"+page+"页搜索完成" : "‘‘’’" + success + "/" + list.length + ",搜索完成";