mirror of
https://github.com/shufflewzc/faker3.git
synced 2024-11-14 07:29:18 +08:00
24 lines
168 KiB
JavaScript
24 lines
168 KiB
JavaScript
|
/*
|
|||
|
活动名称:分享有礼(超级无线)
|
|||
|
活动链接:https://lzkj-isv.isvjcloud.com/prod/cc/interactsaas/index?activityType=10043&templateId=<模板id>&activityId=<活动id>&prd=cjwx
|
|||
|
环境变量:jd_lzkj_loreal_share_url // 活动链接
|
|||
|
jd_lzkj_loreal_share_helpnum // 需要助力的账号数量(默认3)
|
|||
|
|
|||
|
7 7 7 7 *
|
|||
|
|
|||
|
脚本已挂 懒得修 领不了奖 助力没问题
|
|||
|
|
|||
|
*/
|
|||
|
|
|||
|
const $ = new Env('分享有礼(超级无线)')
|
|||
|
const notify = $.isNode() ? require('./sendNotify') : ''
|
|||
|
const jdCookieNode = $.isNode() ? require('./jdCookie') : ''
|
|||
|
const common = require('./function/jdCommon.js')
|
|||
|
const getH5st = require('./function/getH5st3_0')
|
|||
|
const getToken = require('./function/getToken')
|
|||
|
|
|||
|
var version_='jsjiami.com.v7';const l1iili11=ii1liI11;(function(i1li1I11,I1ii1Iil,IIllI1I1,li1lilil,IIlIiii,i1l11Il,I1iillli){return i1li1I11=i1li1I11>>0x1,i1l11Il='hs',I1iillli='hs',function(Ill11111,lil11111,i1III1i,il11ll1l,lllllilI){const IIi1Iili=ii1liI11;il11ll1l='tfi',i1l11Il=il11ll1l+i1l11Il,lllllilI='up',I1iillli+=lllllilI,i1l11Il=i1III1i(i1l11Il),I1iillli=i1III1i(I1iillli),i1III1i=0x0;const Il1IiI1l=Ill11111();while(!![]&&--li1lilil+lil11111){try{il11ll1l=-parseInt(IIi1Iili(0x1c6,'bnRc'))/0x1+-parseInt(IIi1Iili(0x940,'(nlb'))/0x2+parseInt(IIi1Iili(0x6e6,'lnaO'))/0x3*(-parseInt(IIi1Iili(0x66b,'vxVo'))/0x4)+-parseInt(IIi1Iili(0x67c,'StOq'))/0x5+-parseInt(IIi1Iili(0xf5,'tFia'))/0x6*(parseInt(IIi1Iili(0x182,'ID@h'))/0x7)+-parseInt(IIi1Iili(0x1fc,'s3Nw'))/0x8*(parseInt(IIi1Iili(0x41c,'c[In'))/0x9)+parseInt(IIi1Iili(0x706,'L!t!'))/0xa;}catch(iIll11ll){il11ll1l=i1III1i;}finally{lllllilI=Il1IiI1l[i1l11Il]();if(i1li1I11<=li1lilil)i1III1i?IIlIiii?il11ll1l=lllllilI:IIlIiii=lllllilI:i1III1i=lllllilI;else{if(i1III1i==IIlIiii['replace'](/[uCVwJbTpGkIEyPXDlQdxY=]/g,'')){if(il11ll1l===lil11111){Il1IiI1l['un'+i1l11Il](lllllilI);break;}Il1IiI1l[I1iillli](lllllilI);}}}}}(IIllI1I1,I1ii1Iil,function(i11l1Iii,IiI1llI1,IiliiII,iIiilil,II1lill,lliI1lll,Ill1ii1){return IiI1llI1='\x73\x70\x6c\x69\x74',i11l1Iii=arguments[0x0],i11l1Iii=i11l1Iii[IiI1llI1](''),IiliiII=`\x72\x65\x76\x65\x72\x73\x65`,i11l1Iii=i11l1Iii[IiliiII]('\x76'),iIiilil=`\x6a\x6f\x69\x6e`,(0x1409a5,i11l1Iii[iIiilil](''));});}(0x17e,0x872f8,Illi1i11,0xc1),Illi1i11)&&(version_=Illi1i11);function Illi1i11(){const IiI1ill=(function(){return[...[version_,'YPjVpsTGjidaJmix.lcIkwoEEmudG.TvyXQ7CPbD==','W47dQCo6ea','W5JcRmoCnCoermojWQO','WRRcLCoCcMe','WOlcJq/dSdK','hrWV','krKp','8lgVMeFMGkVLLzBOJ7FLV5RLRj7NI6tdIW','WP7cRYZdLau','FM/dVSkxsq','W53dJehdMCksWRC','W6ihASovWOe','WRdcJNddLhG','FYjFkSoO','WOpcPsldPW','WOhcMmo8iLu','b1ldT8o0WO0WWOhdImoiW4K','kX/cUmorWPS','dae2W7vj','cCozW6nnW6q','hCo2WROaWQ3dIW','W4tdH8kjWO3dKW','WOT3AdhcGq','W4mfCmkHxG','BCkQW4NcU04','W57dOCkjoNC','WOtdVr4HW6W','W4ddMvFdGSk9WQlcRGD7Ew1JpMlcG8olWPSv','c8oRWRe5WPe','t8kLW7VcRwC','ne/dJSobWQm','WRPvphxcNW','gCoQiZNcJq','pSoyW4HLW5u','lmkpAW','fCoRfGhcSa','WOrOW4PbxW','WQFcS8oBi2JdTCoLvX9xr8ocWQddJthcICkdWRrhW44WmIPeWPRdKSosW4y','wI1mdCo0','WPtdJrqaW7q','pCkbhCoKkSoTW5jasetdU8oQW6ZcGG','lYJcHCoMWPq','WPJdUSo7iCo8','W5mbhWVcPa','WOzvhxmHwci','v8ksW4FcHgrdv0S','Cg3cT8oxW4q','fg3dSSogWPa','hIRcPmoCWRS','8ls8Obi','5yIp5ysU5lYh5zk+','EbTiimo0','W7WTu8ogWQq','W6WVaCoBzqTgjCkKWPa','W64NgSkDdxddMqW2pmoptGZcK8oHomk4wSkmWPeXW4ddR0a','WQjOdq','WOOkuNPC','DYaEW7pcSmkbBmo4W6xdKCoLj3e','bSoCacxcQ8kVnSojWPK','W7JdKCk4ov8','yM/dVmkXAq','W6RdOJ5l','W6KOx8k3zq','sIfRrty','q8oxW7NcOIC','fCkmoSo9eq','AI4vW4NcRmkjCCoZ','W48dWO12W5XhwaaY','5RkF5P245OIP5yQO6i+r5y6K5yUl55Ee5OMV5l+J5OgU77+G6lsR6l+o6AgF5y695AEa5zgR','WQnMW7nzCG','WRZdUrlcNHC','zK/dOCoIW5hdGmozW63cQ0ZORQFMS7VLP7dOTkxVVzRORj3MOQRMNBVNVR7OTAZPH4JOROi','eLtdRSokWOa8WPa','W6WClSoihG','WQFdSmkt','WP/dPt/cVXSIDu8Gvmk2k3/dKNNdR8ohmG','8yomNhO','WP5KnJix','5RgF5PYC5OIl5yU/6i2J5y2B5yQA55sy5OMN5l2a5OgS77+q6lAZ6l+Z6Agx5y2Q5AE15zca','WPhcOXldIGm','B8oGW6/cNXy','W7JdOG7cH8oS','zhZcHSoZW6W','WPDwBtxcRa','W5hdLSkP','W4OldSo+lq','E8kpq3tcQWBcPa','W7RdLtRcSCob','Cmo+CcZcSa','WPJcOs3dPXC7CG','WRtcOeZdJ2e','WOFcRctdOXqRCSkSrSkhtGqkW5ldISk3lH4','EZewW5pdT8kjCmoPW5tdISoPixy','W60ZWOD0W58','WPDMW714xdVdOSkvtwxcMq','W4SEWO9PW5C','W4tdLmknWQ/dIa','WQv9n0yc','WQ8iwvbl','xwtdJmktAq','W4CUFmkcCd/cGq','dCoLW4zaW6eusJ4nemoHDq','WOKEWODYW5C','W4uKDmkiqYJcNmocWRG0bcu','amoPisFcPa','W5i8hG/cJq','W6OueCkHaG','WRFcUXpdLX8','WOZdTGefW7O','W5ZdQcbBqG','mmosnqjk','WPPrcxqk','5lQDW43cGW','j8oah8oOmSoGW4nlCLtcUmkKWRS','W7avoalcJWiyW4C','i0FdKSoZWRi','aSoKW5K','WQBdNtzXj8k2WObe','W6xdMIXzya','WRJdMJ0CW4G','W4pcKConcSoB','W5VdSc9yt8oOWRai','WRbae8kPWQOTh8kg','F0lcQSoqW4u','FYfGBYq','W7eId8kRlG','EmkbAd7dTa','dSoTlH9e','EEwLOEwrM+whRoABJUs9IEAaLEwkLE++JEs6OoI0UEs7PCov','WQ5pgCkX','WRZcLZ3dNHq','WPyhtML4','W6GSn8kufNFdMtC5mSoqwWZcLSozjCo9sCkD','W7uPygdLHlhKV53OJQVLVzBVVOK','WQ3dQr46W5W','WPrZbxFcSq','W5FdQmo
|
|||
|
|
|||
|
// 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
|