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([]); + } } }