2023-07-27 16:14:01 +08:00
|
|
|
|
/**
|
|
|
|
|
|
|
|
|
|
活动名称:签到有礼(超级无线欧莱雅)
|
|
|
|
|
活动链接:https://lzkj-isv.isvjcloud.com/prod/cc/interactsaas/index?activityType=<10023/10040>&templateId=<模板id>&activityId=<活动id>&nodeId=<nodeid>&prd=cjwx
|
|
|
|
|
支持activityType :(10023/10040)
|
|
|
|
|
环境变量:jd_lzkj_loreal_daySign_url // 活动链接
|
|
|
|
|
|
2023-07-28 21:29:02 +08:00
|
|
|
|
请使用本地IP环境 请使用本地IP环境 请使用本地IP环境
|
|
|
|
|
|
2023-07-27 16:14:01 +08:00
|
|
|
|
cron:1 1 1 1 *
|
|
|
|
|
============Quantumultx===============
|
|
|
|
|
[task_local]
|
|
|
|
|
#lzkj_loreal签到有礼
|
|
|
|
|
1 1 1 1 * jd_lzkj_loreal_daySign.js, tag=lzkj_loreal签到有礼, enabled=true
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
const $ = new Env("签到有礼(lzkj_loreal)");
|
2023-07-28 23:36:10 +08:00
|
|
|
|
var version_='jsjiami.com.v7';const Il1l1l=iii1II;(function(IiII11,I11liI,ilIilI,iIlIl1,lli1iI,I1II1I,iI1I){return IiII11=IiII11>>0x3,I1II1I='hs',iI1I='hs',function(liIiiI,l11Iii,IIllii,IIllil,Il1l1I){const ilIill=iii1II;IIllil='tfi',I1II1I=IIllil+I1II1I,Il1l1I='up',iI1I+=Il1l1I,I1II1I=IIllii(I1II1I),iI1I=IIllii(iI1I),IIllii=0x0;const lIII=liIiiI();while(!![]&&--iIlIl1+l11Iii){try{IIllil=-parseInt(ilIill(0x4b2,']n*5'))/0x1*(parseInt(ilIill(0x52b,'RbwV'))/0x2)+-parseInt(ilIill(0x579,'j[d*'))/0x3*(parseInt(ilIill(0x587,'%lr&'))/0x4)+parseInt(ilIill(0x3c2,'Z2V('))/0x5*(-parseInt(ilIill(0x3c4,'ZUt0'))/0x6)+-parseInt(ilIill(0x3d6,'!kaO'))/0x7+parseInt(ilIill(0x3b7,'k[%3'))/0x8*(-parseInt(ilIill(0x1ac,'f*#Y'))/0x9)+-parseInt(ilIill(0x351,'pjQg'))/0xa+-parseInt(ilIill(0x362,'8$sU'))/0xb*(-parseInt(ilIill(0x3f0,'pjQg'))/0xc);}catch(iI11){IIllil=IIllii;}finally{Il1l1I=lIII[I1II1I]();if(IiII11<=iIlIl1)IIllii?lli1iI?IIllil=Il1l1I:lli1iI=Il1l1I:IIllii=Il1l1I;else{if(IIllii==lli1iI['replace'](/[SMplVQKfeOkhTnLrAI=]/g,'')){if(IIllil===l11Iii){lIII['un'+I1II1I](Il1l1I);break;}lIII[iI1I](Il1l1I);}}}}}(ilIilI,I11liI,function(liIii1,Iili11,I111II,lII1,iIlIlI,lIl11,ilIili){return Iili11='\x73\x70\x6c\x69\x74',liIii1=arguments[0x0],liIii1=liIii1[Iili11](''),I111II='\x72\x65\x76\x65\x72\x73\x65',liIii1=liIii1[I111II]('\x76'),lII1='\x6a\x6f\x69\x6e',(0x136afb,liIii1[lII1](''));});}(0x610,0x4ae80,Iii11l,0xc4),Iii11l)&&(version_=Iii11l);const iilIii=$[Il1l1l(0x1ec,'RbwV')]()?require(Il1l1l(0x300,'FJ%N')):'',iII111=$['isNode']()?require(Il1l1l(0x56c,'skZ@')):'',Ili1ii=require(Il1l1l(0x525,'k[%3')),lIiIil=require(Il1l1l(0x1ff,'cAWp')),llIiii=require(Il1l1l(0x19a,'dQBV'));let IlII={},IiIili=process[Il1l1l(0x2df,'KOR6')]['jd_lzkj_loreal_daySign_url'],llIiil=null,IlIi11='',l1ll1l='';$[Il1l1l(0x193,'FJ%N')]=![];let III1iI=null,iIIlIl=[],iIIlIi='',iilIll='',iilIli='';function iii1II(_0x131767,_0x58b0c9){const _0x5760d0=Iii11l();return iii1II=function(_0x445ee,_0x2629d4){_0x445ee=_0x445ee-0x192;let _0x259e77=_0x5760d0[_0x445ee];if(iii1II['FLGety']===undefined){var _0x741de9=function(_0x1a9f1a){const _0x35fb5a='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x21f666='',_0x525c22='';for(let _0x4de1a4=0x0,_0x5060ad,_0x56c3b4,_0x5696a3=0x0;_0x56c3b4=_0x1a9f1a['charAt'](_0x5696a3++);~_0x56c3b4&&(_0x5060ad=_0x4de1a4%0x4?_0x5060ad*0x40+_0x56c3b4:_0x56c3b4,_0x4de1a4++%0x4)?_0x21f666+=String['fromCharCode'](0xff&_0x5060ad>>(-0x2*_0x4de1a4&0x6)):0x0){_0x56c3b4=_0x35fb5a['indexOf'](_0x56c3b4);}for(let _0x48274a=0x0,_0x4be2aa=_0x21f666['length'];_0x48274a<_0x4be2aa;_0x48274a++){_0x525c22+='%'+('00'+_0x21f666['charCodeAt'](_0x48274a)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x525c22);};const _0x2279f7=function(_0x368362,_0x489540){let _0x3a41b1=[],_0x4a2880=0x0,_0x2523d3,_0x393f64='';_0x368362=_0x741de9(_0x368362);let _0x1b8af6;for(_0x1b8af6=0x0;_0x1b8af6<0x100;_0x1b8af6++){_0x3a41b1[_0x1b8af6]=_0x1b8af6;}for(_0x1b8af6=0x0;_0x1b8af6<0x100;_0x1b8af6++){_0x4a2880=(_0x4a2880+_0x3a41b1[_0x1b8af6]+_0x489540['charCodeAt'](_0x1b8af6%_0x489540['length']))%0x100,_0x2523d3=_0x3a41b1[_0x1b8af6],_0x3a41b1[_0x1b8af6]=_0x3a41b1[_0x4a2880],_0x3a41b1[_0x4a2880]=_0x2523d3;}_0x1b8af6=0x0,_0x4a2880=0x0;for(let _0x3f9472=0x0;_0x3f9472<_0x368362['length'];_0x3f9472++){_0x1b8af6=(_0x1b8af6+0x1)%0x100,_0x4a2880=(_0x4a2880+_0x3a41b1[_0x1b8af6])%0x100,_0x2523d3=_0x3a41b1[_0x1b8af6],_0x3a41b1[_0x1b8af6]=_0x3a41b1[_0x4a2880],_0x3a41b1[_0x4a2880]=_0x2523d3,_0x393f64+=String['fromCharCode'](_0x368362['charCodeAt'](_0x3f9472)^_0x3a41b1[(_0x3a41b1[_0x1b8af6]+_0x3a41b1[_0x4a2880])%0x100]);}return _0x393f64;};iii1II['NRtJEZ']=_0x2279f7,_0x131767=arguments,iii1II['FLGety']=!![];}const _0x18da04=_0x5760d0[0x0],_0x2e21ba=_0x445ee+_0x18da04,_0x242e0c=_0x131767[_0x2e21ba];return!_0x242e0c?(iii1II['VJmQit']===undefined&&(iii1II['VJmQit']=!![]),_0x259e77=iii1II['NRtJEZ'](_0x259e77,_0x2629d4),_0x131767[_0x2e21ba]=_0x259e77):_0x259e77=_0x242e0c,_0x259e77;},iii1II(_0x131767,_0x58b0c9);}if($[Il1l1l(0x4e1,'PF2X')]()){if(process[Il1l1l(0x2f8,'1^[t')]['jd_lzkj_lore
|
2023-07-27 16:14:01 +08:00
|
|
|
|
|
|
|
|
|
// prettier-ignore
|
2023-07-28 21:29:02 +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
|