faker3/jd_unFollow.js

20 lines
30 KiB
JavaScript
Raw Normal View History

2024-06-28 15:38:28 +08:00
/*
取关收藏的店铺和商品
环境变量JD_UNFOLLOW_PIN_FILTER_GOODS // 不取关商品收藏的账号填入pin多个用@分割)
JD_UNFOLLOW_PIN_FILTER_SHOP // 不取关店铺关注的账号填入pin多个用@分割)
cron:15 0-23/12 * * *
============Quantumultx===============
[task_local]
#取关收藏的店铺和商品
15 0-23/12 * * * jd_unfollow.js, tag=取关收藏的店铺和商品, enabled=true
系统可能会存在无法被正常取关的异常商品或异常店铺
*/
const $ = new Env('取关店铺关注和商品')
2024-08-02 11:37:33 +08:00
const _0x3e30e2=_0x31c1;function _0x53a7(){const _0x2be173=['xCkMWQ7cSwz+W4NcOSkbsvm','WQVcQrlcOhNdMCk5','6lsX5y+a5PED5PwY','CSouW6HzWR5FaG','W7/cLLxdHCosyW','ueddK8ogW6JcHW','WO/dTwK','kfbe','W6OAWQGNobZdLYWQWPm','WPtdKc00W6tcRuS','WQVcJxBdQSoEWOtdSaOj','WRLfW5jCWPLr','dmo/oSktW6tcLSoJWRac','W7FcPCo4W4ypg2Wg','WP9XW6RcHxJdSG','W7DBzG','CmkTW5K','WOWSdCoFW67dJ8oJ','WP8duIrAAa','zX3cShb1','WQmErdnMFsDi','WQBcUmkivZZdL0pLV4dLPiVJGyZKUOdKUB3OTzhLJR8','CWJcQf9UfZ1MB8obFSoUWRK','5Rk95P+l5PAi6jwb55Iq5zwf5zka','W7yWbCoUWRCCWRVdLHW','mrldJmocWOjIWQuK','BSk8W4ntlSoFmdxdLSoBW75EWRm/W6pdTG','WQiHFmo5W7FcGW','rL5kWQRdN8oWCmkfyKvzW7yvWOVcSmooW6z2WR9+u8kQ','WQfiW5r1','WQrBnW','WOPHW7dcJhFdOHfQxfT8W4ZcJtyqBfFdRa0','xvZdHW','nSoOWPtcPmk+kuS','zSk2W4G','WQBdSmoOW5mfeeO+zCoqiCkIWRe','WQacjmovpmozjSkWec87FG','DCoEW7je','WQCGAa','W6GCW6WcnutcHq','pXxcLCoGWQaaWQOHWRbVW7OgoeGtuSkuD8kouxdcJIiFcwlcRSopW67dSM/dJZqVWPFdJqBdHwCZEmoGlmowpW/dKq','q0LeW7THWOmX','A8kPW595kmoqps7dImoKW6iEWQ9NW7FdTrH0W4nQWQFcJ8o2BSoIwanDWRjEl8k/W6q','W5LOWP0bBaPEza3dSrCRW7JcUwxdGG','5y2v5ywi5BQ66zkY5ysW5RkO5OQR5yQl','i3vJqCk+DGVcOgZcN8kukSk3','lsavW6ldLW','uerxWPFdS8o2','W4tdOSkrBgTlW55EW6JcSa','4P2xz+AETUIUKUw4N+MsTowfI+AWNowiLUIIS+wNI+I1PSo5cSkzaW','AmoJgSodWRJdTXW','WOfHWQW','W7DhySkUECkk','WQBcPmkbomoNhG','WQyICHu','s8kNWRpcSNTA','W7qXeSo1WQa9WR3dNaNcSSkrtvXWps3dR8kL','W5tcJNiVW4/cSxi6W6a','Dt8hDmoaxMu','5Bwp5yw+5Rcz','rvZdLmooW6pcPZNcOa','D0tcJ8kvW5KDW6CSW6r2WRfNvq','jmkUleNdG8o2W7i','5BA16k+o57YD5B2D5yUF6lsl5y+k5lM75y6g5ysv5zw+5zcv5Pwg6jAT','WOVdLYu','WQXhW5nXWO56','WP5SW6VcT0xdVHTPzhn/W4G','qKnq','CKFdNxBcQxNcQ8kd','WQDfW41oWOHkbG','D8o5hG','kX8u','W6TEtcWMmSoi','W5pdUmkyCN16W6jAW6VcR8odrCk8W5lcQKtcQMG','WQLgW4C','WQdcPrK','5lQj5zEn5zkj','WQbdF8kJr8kEkL8','q8kTWQtcPW','5y6r5ysd5zs15zop5PAK6jEI5Asm6lwt','DIiGa8oPkv0','W47dQmktz3bu','5Rgu5PY55ywP5Rc555Qn5BMO6zk9','WPHuECo/W6LyW4ac','ECoyW7DEWRPk','WOjylW','EvzqxW','e8kYjLFdQmo2W7hcQq','F0njsGNdIXf+W7ldSmkFW4r+W4pdPq9JzuBcG8kMtSkxpCkXp0BdKSouW4ddPLi3WOS','E8ouW7DSWRbuc8o+dSkUWQLhWPFcLSoRta','WQ/dKGddJ8oeFGlcNZK','5BsZ5PAJ6jwt','Ac88amobkKS','uSkMxCo+','FmoEW7zhWPzC','4P65eoAFV+ISS+wvJ+wqVUweToAZKUwlVEIGMUwKJEI2OMbVW77dNW','CrxcTw0','WPLFFq','WQfAnmkesq','renaWQJdUCoxB8kzuuDxW4KlWOJcU8omW7zD','WQ3cPmkBgCo8gSoqWQFcP3/cU8oUbW','A8kJW5FdUG','W44g5yYC5ysu5zs55zkc5PEZ6js65AsW6lw5W6ZdQmoddG','5lMj5y+P5ywq5BUX6zkC5yEV5Rkw6lAX5y2XW4ZcHtW','WQy8Aa','W7dcI1C','5Rkq5P+k5ywh5Rg655Mv5BIG6zcP','W58Fma','zSoRkSkKW7hcVSkf','5lMY5y2D5ys75zA85zgl5PEh6jwf6lEW5y6mDaSK','WOfRW6m','k8kGmW','WQnewcRcGKZdPSkbWQzJvmoSAW','iIqpW6BdI2u','uLnrWPZdR8o9BmkAsNTiW7yj','FsG/hmoNowJcHM7cV8kpimkTE8ooufW','WRhdOCodW6udeG','4P6kW6ZMNyVNNlBOR6/MS7ZdVa','DclcJ8krWRe','WQBcRSki','CCkXW5BdOCoKlJldNM7dNJ4','jampceRdHaDHW5BdLmkxWQ5hWQK','WQOLBSoK','AmoIc8ojWRpdOWBcPNC','WPnjWQ4c','WP1oAmoSW7XqW5OdW5FdUCktWRjotCoUjeqn','eSoQxSo2pYhcKqlcTJpcOcxdT8kpW6JcPCoZeCkKWRCHFei2Cd91','WOjPWR8GksZdJmod','WQNcRSkDla','WPHVWQGQcWpdLmol','W5fIWPy','5BEo5yA25Rod','xfBdK8oCW67cJIK','W6fDF8kuwCkflSkukaqPFa','WRzexXNcGvq','5REU5yQi5yEz5y+y77+3EclcNmkF5OQg55I1WPtLU5FPKkBLHkhMS7GQ5zAK5zgi5Pwm6jE/','xCkMwSo1WQxdNW','zmoCsSoxWROMtZtdHmoSWRq','q1xdJgu','vLLbWR8','5y6X5yYp5yEC','W4FORy/MSidLPBxOTOJdQEkEPe4','WQRcOWy','W7ddVaxcGh3dMCkwW5W','CCkNW43dVCo1zcq','ECkWW4ZdOCoM','5lIB5BQK6zgA','WOddNtyiW4lcRLeaW6xdHa/dI1ir','WRrqW4XxWOrAe8k4W5VdUmoFWPyQWQ89FG','WOa7p00Qma','WOnZWP8btwC','dNT8mYJdMJhdM8okWRNdSJJdPH46W5uExL4+W7RdVMCOW5LRWQBcHG','WRLpW5S','wfnwWQNdOCo2zq','W7HAECkn','DfHqvZpcLq','8y25QSop','WQWv5y+g5yAq5BQD6zcx5ysY5Rcm5Awv6lwiEJxcVMa','WOvUWR8NeINdHmov','WOhdLY4OW4lcVMGCW5NdLbVdNfmUzXSb','WPLiWQ4cbW','WQXvwbZcNHRcPCobWQjyu8oZnCojW7WtESkQW7ijmCos','fCoSjq','B8kQW5hdUCohAY7dG0pdHtLz','x1f6WQNdQmo+Ca','WOddNtymWPJcUKW','WQngW4X4WPn5z8oToN3cOWZcSvKlD8o/','WO7dLIeOW5JcRv0D','W6WqWOukW5GjomkLW4hdNmo8W5m','WRBdTmo1W6e','44of5O+W56Ag44cQ6kYA5ywX6i+f5yYAW7hdUmoEW5iPWRK','x8kIwCo3','WQbajmkrqSoCjMitWRCPWPfFeLyCWQLKCGtcNSotWPBcIhxdTvJdMSovwSoiW7VdKf4','WOHgW5P9WPbIvSkWydFdPK/dRxWYzCoVWPmEW7tcUmo6W5v0tSofW7dcLCoxv8o2W6H1W5hcQJRdKSonWPxcVvmyWR9mptVdJNX2jmoLjq4ZW5tcOCoDW4DRW4tdNSoczSoBFLBcJ8
2024-06-28 15:38:28 +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