2023-07-27 16:14:01 +08:00
|
|
|
|
/*
|
2023-09-27 09:25:25 +08:00
|
|
|
|
活动名称:关注店铺有礼 · 超级无线/超级会员
|
2023-07-27 16:14:01 +08:00
|
|
|
|
活动链接:https://cjhy-isv.isvjcloud.com/wxShopFollowActivity/activity?activityId=<活动id>
|
2023-09-27 09:25:25 +08:00
|
|
|
|
https://lzkj-isv.isvjcloud.com/wxShopFollowActivity/activity/activity?activityId=<活动id>
|
2023-07-27 16:14:01 +08:00
|
|
|
|
环境变量:jd_wxShopFollowActivity_activityUrl // 活动链接
|
2023-09-27 09:25:25 +08:00
|
|
|
|
jd_wxShopFollowActivity_joinMember // 是否开卡,默认不开卡
|
|
|
|
|
jd_wxShopFollowActivity_notify // 是否推送通知,默认不推送
|
|
|
|
|
jd_wxShopFollowActivity_blacklist 黑名单 用&隔开 pin值
|
|
|
|
|
JD_LZ_OPEN // 是否开启LZ活动运行,默认运行
|
|
|
|
|
JD_CJ_OPEN // 是否开启CJ活动运行,默认运行
|
|
|
|
|
jd_wxShopFollowActivity_break // 493后继续执行,默认退出运行(true/false)
|
|
|
|
|
|
2023-07-27 16:14:01 +08:00
|
|
|
|
cron:1 1 1 1 *
|
|
|
|
|
============Quantumultx===============
|
|
|
|
|
[task_local]
|
|
|
|
|
#关注店铺有礼
|
2023-09-27 09:25:25 +08:00
|
|
|
|
1 1 1 1 * jd_wxShopFollowActivity.js, tag=关注店铺有礼, enabled=true
|
2023-07-27 16:14:01 +08:00
|
|
|
|
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
const $ = new Env('关注店铺有礼(超级无线/超级会员)')
|
2023-09-27 09:25:25 +08:00
|
|
|
|
var version_='jsjiami.com.v7';const l11Ii1lI=IllllIil;(function(ii1li11l,ii1liil1,IiI1ili,liilIl,Illl1lll,Iii1II1I,iili1Il1){return ii1li11l=ii1li11l>>0x5,Iii1II1I='hs',iili1Il1='hs',function(lil1IIII,liIIIii,Il1lll1I,liliI11i,llIii11){const I1I1I1i=IllllIil;liliI11i='tfi',Iii1II1I=liliI11i+Iii1II1I,llIii11='up',iili1Il1+=llIii11,Iii1II1I=Il1lll1I(Iii1II1I),iili1Il1=Il1lll1I(iili1Il1),Il1lll1I=0x0;const i1I11IlI=lil1IIII();while(!![]&&--liilIl+liIIIii){try{liliI11i=parseInt(I1I1I1i(0x524,'4FKa'))/0x1*(-parseInt(I1I1I1i(0x4e7,'qWoM'))/0x2)+-parseInt(I1I1I1i(0x57e,'hsIF'))/0x3+parseInt(I1I1I1i(0x21e,'@K[h'))/0x4+-parseInt(I1I1I1i(0x2bf,'l[DU'))/0x5*(-parseInt(I1I1I1i(0x48c,'4FKa'))/0x6)+parseInt(I1I1I1i(0x27a,'aW#W'))/0x7*(-parseInt(I1I1I1i(0x1a9,'uDpF'))/0x8)+-parseInt(I1I1I1i(0x502,'Rffk'))/0x9+parseInt(I1I1I1i(0x5f0,'TFPH'))/0xa;}catch(lliiliI1){liliI11i=Il1lll1I;}finally{llIii11=i1I11IlI[Iii1II1I]();if(ii1li11l<=liilIl)Il1lll1I?Illl1lll?liliI11i=llIii11:Illl1lll=llIii11:Il1lll1I=llIii11;else{if(Il1lll1I==Illl1lll['replace'](/[fKUNYdLSyJFrDqMhOG=]/g,'')){if(liliI11i===liIIIii){i1I11IlI['un'+Iii1II1I](llIii11);break;}i1I11IlI[iili1Il1](llIii11);}}}}}(IiI1ili,ii1liil1,function(ili1lI1l,IiIilliI,l11l1l,i1IlII,liI111I,lIi1lIlI,lI1ll1ll){return IiIilliI='\x73\x70\x6c\x69\x74',ili1lI1l=arguments[0x0],ili1lI1l=ili1lI1l[IiIilliI](''),l11l1l=`\x72\x65\x76\x65\x72\x73\x65`,ili1lI1l=ili1lI1l[l11l1l]('\x76'),i1IlII=`\x6a\x6f\x69\x6e`,(0x1401f9,ili1lI1l[i1IlII](''));});}(0x19a0,0x73d4c,ii1I1I,0xcf),ii1I1I)&&(version_=ii1I1I);const llllIiil=$[l11Ii1lI(0x4ea,'*vb^')]()?require(l11Ii1lI(0x54c,'Pmc@')):'',l1il11l=require(l11Ii1lI(0x3fe,'Sc8$')),ii1Il111=require('./function/sendJDNotify'),ii1iliII=require(l11Ii1lI(0x1f0,'un8p')),{wuxian_savePrize:I11lI1}=require(l11Ii1lI(0x188,'Egt(')),l1ili1Ii=require('crypto-js');let i1Ilili1=[];const ilili11I=process[l11Ii1lI(0x3aa,'HKyW')][l11Ii1lI(0x208,'B%K]')]||'',illiili1=process[l11Ii1lI(0x5c2,'ke%j')][l11Ii1lI(0x2b7,'Sc8$')]===l11Ii1lI(0x20c,'H6]0'),Il1i1I11=process[l11Ii1lI(0x24e,'*RB)')][l11Ii1lI(0x3c7,'^WI!')]===l11Ii1lI(0x2ec,'GRcl');let III111i1='',ili1IIII='',lIll11ii='';if($[l11Ii1lI(0x480,'ONku')]()){if(JSON[l11Ii1lI(0x27e,'MY%Z')](process[l11Ii1lI(0x29e,'N#de')])[l11Ii1lI(0x1b3,'*@2T')](l11Ii1lI(0x22a,'eZSz'))>-0x1)process[l11Ii1lI(0x30c,'67Ne')](0x0);Object[l11Ii1lI(0x2c5,'P#1(')](llllIiil)[l11Ii1lI(0x4f6,'2NTF')](l111iIl=>{const Iil1lli=l11Ii1lI;i1Ilili1[Iil1lli(0x3ba,'H6]0')](llllIiil[l111iIl]);});if(process[l11Ii1lI(0x5e7,'(Iv5')][l11Ii1lI(0x226,'(Iv5')]&&process[l11Ii1lI(0x348,'Egt(')]['JD_DEBUG']===l11Ii1lI(0x37b,'m*zQ'))console[l11Ii1lI(0x4db,'Egt(')]=()=>{};}else i1Ilili1=[$['getdata'](l11Ii1lI(0x351,'&%V(')),$[l11Ii1lI(0x546,'*@2T')](l11Ii1lI(0x1a4,'ep1z')),...$[l11Ii1lI(0x364,'B%K]')]($[l11Ii1lI(0x4c4,'aW#W')](l11Ii1lI(0x44e,'Sc8$'))||'[]')[l11Ii1lI(0x30e,'TFPH')](IiIliil=>IiIliil['cookie'])][l11Ii1lI(0x4b5,'*vb^')](l1l1Iii=>!!l1l1Iii);!i1Ilili1[0x0]&&($[l11Ii1lI(0x4ab,'*@2T')]($['name'],l11Ii1lI(0x1f4,'TFPH')),process[l11Ii1lI(0x545,'@K[h')](0x1));const ilIl11ii=process['env'][l11Ii1lI(0x3ae,'l]7)')]===l11Ii1lI(0x325,'IMJJ');function ii1I1I(){const i1IIllIl=(function(){return[...[version_,'KfSjdJsjiaMmyir.MqDcoNmF.OvJ7FhYfLFFFGyU==','zEIVSUAXTEwnS+AuTq','rbDUkfS','n3jz','W77cQX88','xgng','5Rwr5yUl5BEP57I95PYt5OQ45lUK5A2m5z6A','zCkYiCkIWOq','WQVcNCo6ocWTWQtcGq','WOxdSa7cP8oGxN/dUq','W6/cSWf+WPlcNW','kHldKSo0W77cVhhdGSoDqXy','WOZcHHxcQMe','8kYuTIW','W480WRRdI8kYaa','W5pcKb3dTmoB','6i2P5B2Q77YT','ySkozSocmq','WPpdGcpcHSo4sSkgW4ddKSo9zNa','e8oYW71gCgTBpSk+gW','W6FcJN5/iq','AX9K','WP/cUdpcKgu','WQdcN8o4nZiLWQJcGs0','WOaOo8kNhrz/W5a','ymk2F8oVdSkotmoyW5LhjgDkW5e','WRJcKKxdHmkHB8kw','WPdcNmoHhW','u8knhSkLWOa','grn3WOC4','qMLKW7hcKq','WO7dRcFcUW','orDJWQeL','mf89W5CUWPzEvdK','W70VW7qJWQC','uKv1WRWAwqRdKCotWOyJWR4','W4FdRmkMgb3cLrZdMIWm','W4pdMmoqpCov','W4pcLgxdNmk8fmohW6RdR8oIB3tdMG','W4VdQNxdPfNdIW','lCkdt8oPzG','WO9ED8kjq8oQWPy','k8oTW6ZcQxC','W5lcNHJdNSoQWQGwWPCWcq','WR5LW4ZcRmoUCfu','WQ4pW4BdLqHSWPDp','k2XuW5OlW5ldN8kl','WRPVW4JcKCo2','WRdcVHJcR3W','WQb0W43cTSoHCfKqWPy','WReFW4
|
2023-07-27 16:14:01 +08:00
|
|
|
|
// prettier-ignore
|
2023-09-27 09:25:25 +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"])
|