()
| 210 | var flag = 1 |
| 211 | |
| 212 | function Parser() { |
| 213 | type0 = Type_Check(content0); // 类型判断 |
| 214 | //$notify(type0) |
| 215 | if (type0 != "web" && type0 != "wrong-field" && type0 != "JS-0"){ |
| 216 | try { |
| 217 | //$notify(type0,"hh") |
| 218 | if (Pdbg){ |
| 219 | $notify(link0,type0,content0) |
| 220 | } |
| 221 | total = ResourceParse(); |
| 222 | |
| 223 | } catch (err) { |
| 224 | if(Perror == 0) { |
| 225 | $notify("❌ 解析出现错误", "⚠️ 请点击通知,发送订阅链接进行反馈", err, bug_link); |
| 226 | } |
| 227 | } |
| 228 | } else if (type0 == "wrong-field"){ |
| 229 | if (version >= 670 && typec!="") { //尝试跳转到正确类型 |
| 230 | RLink0[Field[typec]].push($resource.link+", opt-parser=true, tag=下次添加资源🉑️长点❤️8⃣️") // 跳转URI-Scheme |
| 231 | var flink = ADDRes.replace(/url-encoded-json/,encodeURIComponent(JSON.stringify(RLink0))) |
| 232 | const bug_linkx = { "open-url": flink, "media-url": "https://shrtm.nu/obcB" } // bug linkx |
| 233 | $notify( "⚠️ 请点击通知跳转尝试添加到正确类型中","❌ 检测类型["+typec+"]"+"与填入类型"+"["+typeQ+"]冲突", "如果跳转添加仍旧失败,请发送链接反馈解析器bot\n"+$resource.link, bug_linkx) |
| 234 | } else {//旧版本 |
| 235 | $notify("❌ 检测类型「"+typec+" 」"+"与目标类型"+" 「"+typeQ+" 」冲突", "⚠️ 请自行检查链接内容,或点击通知发送链接进行反馈", $resource.link, bug_link) |
| 236 | } |
| 237 | total="" |
| 238 | } else { |
| 239 | total="" |
| 240 | } |
| 241 | $done({ content: total }); |
| 242 | } |
| 243 | |
| 244 | if (typeof($resource)!=="undefined" && PProfile == 0) { |
| 245 | Parser() |
no test coverage detected
searching dependent graphs…