MCPcopy Index your code
hub / github.com/Moli-X/Resources / flowcheck

Function flowcheck

Script/Parser.js:442–456  ·  view source on GitHub ↗
(cnt)

Source from the content-addressed store, hash-verified

440
441//flowcheck-fake-server
442function flowcheck(cnt) {
443 for (var i = 0; i < cnt.length; i++) {
444 var item = cnt[i];
445 var nl = item.slice(item.indexOf("tag"))
446 var nm = nl.slice(nl.indexOf("=") + 1)
447 if (item.indexOf("剩余流量") != -1) {
448 flow = nm
449 } else if (item.indexOf("期时间") != -1) {
450 exptime = nm
451 }
452 }
453 flow = flow? flow:"⚠️ 该订阅未返回任何流量信息"
454 exptime = exptime? exptime:"⚠️ 该订阅未返回套餐时间信息"
455 if (flow != "") { $notify("流量信息: ⟦" + subtag + "⟧", flow, exptime, subinfo_link1) }
456}
457
458// regex 后的检查
459function RegCheck(total, typen, paraname,regpara) {

Callers 1

ResourceParseFunction · 0.85

Calls 2

$notifyFunction · 0.70
indexOfMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…