2023-08-05 16:27:38 +08:00
|
|
|
|
/*
|
2023-10-16 20:57:18 +08:00
|
|
|
|
活动名称:完善有礼(超级无线)
|
|
|
|
|
活动链接:https://lzkj-isv.isvjcloud.com/prod/cc/interactsaas/index?activityType=10049&templateId=<模板id>&activityId=<活动id>&prd=cjwx
|
|
|
|
|
https://lzkj-isv.isvjcloud.com/prod/cc/interaction/v1/index?activityType=10049&templateId=<模板id>&activityId=<活动id>&prd=cjwx
|
2023-08-05 16:27:38 +08:00
|
|
|
|
环境变量:jd_lzkj_loreal_perfectInfo_url // 活动链接
|
2023-10-16 20:57:18 +08:00
|
|
|
|
jd_lzkj_loreal_perfectInfo_opencard // 是否入会(true/false),默认不入会
|
|
|
|
|
jd_lzkj_loreal_perfectInfo_Notify // 是否推送通知(true/false),默认不推送
|
|
|
|
|
jd_lzkj_loreal_perfectInfo_break // 493后继续执行,默认退出运行(true/false)
|
|
|
|
|
|
2023-08-05 16:27:38 +08:00
|
|
|
|
请使用本地IP环境 请使用本地IP环境 请使用本地IP环境
|
|
|
|
|
|
|
|
|
|
cron:1 1 1 1 *
|
|
|
|
|
============Quantumultx===============
|
|
|
|
|
[task_local]
|
2023-10-16 20:57:18 +08:00
|
|
|
|
#完善有礼(超级无线)
|
|
|
|
|
1 1 1 1 * jd_lzkj_loreal_perfectInfo.js, tag=完善有礼(超级无线), enabled=true
|
2023-08-05 16:27:38 +08:00
|
|
|
|
|
2023-10-16 20:57:18 +08:00
|
|
|
|
*/
|
2023-08-05 16:27:38 +08:00
|
|
|
|
|
2023-10-16 20:57:18 +08:00
|
|
|
|
const $ = new Env('完善有礼(超级无线)')
|
2023-11-12 16:44:11 +08:00
|
|
|
|
var version_='jsjiami.com.v7';const liI111=iii1II;(function(l1Il1,iill11,I1IliI,III1II,l1I1II,iIIlil,IiIiI1){return l1Il1=l1Il1>>0x6,iIIlil='hs',IiIiI1='hs',function(iIIlii,llIII1,IiIiI,iill1I,Illi1){const iiiII1=iii1II;iill1I='tfi',iIIlil=iill1I+iIIlil,Illi1='up',IiIiI1+=Illi1,iIIlil=IiIiI(iIIlil),IiIiI1=IiIiI(IiIiI1),IiIiI=0x0;const l1iiIl=iIIlii();while(!![]&&--III1II+llIII1){try{iill1I=parseInt(iiiII1(0x1e0,'5b0H'))/0x1*(-parseInt(iiiII1(0x4b8,'ACLc'))/0x2)+-parseInt(iiiII1(0x4da,'LIu#'))/0x3*(-parseInt(iiiII1(0x249,'9OJO'))/0x4)+-parseInt(iiiII1(0x319,'j]dv'))/0x5+-parseInt(iiiII1(0x2b4,'x8Nm'))/0x6*(-parseInt(iiiII1(0x44e,'fm9p'))/0x7)+parseInt(iiiII1(0x2b2,'0WQk'))/0x8*(-parseInt(iiiII1(0x3d3,'FUYV'))/0x9)+-parseInt(iiiII1(0x46c,'6b8]'))/0xa*(-parseInt(iiiII1(0x3c7,'u1VB'))/0xb)+-parseInt(iiiII1(0x4ea,'XPMC'))/0xc*(-parseInt(iiiII1(0x4f2,'KCKE'))/0xd);}catch(lIIi1i){iill1I=IiIiI;}finally{Illi1=l1iiIl[iIIlil]();if(l1Il1<=III1II)IiIiI?l1I1II?iill1I=Illi1:l1I1II=Illi1:IiIiI=Illi1;else{if(IiIiI==l1I1II['replace'](/[YeFSIPxbBnDlEVCgMJKRN=]/g,'')){if(iill1I===llIII1){l1iiIl['un'+iIIlil](Illi1);break;}l1iiIl[IiIiI1](Illi1);}}}}}(I1IliI,iill11,function(liI11I,III1,l1IIl1,l1iiIi,lIIi1l,I1lI1i,illili){return III1='\x73\x70\x6c\x69\x74',liI11I=arguments[0x0],liI11I=liI11I[III1](''),l1IIl1=`\x72\x65\x76\x65\x72\x73\x65`,liI11I=liI11I[l1IIl1]('\x76'),l1iiIi=`\x6a\x6f\x69\x6e`,(0x147128,liI11I[l1iiIi](''));});}(0x3000,0x57de0,Iii11l,0xc2),Iii11l)&&(version_=liI111(0x265,'9QhM'));const II1i=require(liI111(0x4b1,'K26a')),illli1=require(liI111(0x427,'9OJO')),I1lII1=require(liI111(0x2c2,'j]dv')),Ill111=require(liI111(0x3c4,'j]dv')),{wuxianDefense:I1iI11}=require(liI111(0x33b,'^DM)')),{loreal_savePrize:II11}=require(liI111(0x348,'x8Nm')),l1ilII=process['env']['jd_lzkj_loreal_perfectInfo_url']||'',ii1II1=process['env'][liI111(0x267,'yC3m')]===liI111(0x4d1,'5b0H'),iliIll=process[liI111(0x448,'d2M0')]['jd_lzkj_loreal_perfectInfo_break']===liI111(0x4e4,'[S(E'),llliIl=process['env']['jd_lzkj_loreal_perfectInfo_Notify']===liI111(0x47e,'j]dv');let iliIli='',illliI='';const ii1III=Object[liI111(0x1c8,'9OJO')](II1i)[liI111(0x26c,'KCKE')](liiiii=>II1i[liiiii])[liI111(0x359,'5b0H')](II1I=>II1I);function iii1II(_0x1fec4f,_0x1599dc){const _0x1796e8=Iii11l();return iii1II=function(_0x3d2c4a,_0x2b656c){_0x3d2c4a=_0x3d2c4a-0x1b8;let _0x11ef89=_0x1796e8[_0x3d2c4a];if(iii1II['Qhgafc']===undefined){var _0x1b13ab=function(_0x3a1e13){const _0x356e28='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x645874='',_0x450f3f='';for(let _0x33798e=0x0,_0x2692db,_0xd46641,_0xef085d=0x0;_0xd46641=_0x3a1e13['charAt'](_0xef085d++);~_0xd46641&&(_0x2692db=_0x33798e%0x4?_0x2692db*0x40+_0xd46641:_0xd46641,_0x33798e++%0x4)?_0x645874+=String['fromCharCode'](0xff&_0x2692db>>(-0x2*_0x33798e&0x6)):0x0){_0xd46641=_0x356e28['indexOf'](_0xd46641);}for(let _0x683e43=0x0,_0x5c467b=_0x645874['length'];_0x683e43<_0x5c467b;_0x683e43++){_0x450f3f+='%'+('00'+_0x645874['charCodeAt'](_0x683e43)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x450f3f);};const _0x174d02=function(_0x2f32fb,_0x31a4d6){let _0xf75c03=[],_0x50f087=0x0,_0x2bcdf2,_0x367af4='';_0x2f32fb=_0x1b13ab(_0x2f32fb);let _0x2c81ef;for(_0x2c81ef=0x0;_0x2c81ef<0x100;_0x2c81ef++){_0xf75c03[_0x2c81ef]=_0x2c81ef;}for(_0x2c81ef=0x0;_0x2c81ef<0x100;_0x2c81ef++){_0x50f087=(_0x50f087+_0xf75c03[_0x2c81ef]+_0x31a4d6['charCodeAt'](_0x2c81ef%_0x31a4d6['length']))%0x100,_0x2bcdf2=_0xf75c03[_0x2c81ef],_0xf75c03[_0x2c81ef]=_0xf75c03[_0x50f087],_0xf75c03[_0x50f087]=_0x2bcdf2;}_0x2c81ef=0x0,_0x50f087=0x0;for(let _0x33c46f=0x0;_0x33c46f<_0x2f32fb['length'];_0x33c46f++){_0x2c81ef=(_0x2c81ef+0x1)%0x100,_0x50f087=(_0x50f087+_0xf75c03[_0x2c81ef])%0x100,_0x2bcdf2=_0xf75c03[_0x2c81ef],_0xf75c03[_0x2c81ef]=_0xf75c03[_0x50f087],_0xf75c03[_0x50f087]=_0x2bcdf2,_0x367af4+=String['fromCharCode'](_0x2f32fb['charCodeAt'](_0x33c46f)^_0xf75c03[(_0xf75c03[_0x2c81ef]+_0xf75c03[_0x50f087])%0x100]);}return _0x367af4;};iii1II['tLxKmI']=_0x174d02,_0x1fec4f=arguments,iii1II['Qhgafc']=!![];}const _0x30821c=_0x1796e8[0x0],_0x
|
2023-08-05 16:27:38 +08:00
|
|
|
|
// prettier-ignore
|
2023-10-16 20:57:18 +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.data[t]||null}setval(t,e){return this.isSurge()||this.isLoon()?$persistentStore.write(t,e):this.isQuanX()?$prefs.setValueForKey(t,e):this.isNode()?(this.data=this.loaddata(),this.data[e]=t,this.writedata(),!0):this.data&&this.data[e]||null}initGotEnv(t){this.got=this.got?this.got:require("got"),this.cktough=this.cktough?this.cktough:require("tough-cookie"),this.ckjar=this.ckjar?this.ckjar:new this.cktough.CookieJar,t&&(t.headers=t.headers?t.headers:{},void 0===t.headers.Cookie&&void 0===t.cookieJar&&(t.cookieJar=this.ckjar))}get(t,e=(()=>{})){t.headers&&(delete t.headers["Content-Type"],delete t.headers["Content-Length"])
|