2023-09-08 09:56:36 +08:00
|
|
|
|
/*
|
|
|
|
|
活动名称:幸运抽奖(超级无线)
|
|
|
|
|
活动链接:https://lzkj-isv.isvjcloud.com/prod/cc/interactsaas/index?activityType=<10020/10021/10026/10041/10042/10046/10062/10063/10073/10080>&templateId=<模板id>&activityId=<活动id>&nodeId=<nodeid>&prd=cjwx
|
|
|
|
|
环境变量:jd_lzkj_loreal_draw_url // 活动链接
|
|
|
|
|
jd_lzkj_loreal_draw_Notify // 是否推送通知(true/false),默认不推送
|
|
|
|
|
jd_lzkj_loreal_draw_opencard // 是否入会(true/false),默认不入会
|
|
|
|
|
jd_lzkj_loreal_draw_break // 493后继续执行,默认退出运行(true/false)
|
|
|
|
|
jd_lzkj_loreal_draw_Interval // 自定义抽奖间隔(正整数),默认1秒
|
|
|
|
|
jd_lzkj_loreal_draw_Number // 连续无次数跳出,默认 7 次,火爆账号请设置黑名单,否则也会占用次数
|
|
|
|
|
jd_lzkj_loreal_draw_MaxMiss // 最大连续未抽中次数(正整数),达到此次数后会跳过运行对应账号,默认不启用此功能
|
|
|
|
|
|
|
|
|
|
注释:
|
2023-07-28 21:29:02 +08:00
|
|
|
|
请使用本地IP环境 请使用本地IP环境 请使用本地IP环境
|
2023-09-08 09:56:36 +08:00
|
|
|
|
需要链接中的三个必要参数才能正常访问活动页,运行脚本至少需要提供 activityId 参数
|
|
|
|
|
只有在没有抽奖次数的前提下才会做任务,做任务静默运行没有打印日志
|
2023-07-27 16:14:01 +08:00
|
|
|
|
|
|
|
|
|
cron:1 1 1 1 *
|
|
|
|
|
============Quantumultx===============
|
|
|
|
|
[task_local]
|
2023-09-08 09:56:36 +08:00
|
|
|
|
#幸运抽奖(超级无线)
|
|
|
|
|
1 1 1 1 * jd_lzkj_loreal_draw.js, tag=幸运抽奖(超级无线), enabled=true
|
2023-07-28 23:36:10 +08:00
|
|
|
|
|
2023-09-08 09:56:36 +08:00
|
|
|
|
*/
|
|
|
|
|
const $ = new Env('幸运抽奖(超级无线)');
|
2023-09-30 17:51:41 +08:00
|
|
|
|
var version_='jsjiami.com.v7';const IIil1lIi=IiiI1i1;(function(IlIlII1I,lilIiii1,ii11lI,liillIii,iIi1Ii,I111i1ll,IiilI111){return IlIlII1I=IlIlII1I>>0x1,I111i1ll='hs',IiilI111='hs',function(li11llIl,Ii11I11I,i1liI11,iiIIiI1i,Il11liii){const ll11ili1=IiiI1i1;iiIIiI1i='tfi',I111i1ll=iiIIiI1i+I111i1ll,Il11liii='up',IiilI111+=Il11liii,I111i1ll=i1liI11(I111i1ll),IiilI111=i1liI11(IiilI111),i1liI11=0x0;const l11lIlII=li11llIl();while(!![]&&--liillIii+Ii11I11I){try{iiIIiI1i=-parseInt(ll11ili1(0x216,'IXFG'))/0x1*(parseInt(ll11ili1(0x585,']90v'))/0x2)+parseInt(ll11ili1(0x3e1,'O$e('))/0x3*(parseInt(ll11ili1(0x511,'tY@W'))/0x4)+parseInt(ll11ili1(0x389,']g^i'))/0x5+parseInt(ll11ili1(0x3ea,'nQg2'))/0x6*(parseInt(ll11ili1(0x57c,'Kg2l'))/0x7)+-parseInt(ll11ili1(0x418,'ZiDM'))/0x8+parseInt(ll11ili1(0x1c4,'vx^C'))/0x9+-parseInt(ll11ili1(0x4b3,'ZiDM'))/0xa;}catch(iIi1llIl){iiIIiI1i=i1liI11;}finally{Il11liii=l11lIlII[I111i1ll]();if(IlIlII1I<=liillIii)i1liI11?iIi1Ii?iiIIiI1i=Il11liii:iIi1Ii=Il11liii:i1liI11=Il11liii;else{if(i1liI11==iIi1Ii['replace'](/[PkgrTbBxCpeJwWONMhGdu=]/g,'')){if(iiIIiI1i===Ii11I11I){l11lIlII['un'+I111i1ll](Il11liii);break;}l11lIlII[IiilI111](Il11liii);}}}}}(ii11lI,lilIiii1,function(lIiI,iIiI1Iii,illII11I,IIl1IlIl,liIiiilI,illil1I,iil11111){return iIiI1Iii='\x73\x70\x6c\x69\x74',lIiI=arguments[0x0],lIiI=lIiI[iIiI1Iii](''),illII11I=`\x72\x65\x76\x65\x72\x73\x65`,lIiI=lIiI[illII11I]('\x76'),IIl1IlIl=`\x6a\x6f\x69\x6e`,(0x140807,lIiI[IIl1IlIl](''));});}(0x186,0x1e6fc,iIiiiIli,0xc5),iIiiiIli)&&(version_=iIiiiIli);const liIl1il=$[IIil1lIi(0x522,'Js3N')]()?require(IIil1lIi(0x3df,'BXfl')):'',iill11I1=require(IIil1lIi(0x44f,'RsB]')),lliiI1l1=require('./function/sendJDNotify'),I1i1l111=require('./function/krgetToken'),{loreal_savePrize:iiilI1I1}=require('./function/krsavePrize'),l11lilii=require(IIil1lIi(0x361,'IXFG'));let llIIlIi1=[];const Il11iIlI=process[IIil1lIi(0x3e9,'xs8@')][IIil1lIi(0x586,'WGGg')]||'',iliii1il=process['env'][IIil1lIi(0x5a6,'IXFG')]===IIil1lIi(0x51f,'40r)'),iIll1lii=process[IIil1lIi(0x21b,'ZiDM')][IIil1lIi(0x2d3,'MRRy')]===IIil1lIi(0x52b,'yMk$'),li1l1I=process['env']['jd_lzkj_loreal_draw_break']===IIil1lIi(0x317,'xs8@'),l1lI1lli=process[IIil1lIi(0x251,'MRRy')]['jd_lzkj_loreal_draw_Interval']||'';let lilllil1=process[IIil1lIi(0x59f,'BXfl')][IIil1lIi(0x44b,'v(cH')]||'',li111iI1=!![],iIIil11l=process['env'][IIil1lIi(0x305,'M7H)')]?process['env'][IIil1lIi(0x5b4,'87f#')]:'7',li1iIIi1='',IIiil='';function IiiI1i1(_0x22a399,_0x1f6025){const _0x248d6b=iIiiiIli();return IiiI1i1=function(_0xecc00c,_0x23441f){_0xecc00c=_0xecc00c-0x1ac;let _0x5a8fb0=_0x248d6b[_0xecc00c];if(IiiI1i1['fUwaXc']===undefined){var _0x4d3cdf=function(_0x22a330){const _0x1aa991='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x1daffa='',_0xe5f044='';for(let _0x5d137a=0x0,_0xbd425c,_0x559ad2,_0x461ef2=0x0;_0x559ad2=_0x22a330['charAt'](_0x461ef2++);~_0x559ad2&&(_0xbd425c=_0x5d137a%0x4?_0xbd425c*0x40+_0x559ad2:_0x559ad2,_0x5d137a++%0x4)?_0x1daffa+=String['fromCharCode'](0xff&_0xbd425c>>(-0x2*_0x5d137a&0x6)):0x0){_0x559ad2=_0x1aa991['indexOf'](_0x559ad2);}for(let _0x3f5d6a=0x0,_0x50433f=_0x1daffa['length'];_0x3f5d6a<_0x50433f;_0x3f5d6a++){_0xe5f044+='%'+('00'+_0x1daffa['charCodeAt'](_0x3f5d6a)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0xe5f044);};const _0x507826=function(_0x333152,_0x5d5f80){let _0x580052=[],_0x317903=0x0,_0x2651e9,_0x3d723d='';_0x333152=_0x4d3cdf(_0x333152);let _0x1785ef;for(_0x1785ef=0x0;_0x1785ef<0x100;_0x1785ef++){_0x580052[_0x1785ef]=_0x1785ef;}for(_0x1785ef=0x0;_0x1785ef<0x100;_0x1785ef++){_0x317903=(_0x317903+_0x580052[_0x1785ef]+_0x5d5f80['charCodeAt'](_0x1785ef%_0x5d5f80['length']))%0x100,_0x2651e9=_0x580052[_0x1785ef],_0x580052[_0x1785ef]=_0x580052[_0x317903],_0x580052[_0x317903]=_0x2651e9;}_0x1785ef=0x0,_0x317903=0x0;for(let _0xd9945d=0x0;_0xd9945d<_0x333152['length'];_0xd9945d++){_0x1785ef=(_0x1785ef+0x1)%0x100,_0x317903=(_0x317903+_0x580052[_0x1785ef])%0x100,_0x2651e9=_0x580052[_0x1785ef],_0x580052[_0x1785ef]=_0x580052[_0x317903],_0x580052[_0x317903]=_0x2651e9,_0x3d723d+=
|
2023-07-27 16:14:01 +08:00
|
|
|
|
// prettier-ignore
|
2023-09-08 09:56:36 +08:00
|
|
|
|
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
|