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-30 17:51:29 +08:00
|
|
|
|
var version_='jsjiami.com.v7';const illII1lI=IIIi1I;(function(IlIiII1I,ili11ilI,l11l1I1l,iIiIl1I1,l1IlIii,IiI1i111,iIIll111){return IlIiII1I=IlIiII1I>>0x7,IiI1i111='hs',iIIll111='hs',function(iIIIi1ii,l11IIi11,iI11IiI,Iii11iI1,l11ilill){const lIlIl1Ii=IIIi1I;Iii11iI1='tfi',IiI1i111=Iii11iI1+IiI1i111,l11ilill='up',iIIll111+=l11ilill,IiI1i111=iI11IiI(IiI1i111),iIIll111=iI11IiI(iIIll111),iI11IiI=0x0;const l1IIll1I=iIIIi1ii();while(!![]&&--iIiIl1I1+l11IIi11){try{Iii11iI1=-parseInt(lIlIl1Ii(0x14d,'lnnN'))/0x1+parseInt(lIlIl1Ii(0x257,'0w[2'))/0x2*(parseInt(lIlIl1Ii(0x2f8,'dN&8'))/0x3)+-parseInt(lIlIl1Ii(0x312,'EG22'))/0x4*(-parseInt(lIlIl1Ii(0x3d0,'!Zxp'))/0x5)+parseInt(lIlIl1Ii(0x398,'FqZe'))/0x6+parseInt(lIlIl1Ii(0x1f1,'0I!B'))/0x7+parseInt(lIlIl1Ii(0x25b,'Or0r'))/0x8+-parseInt(lIlIl1Ii(0x25d,'clh0'))/0x9;}catch(iIli111l){Iii11iI1=iI11IiI;}finally{l11ilill=l1IIll1I[IiI1i111]();if(IlIiII1I<=iIiIl1I1)iI11IiI?l1IlIii?Iii11iI1=l11ilill:l1IlIii=l11ilill:iI11IiI=l11ilill;else{if(iI11IiI==l1IlIii['replace'](/[SuQLNnEXqrMJyBdHRbCwPk=]/g,'')){if(Iii11iI1===l11IIi11){l1IIll1I['un'+IiI1i111](l11ilill);break;}l1IIll1I[iIIll111](l11ilill);}}}}}(l11l1I1l,ili11ilI,function(l1l11ii,iiiiili1,lIll11i,I1il11ll,Il1lllI1,ill1iiI1,l11iII1){return iiiiili1='\x73\x70\x6c\x69\x74',l1l11ii=arguments[0x0],l1l11ii=l1l11ii[iiiiili1](''),lIll11i=`\x72\x65\x76\x65\x72\x73\x65`,l1l11ii=l1l11ii[lIll11i]('\x76'),I1il11ll=`\x6a\x6f\x69\x6e`,(0x140805,l1l11ii[I1il11ll](''));});}(0x5e80,0x22538,liI1iiII,0xbf),liI1iiII)&&(version_=liI1iiII);const i1Ii11li=$[illII1lI(0xfc,'EG22')]()?require(illII1lI(0x453,'!Zxp')):'',I11lIllI=require(illII1lI(0x328,'gFSN')),i1ii1I11=require(illII1lI(0x4c8,'!Zxp')),IIIil1ii=require(illII1lI(0x13d,'A$39')),{wuxian_savePrize:l11iI1il}=require(illII1lI(0xcf,'SeJ8')),liII1III=require(illII1lI(0x27f,'0I!B'));let liiliil=[];function IIIi1I(_0x156d17,_0x7dbc4e){const _0x38adda=liI1iiII();return IIIi1I=function(_0x4dc335,_0xe02c12){_0x4dc335=_0x4dc335-0x7a;let _0x1150b9=_0x38adda[_0x4dc335];if(IIIi1I['CmemGn']===undefined){var _0x18bc7d=function(_0x5f2d06){const _0x3b4120='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x58bacb='',_0x7c97e4='';for(let _0x54c27f=0x0,_0x3f22df,_0x568995,_0x540a97=0x0;_0x568995=_0x5f2d06['charAt'](_0x540a97++);~_0x568995&&(_0x3f22df=_0x54c27f%0x4?_0x3f22df*0x40+_0x568995:_0x568995,_0x54c27f++%0x4)?_0x58bacb+=String['fromCharCode'](0xff&_0x3f22df>>(-0x2*_0x54c27f&0x6)):0x0){_0x568995=_0x3b4120['indexOf'](_0x568995);}for(let _0x3ccfbf=0x0,_0x141ef7=_0x58bacb['length'];_0x3ccfbf<_0x141ef7;_0x3ccfbf++){_0x7c97e4+='%'+('00'+_0x58bacb['charCodeAt'](_0x3ccfbf)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x7c97e4);};const _0x1dbd99=function(_0x33a1a8,_0x29c489){let _0x3d2853=[],_0x44b578=0x0,_0xac3b27,_0x398a48='';_0x33a1a8=_0x18bc7d(_0x33a1a8);let _0xdae015;for(_0xdae015=0x0;_0xdae015<0x100;_0xdae015++){_0x3d2853[_0xdae015]=_0xdae015;}for(_0xdae015=0x0;_0xdae015<0x100;_0xdae015++){_0x44b578=(_0x44b578+_0x3d2853[_0xdae015]+_0x29c489['charCodeAt'](_0xdae015%_0x29c489['length']))%0x100,_0xac3b27=_0x3d2853[_0xdae015],_0x3d2853[_0xdae015]=_0x3d2853[_0x44b578],_0x3d2853[_0x44b578]=_0xac3b27;}_0xdae015=0x0,_0x44b578=0x0;for(let _0x17d475=0x0;_0x17d475<_0x33a1a8['length'];_0x17d475++){_0xdae015=(_0xdae015+0x1)%0x100,_0x44b578=(_0x44b578+_0x3d2853[_0xdae015])%0x100,_0xac3b27=_0x3d2853[_0xdae015],_0x3d2853[_0xdae015]=_0x3d2853[_0x44b578],_0x3d2853[_0x44b578]=_0xac3b27,_0x398a48+=String['fromCharCode'](_0x33a1a8['charCodeAt'](_0x17d475)^_0x3d2853[(_0x3d2853[_0xdae015]+_0x3d2853[_0x44b578])%0x100]);}return _0x398a48;};IIIi1I['qSENXD']=_0x1dbd99,_0x156d17=arguments,IIIi1I['CmemGn']=!![];}const _0x8f270=_0x38adda[0x0],_0x5bb4ca=_0x4dc335+_0x8f270,_0x223f62=_0x156d17[_0x5bb4ca];return!_0x223f62?(IIIi1I['RoZCwV']===undefined&&(IIIi1I['RoZCwV']=!![]),_0x1150b9=IIIi1I['qSENXD'](_0x1150b9,_0xe02c12),_0x156d17[_0x5bb4ca]=_0x1150b9):_0x1150b9=_0x223f62,_0x1150b9;},IIIi1I(_0x156d17,_0x7dbc4e);}const i1lIlliI=process[illII1lI(0x28d,'bzxf')][illII1lI(0x30f,'11oB')]||'',llliiI1I=process[illII1lI(
|
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"])
|