From 35c93fea0db1d0d045d5d74f0198cbf1957b4fac Mon Sep 17 00:00:00 2001 From: Shawn <45581750+KOP-XIAO@users.noreply.github.com> Date: Mon, 6 Jul 2020 00:43:05 +0800 Subject: [PATCH] ... --- Scripts/resource-parser.js | 30 +++++++++++++++++++++++++----- 1 file changed, 25 insertions(+), 5 deletions(-) diff --git a/Scripts/resource-parser.js b/Scripts/resource-parser.js index 638de44..898dad2 100644 --- a/Scripts/resource-parser.js +++ b/Scripts/resource-parser.js @@ -1,5 +1,5 @@ /** -☑️ 资源解析器 ©𝐒𝐡𝐚𝐰𝐧 ⟦2020-07-05 13:59⟧ +☑️ 资源解析器 ©𝐒𝐡𝐚𝐰𝐧 ⟦2020-07-06 00:39⟧ ---------------------------------------------------------- 🚫 发现 𝐁𝐔𝐆 请反馈: @Shawn_KOP_bot ⛳️ 关注 🆃🅶 相关频道: https://t.me/QuanX_API @@ -102,7 +102,9 @@ var pfi=Pin0? "in="+Pin0.join(", ")+", ":"" var pfo=Pout0? "out="+Pout0.join(", "):"" var pfihn=Phin0? "inhn="+Phin0.join(", ")+", ":"" var pfohn=Phout0? "outhn="+Phout0.join(", "):"" - +var flow=""; +var exptime=""; +var ntf_flow=0; const subinfo=$resource.info; const subtag=$resource.tag!=undefined? $resource.tag:""; const Base64=new Base64Code(); @@ -114,6 +116,8 @@ var rwhost_link = {"open-url":link0.split("#")[0], "media-url": "https://shrtm.n var rule_link={"open-url":link0.split("#")[0], "media-url": "https://shrtm.nu/tIHl"} var nan_link={"open-url":link0.split("#")[0], "media-url": qxpng} var sub_link={"open-url":link0.split("#")[0], "media-url": "https://shrtm.nu/ebAr"} +var subinfo_link1={"open-url":link0.split("#")[0], "media-url": "https://shrtm.nu/uo13"} + //$notify(link0,type0,content0) @@ -134,6 +138,7 @@ if(Pinfo==1 && subinfo){ epr=""; //"过期时间: ✈️ 未提供該信息" //没过期时间的显示订阅链接 } var message=total+"\n"+usd+", "+left; + ntf_flow=1; $notify("流量信息: ⟦"+subtag+"⟧", epr, message,subinfo_link) } @@ -183,6 +188,8 @@ if(flag==3){ }else if(flag==2){ $done({content:total.join("\n")}); }else if(flag==1){ + if(Pinfo==1&&ntf_flow==0){ //假节点类型的流量通知 + flowcheck(total)} if(Pin0||Pout0){ total=Filter(total,Pin0,Pout0) } @@ -216,6 +223,21 @@ if(flag==3){ $done({content : total}); } +//flowcheck +function flowcheck(cnt){ + for(i=0;i