notification

This commit is contained in:
Shawn
2022-05-06 21:02:23 +08:00
parent ae53b97ac4
commit 622a32e56a

View File

@@ -107,7 +107,8 @@ resource_parser_url = https://raw.githubusercontent.com/KOP-XIAO/QuantumultX/mas
//beginning 解析器正常使用,調試註釋此部分
let [link0, content0, subinfo] = [$resource.link, $resource.content, $resource.info]
let version = Number($environment.version.split("build")[1]) // 版本号
let version = $environment.version != undefined ? Number($environment.version.split("build")[1]): 0 // 版本号
const subtag = $resource.tag != undefined ? $resource.tag : "";
////// 非 raw 链接的沙雕情形
content0 = content0.indexOf("DOCTYPE html") != -1 && link0.indexOf("github.com") != -1 ? ToRaw(content0) : content0 ;
@@ -130,9 +131,11 @@ const rwrite_link = { "open-url": link1, "media-url": "https://shrtm.nu/x3o2" }
const rwhost_link = { "open-url": link1, "media-url": "https://shrtm.nu/0n5J" } // hostname filter link
const rule_link = { "open-url": link1, "media-url": "https://shrtm.nu/cpHD" } // rule filter link
const nan_link = { "open-url": link1, "media-url": qxpng } // nan error link
const bug_link = { "open-url": "https://t.me/ShawnKOP_bot", "media-url": "https://shrtm.nu/obcB" } // bug link
const bug_link = { "open-url": "https://t.me/Shawn_Parser_Bot", "media-url": "https://shrtm.nu/obcB" } // bug link
const sub_link = { "open-url": link1, "media-url": "https://shrtm.nu/ebAr" } // server link
const update_link = {"open-url" : "https://apps.apple.com/us/app/quantumult-x/id1443988620", "media-url": qxpng}
if(version == 0) { $notify("⚠️ 请更新 Quantumult X 至最新商店版本\n","🚦 当前版本可能无法正常使用部分功能","\n👉 点击跳转商店链接更新",update_link) }
SubFlow() //流量通知