2023-07-28 10:10:43 +08:00
|
|
|
|
/*
|
|
|
|
|
活动名称:完善资料有礼 · 京耕
|
|
|
|
|
活动链接:https://jinggeng-isv.isvjcloud.com/ql/front/showPerfectInformation?id=<活动id>&user_id=<店铺id>
|
|
|
|
|
环境变量:jd_jinggeng_showPerfectInformation_activityUrl // 活动链接
|
|
|
|
|
|
|
|
|
|
cron:1 1 1 1 *
|
|
|
|
|
============Quantumultx===============
|
|
|
|
|
[task_local]
|
|
|
|
|
#完善资料有礼
|
|
|
|
|
1 1 1 1 * jd_jinggeng_showPerfectInformation.js, tag=完善资料有礼, enabled=true
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
const $ = new Env('完善资料有礼(京耕)')
|
2023-07-28 10:29:22 +08:00
|
|
|
|
var version_='jsjiami.com.v7';const l1I1li=iii1II;(function(liii1i,IIll1i,lI1iII,IIll1l,l1I1lI,iIIIl1,li11iI){return liii1i=liii1i>>0x6,iIIIl1='hs',li11iI='hs',function(liliIl,liii1l,I1iiII,liliIi,i1Ili){const li1il=iii1II;liliIi='tfi',iIIIl1=liliIi+iIIIl1,i1Ili='up',li11iI+=i1Ili,iIIIl1=I1iiII(iIIIl1),li11iI=I1iiII(li11iI),I1iiII=0x0;const I1iiI1=liliIl();while(!![]&&--IIll1l+liii1l){try{liliIi=-parseInt(li1il(0x2e9,'kcL('))/0x1+parseInt(li1il(0x166,'7FX0'))/0x2*(parseInt(li1il(0x2d0,'[4mr'))/0x3)+parseInt(li1il(0xd9,'#izL'))/0x4*(parseInt(li1il(0x9a,'YgeX'))/0x5)+-parseInt(li1il(0x93,'LIj$'))/0x6*(-parseInt(li1il(0xdb,'ZDk3'))/0x7)+-parseInt(li1il(0x2b9,'ipk2'))/0x8*(-parseInt(li1il(0xbd,']#aI'))/0x9)+parseInt(li1il(0x292,']#aI'))/0xa+-parseInt(li1il(0x1ef,'V32*'))/0xb*(parseInt(li1il(0x204,'Av@0'))/0xc);}catch(lIiIi1){liliIi=I1iiII;}finally{i1Ili=I1iiI1[iIIIl1]();if(liii1i<=IIll1l)I1iiII?l1I1lI?liliIi=i1Ili:l1I1lI=i1Ili:I1iiII=i1Ili;else{if(I1iiII==l1I1lI['replace'](/[TWHeqFlBMfwxndpEORkCJU=]/g,'')){if(liliIi===liii1l){I1iiI1['un'+iIIIl1](i1Ili);break;}I1iiI1[li11iI](i1Ili);}}}}}(lI1iII,IIll1i,function(li11l1,IIlIIl,iIiiI1,I1IIiI,ilIli1,li11lI,l1I1ll){return IIlIIl='\x73\x70\x6c\x69\x74',li11l1=arguments[0x0],li11l1=li11l1[IIlIIl](''),iIiiI1='\x72\x65\x76\x65\x72\x73\x65',li11l1=li11l1[iIiiI1]('\x76'),I1IIiI='\x6a\x6f\x69\x6e',(0x1368b1,li11l1[I1IIiI](''));});}(0x30c0,0xd9a99,Iii11l,0xc5),Iii11l)&&(version_=Iii11l);const i11111=$[l1I1li(0x24b,'G6tV')]()?require(l1I1li(0x1c7,'gg9Y')):'',lIl1li=$['isNode']()?require(l1I1li(0x18c,'W7)B')):'',Il1I1=require(l1I1li(0xd2,'n&h#')),lIilii=require('./function/krh5st'),lIilil=require('./function/krgetua');let lIl1ll={},Ii111='',Ii1III='';$[l1I1li(0x25c,'xxi5')]=![];function iii1II(_0x283514,_0x19be73){const _0x3fcf7b=Iii11l();return iii1II=function(_0x3b1328,_0x65475d){_0x3b1328=_0x3b1328-0x7c;let _0xccda94=_0x3fcf7b[_0x3b1328];if(iii1II['iltUSH']===undefined){var _0x1c7aa6=function(_0x27a058){const _0x33606b='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x4220b6='',_0x451666='';for(let _0x1abe6f=0x0,_0x891f5e,_0x399166,_0x4d9751=0x0;_0x399166=_0x27a058['charAt'](_0x4d9751++);~_0x399166&&(_0x891f5e=_0x1abe6f%0x4?_0x891f5e*0x40+_0x399166:_0x399166,_0x1abe6f++%0x4)?_0x4220b6+=String['fromCharCode'](0xff&_0x891f5e>>(-0x2*_0x1abe6f&0x6)):0x0){_0x399166=_0x33606b['indexOf'](_0x399166);}for(let _0x45eac5=0x0,_0x4bbfbd=_0x4220b6['length'];_0x45eac5<_0x4bbfbd;_0x45eac5++){_0x451666+='%'+('00'+_0x4220b6['charCodeAt'](_0x45eac5)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x451666);};const _0x390cc1=function(_0x14f4c7,_0x4df94b){let _0xa5f1e2=[],_0x128106=0x0,_0x366008,_0x37e188='';_0x14f4c7=_0x1c7aa6(_0x14f4c7);let _0xd5ac32;for(_0xd5ac32=0x0;_0xd5ac32<0x100;_0xd5ac32++){_0xa5f1e2[_0xd5ac32]=_0xd5ac32;}for(_0xd5ac32=0x0;_0xd5ac32<0x100;_0xd5ac32++){_0x128106=(_0x128106+_0xa5f1e2[_0xd5ac32]+_0x4df94b['charCodeAt'](_0xd5ac32%_0x4df94b['length']))%0x100,_0x366008=_0xa5f1e2[_0xd5ac32],_0xa5f1e2[_0xd5ac32]=_0xa5f1e2[_0x128106],_0xa5f1e2[_0x128106]=_0x366008;}_0xd5ac32=0x0,_0x128106=0x0;for(let _0xc346cb=0x0;_0xc346cb<_0x14f4c7['length'];_0xc346cb++){_0xd5ac32=(_0xd5ac32+0x1)%0x100,_0x128106=(_0x128106+_0xa5f1e2[_0xd5ac32])%0x100,_0x366008=_0xa5f1e2[_0xd5ac32],_0xa5f1e2[_0xd5ac32]=_0xa5f1e2[_0x128106],_0xa5f1e2[_0x128106]=_0x366008,_0x37e188+=String['fromCharCode'](_0x14f4c7['charCodeAt'](_0xc346cb)^_0xa5f1e2[(_0xa5f1e2[_0xd5ac32]+_0xa5f1e2[_0x128106])%0x100]);}return _0x37e188;};iii1II['ubzBwD']=_0x390cc1,_0x283514=arguments,iii1II['iltUSH']=!![];}const _0x2fb7fc=_0x3fcf7b[0x0],_0xab6a40=_0x3b1328+_0x2fb7fc,_0xd73e6=_0x283514[_0xab6a40];return!_0xd73e6?(iii1II['cmuiGC']===undefined&&(iii1II['cmuiGC']=!![]),_0xccda94=iii1II['ubzBwD'](_0xccda94,_0x65475d),_0x283514[_0xab6a40]=_0xccda94):_0xccda94=_0xd73e6,_0xccda94;},iii1II(_0x283514,_0x19be73);}let ilIIi1=0x2,l111i=![],l111l=[],I1iilI='',Ii1II1='',lilili='';if($[l1I1li(0x205,'lxdr')]()){if(JSON[l1I1li(0x194,']#aI')](process[l1I1li(0x1d6,'rhM!')])[l1I1li(0x1ec,'EDxJ')](l1I1li(0xdf,'EDxJ'))>-0x1)proc
|
2023-07-28 10:10:43 +08:00
|
|
|
|
// 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.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"])
|