From 6d6407e553af81d7037e3e06544c2750bcde15e1 Mon Sep 17 00:00:00 2001 From: src48597962 <48597962@qq.com> Date: Mon, 19 Dec 2022 16:40:53 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0=20'SrcJuying.js'?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- SrcJuying.js | 37 ++++++++++++++++++++++--------------- 1 file changed, 22 insertions(+), 15 deletions(-) diff --git a/SrcJuying.js b/SrcJuying.js index b61b6e39..ba597eff 100644 --- a/SrcJuying.js +++ b/SrcJuying.js @@ -597,23 +597,30 @@ function sousuo() { require(config.依赖.match(/http(s)?:\/\/.*\//)[0] + 'SrcJyData.js'); JYsousuo(); }else{ - try{ - if(MY_PAGE==1){ - let name = MY_URL.split('##')[1]; - if(name){ - require(config.依赖.match(/http(s)?:\/\/.*\//)[0] + 'SrcJyXunmi.js'); - xunmi(name,false,true); - }else{ - setResult([{ - title: "当前小程序版本过低,需升级新版本", - url: "海阔视界首页频道规则【聚影√】¥home_rule_url¥http://hiker.nokia.press/hikerule/rulelist.json?id=5102", - col_type: "text_1" - }]); - } + if(MY_PAGE==1){ + let name = ''; + try{ + name = MY_URL.split('##')[1]; + }catch(e){ + setResult([{ + title: "当前小程序版本过低,需升级新版本", + url: "海阔视界首页频道规则【聚影√】¥home_rule_url¥http://hiker.nokia.press/hikerule/rulelist.json?id=5102&auth=9f188bbe-4415-5fd4-ae82-726319ca44d5", + col_type: "text_1" + }]); + } + if(name.trim()){ + require(config.依赖.match(/http(s)?:\/\/.*\//)[0] + 'SrcJyXunmi.js'); + xunmi(name,false,true); }else{ - setResult([]); + setResult([{ + title: "搜索关键词不能为空", + url: "hiker://empty", + col_type: "text_1" + }]); } - }catch(e){} + }else{ + setResult([]); + } } }