faker3/jd_unFollow.js

18 lines
82 KiB
JavaScript
Raw Normal View History

2024-11-12 11:17:55 +08:00
/*
取关收藏的店铺和商品
环境变量JD_UNFOLLOW_PIN_FILTER_GOODS // 不取关商品的账号填入pin多个用@分割)
JD_UNFOLLOW_PIN_FILTER_SHOP // 不取关店铺的账号填入pin多个用@分割)
cron: 7 7 7 7 * jd_unFollow.js
系统可能会存在无法被正常取关的异常商品或异常店铺
*/
const $ = new Env('取关店铺和商品')
function nsdeuG(){}var d239fOG=Object['defineProperty'],tYUXw0,E2hS0b,i_ljqB,Yv3gfH,o2xU_N,rUB6bR,XiITvM,RMFCZQP,XTCNCmi,ky_KIE,kT1oyS,SsybBhY,ewexXZb,fM8v1sw,QFIsq7,WyfiaT,oge_Cu,kbI0wt,mtBcABD,NHNUPGa;function gLAqLAy(nsdeuG){return tYUXw0[nsdeuG<0x54?nsdeuG>0x54?nsdeuG+0x1:nsdeuG>-0x5e?nsdeuG+0x5d:nsdeuG-0x61:nsdeuG-0x63]}tYUXw0=yuNxHtf();function l59u6o(nsdeuG,d239fOG){var i_ljqB=T1ceHa(nsdeuG=>{return tYUXw0[nsdeuG>0x47?nsdeuG-0x48:nsdeuG-0x19]},0x1);return E2hS0b[gLAqLAy(-0x48)](null,nsdeuG,i_ljqB(0x56),{value:d239fOG,configurable:i_ljqB(0x94)})}E2hS0b=Object.defineProperty;var TJfwa5H=[],gP_PUvM=['_EVnEhli',',G}D0S>Re','U!I"j`GA','~>Fnz1jvX','5uAnt~CA','S0scXihD','``+%0mP','=pkqt','B*,!]w{{Xuv','t6dL22f5DF)[im','icANs','o?vYu{f#','5ED:=6b#','_?i>','2ADRw','S1E+v',gLAqLAy(-0x5d),'FV_ywq>:',']&%6/','DiU6','~u0t4jX2','bI>7Zm4:','d=Z78Xj2','+b+V1GV2','~N`a>','BH1}]qk','~u0t4j))U^`KjSc,"i@hEVAW"u58o10v0k','g;"n,','2!0+','i=E+}xH:','&?4+',':!%}B','D:LbA%V3.,c$RAxqbF|3.52',')ep_A%">*O4m2','b<W+/','=NL?%7W:','?=K6txk',':!%}B',gLAqLAy(-0x5d),'XitymQk','t;<wgntOX|$','@?Qh;jBll"','d;<wgntOX|Dy=X=e62','Db@4z7_:',gLAqLAy(-0x5b),'OV_yW','d;L?i<_:','vNuwaqH:','Xi4+','}EQxOZQIO+80k','E=cM^jBll"','@N4+','E=cM^ju:','mi&}nq])?Ocpe!','to[}$wd:','%!W+/','d;G}gxU[^{j*2',',o^6=','S1<wUak','@N?yC0H:','i=[}>M2h(','vN[}B','d;K6BnS*_O?a=XveW2','BN#+txS0~','@N4+','c;>wnq=:','XiG4hStt=>','@?Qh;jBll"','}s.M','QS2R:hcs}F06MG>LxA!QQ/!,VhiLvp+N3R)HYkPyF$aiubT2OS{q',gLAqLAy(-0x57),'/NE+CnT:6LgVR_Qiz=^6/','/oQhU)))5[OFg5diNuMwwqk','NNG}>ML2',gLAqLAy(-0x5a),'VRKg9"?W]','@!whCLNi','z;W+v','#PVMI',')s#hlwmVx2N',gLAqLAy(-0x5c),'=N%}pVd:',gLAqLAy(-0x5c),'Fsn+/','RR@+O`X;+2JO~4Z}>Md5','=N%}pVd:','@N4+','M_v}r]H?G&W+uT]XYzfrr54>0F(r&p2c@Rt}h',gLAqLAy(-0x5b),'#.>9;qMP','}s.M','XiG4hSd:','QS2R:hcs}F06MG>LxA!QQ/E','L8uA2igyvB]*psP0<F!J"e2','NNG}>Mw/g[','d;gjcnqr?OIv}REsV1G}W',gLAqLAy(-0x58),'W;owE<Zt~','ne;C32x_','z;W+v','ssShQ&3E','2Y)`F2M<K4ckp*WiB]R{','2Y)`F2#8','h]ZI0KP_','Th4.z^)i','KH^6','1OZgz^)i','dtQIRXNi','TRBbO`li','@N2nCai:','1O~MwDxax','*al:','"iR}>M7W|5JHCA@%g;m6nnSflL[V3X@%ls#+lg"hxOVD~$giXi?y6','%/T``74:VN','6/]MK*3:','9<DhwgVi','Pc#+&Vd:','%!4hQ&Zi','MEZUgXqi','vy_yMg3:','Cs4h{1Qi','+2XECn$:','{{[5Uk20','=8u.O!0_','bkF1XXti','neKa{',',JDht"li','v7V4;7i:','N8sIQ2e_','OE*&sL20','4|Sh1B`0','KrkI_]x_','{1L!Bk0_','?FqKh','H+D=1','1F&=?|~NCJH<8','H+D=1','M_v}r]H?G&W+uT3L4+~r{ZE','3nDAEN_y]wDpk/c',gLAqLAy(-0x5b),gLAqLAy(-0x59),'M_v}r]H?G&W+uT3L4+~r{Z4>0F(r&p33,)E^t',gLAqLAy(-0x5a),'=NtyB','/NE+CnT:6LgVR_Qiz=^6/',gLAqLAy(-0x55),'`V#+VSA:','1@PMqqk','NNG}>Mw/g[','@N4+','<VV}4qW:',gLAqLAy(-0x56),'NcJ~=','/oQhU)))5[OFg5diNuMwwqk',gLAqLAy(-0x5a),'O.MJ)*hA=_Z;4y2xz?57lqnNW>b%,m!,','W;owE<Zt~','Xi&}e0$:','L8G@^!(}}=x*<"5q`|J996($_P/;2(',gLAqLAy(-0x5a),'<VV}4qW:','EbV}&wW:','1dm6',gLAqLAy(-0x5b),gLAqLAy(-0x59),'L8G@^!(}}=x*<"5q`|J996$vKy_7B(',';;X?cnI:','@ND6Z0i:','AoG4/','?c*h:H$:',gLAqLAy(-0x58),'/;&}BM$:',gLAqLAy(-0x57),'NNG}>MN2','voO+/',gLAqLAy(-0x5a),'EbV}&wS*2|o','lzK7d','d;gjcnI:','@N2nCai:','@N4+','O.MJ)*hA=__eJhk=~hps%qNWB>b%,m!,','W;owE<Zt~','Xi&}e0$:','L8G@^!(}]wDpk/x0R?#9T,($_P/;2(',gLAqLAy(-0x5a),gLAqLAy(-0x56),'W;owE<Zt~','Xi&}e0$:','L8G@^!(}]wDpk/x0R?#9T,$vKy_7B(','/NE+CnD[}|%<2',gLAqLAy(-0x5a),gLAqLAy(-0x5b),';xW~jpiZ5','to[}$wd:','vogj^M`e~','wzU(','(H@}EPk','}bU!}<k','do>wwqOf_O1V2','/oQhU)))5[OFg5diNuMwwqk','(H@}TPk','_uHx1]#Wl"|*EREs<VD=v','BNtyt','!!?y&p*pM"','S1G}L#|^}K',']Vv}Cn{t~',';oK6Z0"[l"','|(YK]4!a','Eb,w`lk','OV_yW','y;[}bws[V[?*2','4}Ct','Z=WCBnd:','^]=pX_}a','y|wTx4FF~Qw5,?k=A?.#x','b<G}e0!45[EF#;l_cx@}B','D(wTIE8bs3d@KaKgx|@ts4m*@G7urNl','Rs<xog$*U[ia?:g3nTT1aD3:(OS}9=u','^=<wZUHiuhKMU2s=5b#~zy><X|b*"04','it`ENY3cFO1flr>JJ7_[<TWWQbxmjgN',')1V}yC!dO+.xI:,W#>m=v@9]34PG::~','OP+K(0oxR','0X+KcVxW','69[bg:WW','3=FtX#Ja','#Um=1],:','`?&}F#_:','!!V}QM1B+"5`2','s,f#F','d/V4t','@N?y&ww2','sh2b','O+Qhtx>45[','yJ1wG#(qPA70dmu','(HZwgntt~','H$_?/UAW','0MYDn','_uHx1]=:',';;R}KMi:','v;V}xMk','do>wwq,:','e=Blx','PP[$A4]a','.(mKy<=a','AoG4/','MX7#H~j"WS>','|(Q#57Oa','y;[}bw$:','k9Fsx','@N?y&w8*xO$','&?Px8<@/ohUak','PP[$A4V%$@gAZ2u.ft+K',
// 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