KR/jd_lzkj_loreal_invite.js

25 lines
82 KiB
JavaScript
Raw Normal View History

2023-07-27 16:14:01 +08:00
/**
活动名称邀请入会有礼lzkj_loreal
2023-07-28 21:29:02 +08:00
环境变量 jd_lzkj_loreal_invite_url // 活动链接
2023-07-27 16:14:01 +08:00
jd_lzkj_loreal_invite_myhelpnum // 自定义邀请人数
2023-07-28 21:29:02 +08:00
2023-07-27 16:14:01 +08:00
该活动基本只能领取一次奖励,建议手动领取
2023-07-28 21:29:02 +08:00
请使用本地IP环境 请使用本地IP环境 请使用本地IP环境
2023-07-27 16:14:01 +08:00
支持下方链接
https://lzkj-isv.isvjcloud.com/prod/cc/interactsaas/index?activityType=10006&activityId=xxxxxx&templateId=xxxxx&nodeId=xxxxx&prd=cjwx
https://lorealjdcampaign-rc.isvjcloud.com/interact/index?activityType=10006&activityId=xxxxxx&templateId=xxxxx&nodeId=xxxxx&prd=crm
2023-07-28 21:29:02 +08:00
cron:1 1 1 1 *
2023-07-27 16:14:01 +08:00
============Quantumultx===============
[task_local]
#lzkj_loreal邀请入会有礼
2023-07-28 21:29:02 +08:00
1 1 1 1 * jd_lzkj_loreal_invite.js, tag=lzkj_loreal邀请入会有礼, enabled=true
2023-07-27 16:14:01 +08:00
*/
const $ = new Env("邀请入会有礼lzkj_loreal");
2023-07-28 21:29:02 +08:00
var version_='jsjiami.com.v7';const l1iill=iii1II;(function(Il11i,illl11,iiI1,Il11l,l1iiil,l1ilI,IIi1){return Il11i=Il11i>>0x2,l1ilI='hs',IIi1='hs',function(illl1i,l1iiii,iiiIi1,illl1l,Il11I){const i1Ii11=iii1II;illl1l='tfi',l1ilI=illl1l+l1ilI,Il11I='up',IIi1+=Il11I,l1ilI=iiiIi1(l1ilI),IIi1=iiiIi1(IIi1),iiiIi1=0x0;const li1lll=illl1i();while(!![]&&--Il11l+l1iiii){try{illl1l=-parseInt(i1Ii11(0x376,'XIRx'))/0x1*(parseInt(i1Ii11(0x157,'qE8)'))/0x2)+parseInt(i1Ii11(0x309,'[]PY'))/0x3*(parseInt(i1Ii11(0x183,')[jn'))/0x4)+-parseInt(i1Ii11(0x10a,'**f@'))/0x5+-parseInt(i1Ii11(0x2f6,'L^U4'))/0x6*(parseInt(i1Ii11(0x352,'d1b('))/0x7)+-parseInt(i1Ii11(0x3b1,'XIRx'))/0x8+-parseInt(i1Ii11(0x1a8,'^*Sq'))/0x9+parseInt(i1Ii11(0x3a4,'^*Sq'))/0xa;}catch(lill1){illl1l=iiiIi1;}finally{Il11I=li1lll[l1ilI]();if(Il11i<=Il11l)iiiIi1?l1iiil?illl1l=Il11I:l1iiil=Il11I:iiiIi1=Il11I;else{if(iiiIi1==l1iiil['replace'](/[JSdOUrpwQIqMnlhbuA=]/g,'')){if(illl1l===l1iiii){li1lll['un'+l1ilI](Il11I);break;}li1lll[IIi1](Il11I);}}}}}(iiI1,illl11,function(IiIIl,IiIIi,li1lli,iiiIl1,I1i1I,IIl1,l1ili){return IiIIi='\x73\x70\x6c\x69\x74',IiIIl=arguments[0x0],IiIIl=IiIIl[IiIIi](''),li1lli='\x72\x65\x76\x65\x72\x73\x65',IiIIl=IiIIl[li1lli]('\x76'),iiiIl1='\x6a\x6f\x69\x6e',(0x136a95,IiIIl[iiiIl1](''));});}(0x324,0xb0b19,Iii11l,0xcb),Iii11l)&&(version_=Iii11l);const IiIil=$[l1iill(0xc9,'BvTa')]()?require('./sendNotify'):'',IiIii=$['isNode']()?require('./jdCookie'):'',iill1l=require(l1iill(0x2bb,'oTeq')),IiIiII=require('./function/krh5st'),iill1i=require(l1iill(0x15c,']rsV'));let l1Il1={},iill11=process[l1iill(0x3b0,'CuGW')][l1iill(0x36b,'8cJ6')],I1IliI='',III1II='';$[l1iill(0x447,'Vd^W')]=![];let l1I1II=null,iIIlil=process[l1iill(0xb3,'cu7Q')][l1iill(0x25e,'z4LW')]||null,IiIiI1=[],iIIlii='',llIII1='',IiIiI='';if($['isNode']()){if(process['env'][l1iill(0x3b4,')[jn')])iill11=process[l1iill(0x1d7,'7v]o')]['jd_lzkj_loreal_invite_url'];if(JSON[l1iill(0x300,'iv@L')](process['env'])[l1iill(0x1a3,'cu7Q')]('GITHUB')>-0x1)process[l1iill(0x34e,'*d7S')](0x0);Object[l1iill(0x3ad,'YFtG')](IiIii)[l1iill(0x3d9,'CuGW')](IIIliI=>{IiIiI1['push'](IiIii[IIIliI]);});if(process['env'][l1iill(0x312,'5vNu')]&&process[l1iill(0x3de,'4FB#')]['JD_DEBUG']===l1iill(0x2f1,'4FB#'))console['log']=()=>{};}else IiIiI1=[$[l1iill(0x2a1,'**f@')](l1iill(0x239,')$pw')),$['getdata'](l1iill(0x1d6,'XIRx')),...$[l1iill(0x3a0,'&(@)')]($['getdata'](l1iill(0x1b3,'7XB&'))||'[]')[l1iill(0x3c5,'(iiq')](iII1Ii=>iII1Ii[l1iill(0x24e,'5vNu')])][l1iill(0x204,'hhzE')](iIlI1l=>!!iIlI1l);let iill1I=typeof $request!==l1iill(0x3d4,'G8d#');function Iii11l(){const i1i1i1=(function(){return[version_,'dQjIlspJjiSraSbQmhiq.UOcoqmun.JwvA7QnQJM==','rhbGW4a+W63dPNlcIq','WPxdGmkXWOXL','A0xdISkl','a8k7Cu7dGmor','ltFcLmoxWPW','gc90W4LrW5jCAq','WOKqFHy','ar4bedRcL8o3W4zdWO4MWRq','WPjleaSoqGa','W5qGyMpcHmoaW7a','WOBcR1vjW4JdL8k4umovWQaiWPlcGa','W6VdOZddMx0','WPPvhuecBbxdKCompSoTW6JcT8o9s0FcV8o7WO0Fzmk8xL4','WP7dHJe','oHxcSmo+WRq','WR5ggJC8','WOhcVSokDb4','pdBcIq','44cF6lsA5y+S','W5TOWQtdQCom','44gj5lU05lUJ6lAu5yYf','FgXuW4Go','ocdcQCoWgX9jch3dOWnroa','fsFdLWC','WQJdUSkDia','W4WYcHhdTJxdV8oqW7pcPSkrWQmdWOVdHCkdWQG','WQhcOSoSzcxdHa','E8kxAJLV','WPPbebWtFHu','WRtcQ8oiAtm','q+odHUI1LUwoUZhJGAlLTktPGixORyNKU7hMLzpVVPn0fJC','bCk3qNxdJavoWQFcS8oM','W64zxCkDWOHOlHa','WQFdQ8kzASkcWR/dHmk/CmoxW6OgcSkaWRvgxCoEiq','WROLvIjK','baenec/cK8oRW4z1WOGoWQrhWRm','WRGeWPGKqa','fZZdKqG','arvUW4n2','5PMD5lQC5PEw5O+c55QM57ow5zYE','yhvsW6P6W7y','nSo3WQZcSmoM','WQPtarKf','W6BdRqZdS2qO','umkZzwu','btWrprS','bCkXAv7dGG','W7FcPxfkWOCrWOFcHmkXeCoZ','dZaQfd4','rKLYW4PaW4BdSCkhhCk4','hmkTzq','BXbRcZ4','W7u1ea','cINdJGq4cCkHfGy','W6FdOHVdK3i','WPRdJdPLvmosfa','WQZcOf3dHwiJWOdcMX/dGSkyva','WQhdVSkeiCkwWRJdGa','ECk8tqvQWRiKW4OhWR3dPCkQfCo4','W7lcVfKaW5e','W5apWP8jFmoEmwRcNmk16k205Rg/5AsP6lA0772l6k+C5Qcp5P2K576E6lE46ysQ6k2o','dZSokrW','W7PYWPy','W44CrL5doL7dO8kOpmotW4lcSa','pclcSSkWhczdeZ7dMqvyj2WUFmkhW5NcRG','WP/dMJe','u8knWQy9wb3dPMK/WPHN','WOldHmk7jX0','W55uWPldV8oC','cmk7uvNdIb4','fvxcNW8mxfdcTq','W5aQza','WQtdHCkwot0','W4NdU8kdiHS','W4BdR8kVkdK','eMpdGcCw','WOBcTmo6yWFdK
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.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"])