KR/jd_opencardDPLHTY.js

31 lines
102 KiB
JavaScript
Raw Normal View History

2023-09-17 10:21:26 +08:00
/*
大牌联合通用开卡
新增开卡脚本一次性脚本
通用大牌联合通用开卡
活动地址https://jinggengjcq-isv.isvjcloud.com/xxxx/xxx/xxx
变量填写
//export DPLHTY="活动ID"
2023-09-17 12:50:49 +08:00
//export DPLHTY="04c1bf1191d044c6ae059e_22040802"
2023-09-17 10:21:26 +08:00
任务之间延时设置默认2秒
//export DPLHTY_WAIT="2"
黑名单 &隔开 pin值
//export DPLHTY_blacklist=""
2023-09-24 10:18:10 +08:00
浏览 默认不做浏览任务
//export DPLHTY_READ=""
2023-09-17 10:21:26 +08:00
重试次数默认30
//export retrynum="30"
活动ID自行查找
第一个账号助力作者 其他依次助力CK1
注意第一个CK黑号会全部助力所填写的助力码
============Quantumultx===============
[task_local]
#大牌联合通用开卡
1 1 1 1 * jd_opencardDPLHTY.js, tag=大牌联合通用开卡, enabled=true
*/
const $ = new Env('大牌联合通用开卡');
2023-09-24 10:18:10 +08:00
var version_='jsjiami.com.v7';const Ii1llliI=l11li11i;function iIll11i1(){const l1Ill1Ii=(function(){return[...[version_,'CAAjGLtsjiIaUWmwIAiw.XycJoymGW.nkvXQ7qKK==','hc1xW40','rqeKpvK','aSkRxmoqCSoaW74','ysuuj2bRW6PP','WRWjimoeW4W','kbNcPSkmeCkp','W5PQWQ/cTIb2WOO/W7ZdLW','W5VdLKC5WRG','WQpdK8o0nSoU','W558WPpcTsr/WQW','W5xcMSo2BhRcJJawAshcUmkXW5dcN8kI','eSoacmkVWO4','cb9UqhW','fCoSeCk+WQ8','WP7cKCkxn8ksWP3cOa','c3tdSCoDWRRdLq','gs9xW6xdTW','WQTzpSkcWQNdHCkg','WP9xW6/cRw4','D30AW73dHG','W4tcJmoMyq','WQZcL8o7WPe','W7/dLL0DWQi','ACoIlSkrWQi','jsJcKSkvlW','WOVcQvS5hW','W4aPBmk7','xCounuybmG','W5npW4RcGZK','esjhW4NdQ2FcSG','q8oNl041','WPaqaIldLrxdUq','w8kmgCkqkgVcN1u','W4nHWQxcTGq','gwtdVJFcLSksW6OoWOlcJSoaWQS','hCoJBmomCh4','WRqgiCohW6C','fsvqW5/dUKFcUHldUvldSW','rcBcKmk0tq','iCogbCk+WQNcTsfV','cH7cGWrVWOH5kt4F','DeaKW4ddLLykW5JdV8kXWPK','W45oW7pcIcFdTCk7emo3WQ8','WQO4iCoMW44','u8oSfSkFWOG','W6KQz2SEWRi','faHZ','wmoXkSkEWO8','W5tdT8opWQWU','W5fWWO7cOHjXWR02W5JdLGHrkWK','W5uMWRStW7jrW6zYWRxdNCk8uq','W7JdNCoYWOKl','W6HAixxdRW','svjGEw1uW77dQa','nb1IrKi','77Yv5B265yIA56wC5yQ577YJ','jSkXASoXF8og','i8k0uComDa','v8oykq','vSkZemk+gG','upcDOlXJ5OMo5AAQ5Q6/5Pwt77+m','WPm/FXVdRq','W7rFFCkWpINcPG','laH/CxxMSO/MNQ7MIOhLIiJOJRRLJQJVVjRPHPpORRBKU4K','WOT5hG','W71Rtmkynq','Dh3dLcrH','WR7cT8oCWOjfj8o9gq','dIvoW4NdP0hcUtu','WQRcMYdcJq','WPywaI/dGGJdRgxdIJldOW','WOnhjtpcNq','umkepCknka','FvKfW6NdTG','W6ldUvVcTCkOWRPWWPLWqCk6WQ1MeWBcRCk0ehbjF8on','hdbLE2m','AN3dJqzl','WPRcLSkhkmkoWPBcQ8om','WOH3W5BcRhm','c8oNA8oy','WRBdMmooWPy','a2ldN8ocoMLeW6/cQmoVbq','iSoJrCobCa','W4yCFmkZW6q','WPxcUeC','WRpOR43MSyVLJjBMLk8','W53dNmoc','kgRdVIFcNmkr','WOvHW5hcV3i','WOdcT244ca','W4fmW6RcJIe','sIFcRuOG','W4/dNMa5WQG','W5q1WR0D','WPBdHSobg8oEW7iIW7m','W4LZW6dcTsK','d3JdTthcVCkDW7ng','WO3cQLi0kmodWRa8zvW','W7GvWOm5W6C','tZpcNa','ySocW6XFt3/dNCk0W4VdTSkPW6O2W5q','W55tCCkAnJ7cRa','8lUKScNMIANKUBlLR4pNIQ7LLBlVVARLPQtLKB/PO5JLJObRuU++OG','W4xcQ8o4Bwu','W7JdQfVcT8kIW64QW5S','W4D5lSoRWRJcK8o5k04IrCoY','W6tcN8o+E0e','C8k7fCktfq','W5ypwSkuW4e','AvhdHY9U','6zM+5PY05OI/5yYD5yIW55Qw5Pwu6lE45z6n5zY75l+W5OcM5Qkq5B+25A+k5zYE6zwW6k6F776M5yYk5Pwd5lIi6lwJ5OMJ6l2L5AEJ776K','gYJcG8kW','mHX7W4JdOW','wCotoLnpj0nUW6Hp','W5K6WQOqW7v4W6zY','WOnTAWbzWPxdJWFcPSooWPFdLG','srBcQLqW','WQ0QxYFdPq','WPhdNZhdSmkg','WPOqbtxdLqBdVq','W5VdJ2hcVq','WQNcLtVcIhbClW','kSkSuG','W4/dMhxcGmk1','W7y9Fwam','qfRdKtC','bMBdI8ot','Emo/dCkLWPG','WPVcQu8Caa','lSkHumo3BCokW6exWQaJxG','WQ8SAJ4','pw7dPa','WRWUkCo+W5G','dxFdMSoCWR3dKx3dJmk9WPaTWRJcQW','qspcImkcE2G','oSk0uCo5tW','sftdGG','W7jzxSk1oW','WQxcN8o8WOpcKmk3g2zOggW','W4vdigxdUW','nSoNxmodtG','WQZdN8oaWQqf','8l2YTh3LNPFLNPBLOkdLHzxMIzBLIBVVV6ZOVBVLMztVVlW','pdBcRcLcWQ9kgaqJarj0yhOGiqhdM3BcSmoRomkTzhhdOSoiWOZdGKi','BXFcGvqs','WR7cMf4ZjG','WQRdNmooWPiMWOT/W5hdIdxdQq','WPGaaGddMaddVW','umkRmSkTeG','W6L9WORcVb0','WRuKjZtdSG','W4hdLSowWQe9','W4qCWPa6W7a','WR9FjtVcLa','CeCHW5RdI1WQW6xdPCkQ','W7iUyhG','u1RdJci','b8oYA8ojBZb4E0ZcRIZdQLFcO8okW6/dKmoQWQigW63cGSoKECkvWQtdSIC+W4FcSuSRWOSicay','cNpdI8ocWQ3cIIdcH8kiWP0XWR7cU8kfW6m6p3FcV8o1mgHcW78liIFdShKSW7WlWOLdhxqE','W44zW6VdT2e','WOKWlmo4W4a','W7CQzg0dWRtcLSkExCkAW5e','W70dA8oVWRTgW47cMmkmvCo/','W4iBW6VdVx9kWOG9kSoWWRtcP8kQ','8yA0LtNLKAhPNyNNMzZLJz3PGONKV4/LIiBLIAVcIq','W4RdVflcNCkl','WQXBrITUWPRdVZm','W4m8WQGoW6vDW6b1','W4hdKSoxWRaQ','x8kddSkFnq','W4ldMheZWR53','WRSnfrFdGW','W6VdGx7cUCkS','5Rss6kAo5BsU6l+75lIH6zQC','W5tdM1i5WRT/W6aXBq','ACkliSocWQa','W7JdQfZcQmkt','W7DBFCk1','xW0tiL0','W5f1WOhcPs50WQaTW7O','WRZcMConWPNcL8k8','8lAQI8kL','W598WO7cOtfW','WQBdLsBdTSk5','W6GYBSkiW5u','WONdJSoEiCo6','W49ep2tdNSoYWR0tWP0udCkLW7ddQmkW','WRhdL8ohWPy3WQPj','bmoqtSoEAa','toIUVUAYQowmHUAuTq','W6xdIN/cPSkA','WPFcRemwb8okWRy','W51WjmocWPW','WPNcUMaXdW','WOXWCaf9WR3dHbdcSmoDWRNdLW','xCo+eSkvz8oaWQu','vmo/eq','5lU65PwA5O2355Uc6k2d5RcJ5PsH5Roj','WQKUsaBdIq','WPzOmSk1WOa','W5jhqq','pIFcQczd','WP4ThItdGG','faHZuwLC','WQBcR8ojWRZcMW','aGtcMCkoea','W4C1WQai','W7ldMK3cQ8kX','W709WReYW6L/W6G','WOD0CIve','WQVdKmoeWP0','W5VdHfq','mmogdSkVWPtcSIPZ','WP4gocNdKaq','6zIf5PYy5OUG5y2X5yUM55Up5PE66lwH5z+u5z6G5l2o5OoL5QcA5B+r5AY/5z+k6zsB6kYJ77Y75y
2023-09-17 10:21:26 +08:00
// prettier-ignore
function Env(t, e) { "undefined" != typeof process && JSON.stringify(process.env).indexOf("GITHUB") > -1 && process.exit(0); class s { constructor(t) { this.env = t } send(t, e = "GET") { t = "string" == typeof t ? { url: t } : t; let s = this.get; return "POST" === e && (s = this.post), new Promise((e, i) => { s.call(this, t, (t, s, r) => { t ? i(t) : e(s) }) }) } get(t) { return this.send.call(this.env, t) } post(t) { return this.send.call(this.env, t, "POST") } } return new class { constructor(t, e) { this.name = t, this.http = new s(this), this.data = null, this.dataFile = "box.dat", this.logs = [], this.isMute = !1, this.isNeedRewrite = !1, this.logSeparator = "\n", this.startTime = (new Date).getTime(), Object.assign(this, e), this.log("", `🔔${this.name}, 开始!`) } isNode() { return "undefined" != typeof module && !!module.exports } isQuanX() { return "undefined" != typeof $task } isSurge() { return "undefined" != typeof $httpClient && "undefined" == typeof $loon } isLoon() { return "undefined" != typeof $loon } toObj(t, e = null) { try { return JSON.parse(t) } catch { return e } } toStr(t, e = null) { try { return JSON.stringify(t) } catch { return e } } getjson(t, e) { let s = e; const i = this.getdata(t); if (i) try { s = JSON.parse(this.getdata(t)) } catch { } return s } setjson(t, e) { try { return this.setdata(JSON.stringify(t), e) } catch { return !1 } } getScript(t) { return new Promise(e => { this.get({ url: t }, (t, s, i) => e(i)) }) } runScript(t, e) { return new Promise(s => { let i = this.getdata("@chavy_boxjs_userCfgs.httpapi"); i = i ? i.replace(/\n/g, "").trim() : i; let r = this.getdata("@chavy_boxjs_userCfgs.httpapi_timeout"); r = r ? 1 * r : 20, r = e && e.timeout ? e.timeout : r; const [o, h] = i.split("@"), n = { url: `http://${h}/v1/scripting/evaluate`, body: { script_text: t, mock_type: "cron", timeout: r }, headers: { "X-Key": o, Accept: "*/*" } }; this.post(n, (t, e, i) => s(i)) }).catch(t => this.logErr(t)) } loaddata() { if (!this.isNode()) return {}; { this.fs = this.fs ? this.fs : require("fs"), this.path = this.path ? this.path : require("path"); const t = this.path.resolve(this.dataFile), e = this.path.resolve(process.cwd(), this.dataFile), s = this.fs.existsSync(t), i = !s && this.fs.existsSync(e); if (!s && !i) return {}; { const i = s ? t : e; try { return JSON.parse(this.fs.readFileSync(i)) } catch (t) { return {} } } } } writedata() { if (this.isNode()) { this.fs = this.fs ? this.fs : require("fs"), this.path = this.path ? this.path : require("path"); const t = this.path.resolve(this.dataFile), e = this.path.resolve(process.cwd(), this.dataFile), s = this.fs.existsSync(t), i = !s && this.fs.existsSync(e), r = JSON.stringify(this.data); s ? this.fs.writeFileSync(t, r) : i ? this.fs.writeFileSync(e, r) : this.fs.writeFileSync(t, r) } } lodash_get(t, e, s) { const i = e.replace(/\[(\d+)\]/g, ".$1").split("."); let r = t; for (const t of i) if (r = Object(r)[t], void 0 === r) return s; return r } lodash_set(t, e, s) { return Object(t) !== t ? t : (Array.isArray(e) || (e = e.toString().match(/[^.[\]]+/g) || []), e.slice(0, -1).reduce((t, s, i) => Object(t[s]) === t[s] ? t[s] : t[s] = Math.abs(e[i + 1]) >> 0 == +e[i + 1] ? [] : {}, t)[e[e.length - 1]] = s, t) } getdata(t) { let e = this.getval(t); if (/^@/.test(t)) { const [, s, i] = /^@(.*?)\.(.*?)$/.exec(t), r = s ? this.getval(s) : ""; if (r) try { const t = JSON.parse(r); e = t ? this.lodash_get(t, i, "") : e } catch (t) { e = "" } } return e } setdata(t, e) { let s = !1; if (/^@/.test(e)) { const [, i, r] = /^@(.*?)\.(.*?)$/.exec(e), o = this.getval(i), h = i ? "null" === o ? null : o || "{}" : "{}"; try { const e = JSON.parse(h); this.lodash_set(e, r, t), s = this.setval(JSON.stringify(e), i) } catch (e) { const o = {}; this.lodash_set(o, r, t), s = this.setval(JSON.stringify(o), i) } } else s = this.setval(t, e); return s } getval(t) { return this.isSurge() || this.isLoon() ? $persistentStore.read(t) : this.isQuanX() ? $prefs.valueForKey(t) : this.isNode() ? (this.data = this.loaddata(), this.data[t]) : this.data && this.d