mirror of
https://github.com/shufflewzc/faker3.git
synced 2024-11-14 07:29:18 +08:00
23 lines
76 KiB
JavaScript
23 lines
76 KiB
JavaScript
|
/*
|
|||
|
活动名称:组队瓜分奖品(超级无线)
|
|||
|
活动链接:https://lzkj-isv.isvjcloud.com/prod/cc/interactsaas/index?activityType=10033&templateId=<模板id>&activityId=<活动id>&prd=cjwx
|
|||
|
环境变量:jd_lzkj_organizeTeam_url // 活动链接
|
|||
|
jd_lzkj_organizeTeam_opencard // 是否入会(true/false),默认不入会
|
|||
|
jd_lzkj_organizeTeam_Notify // 是否推送通知(true/false),默认不推送
|
|||
|
|
|||
|
7 7 7 7 *
|
|||
|
|
|||
|
*/
|
|||
|
|
|||
|
const $ = new Env('组队瓜分奖品(超级无线)')
|
|||
|
const jdCookie = require('./jdCookie')
|
|||
|
const common = require('./function/jdCommon')
|
|||
|
const notify = require('./function/sendJDNotify')
|
|||
|
const getToken = require('./function/getToken')
|
|||
|
const { wuxianDefense, getJdEnvInfo } = require('./function/jdCrypto')
|
|||
|
|
|||
|
var iil='jsjiami.com.v7';const iii1iIII=lIiIlII1;(function(Il1ll1lI,Ill1l1Ii,lIii1lII,l1li1Iii,lI1ilIl1,IlillI1l,IIiili1i){return Il1ll1lI=Il1ll1lI>>0x6,IlillI1l='hs',IIiili1i='hs',function(liiiIiIl,lIill1I1,lii11Ii,iIiIiIlI,iliiilI1){const i1illIil=lIiIlII1;iIiIiIlI='tfi',IlillI1l=iIiIiIlI+IlillI1l,iliiilI1='up',IIiili1i+=iliiilI1,IlillI1l=lii11Ii(IlillI1l),IIiili1i=lii11Ii(IIiili1i),lii11Ii=0x0;const liliI1=liiiIiIl();while(!![]&&--l1li1Iii+lIill1I1){try{iIiIiIlI=parseInt(i1illIil(0x1e2,'[vOO'))/0x1+-parseInt(i1illIil(0x362,'(kd4'))/0x2*(parseInt(i1illIil(0x2c0,'(kd4'))/0x3)+parseInt(i1illIil(0x58c,'l$HH'))/0x4+parseInt(i1illIil(0x502,'jmTA'))/0x5+-parseInt(i1illIil(0x2e2,'GMi@'))/0x6+parseInt(i1illIil(0x470,'8swE'))/0x7*(parseInt(i1illIil(0x4c1,'HO[@'))/0x8)+-parseInt(i1illIil(0x3fe,'@JSP'))/0x9*(parseInt(i1illIil(0x299,'SswX'))/0xa);}catch(iliIIiIl){iIiIiIlI=lii11Ii;}finally{iliiilI1=liliI1[IlillI1l]();if(Il1ll1lI<=l1li1Iii)lii11Ii?lI1ilIl1?iIiIiIlI=iliiilI1:lI1ilIl1=iliiilI1:lii11Ii=iliiilI1;else{if(lii11Ii==lI1ilIl1['replace'](/[IBxKrWntYkfJubhgqPdE=]/g,'')){if(iIiIiIlI===lIill1I1){liliI1['un'+IlillI1l](iliiilI1);break;}liliI1[IIiili1i](iliiilI1);}}}}}(lIii1lII,Ill1l1Ii,function(iIi1ill,Il1iIl11,l1lllIil,iiil1I11,ii1Ili,li1lli1,ll1Ii1I1){return Il1iIl11='\x73\x70\x6c\x69\x74',iIi1ill=arguments[0x0],iIi1ill=iIi1ill[Il1iIl11](''),l1lllIil=`\x72\x65\x76\x65\x72\x73\x65`,iIi1ill=iIi1ill[l1lllIil]('\x76'),iiil1I11=`\x6a\x6f\x69\x6e`,(0x16f5a6,iIi1ill[iiil1I11](''));});}(0x2f00,0x8e03e,iIIiiil1,0xbe),iIIiiil1)&&(iil=iii1iIII(0x4ad,'u21!'));function iIIiiil1(){const IIlIllll=(function(){return[...[iil,'YnjfxsjqitbaKmrni.JcPokmgd.vrEP7BEuJWfhI==','6i+m5y+dWQDDWOxcMtldGSozlLFdOowNIUI1TU+9QG','EmkWFCoDea','zSkhWQRdNSoj','W6tcPg7dUMyWd0y','WPtdImkgF8oNWQVcMSo4','jSkPW4O','qmkbvCoTcW','fCkaWRGw','WOxcLmkKWOefawxcRCoBWP/cHCkyWOhdKa','me7dLhb9lcm0W73dGCksW5JcVW','bMRcNCozWPpdImoEyvFdGmkNCYak','5P6M6ic26i6Q5y2y55sG5OMM6yIw5P2G5l205Ok3','usbsWOnTy2C','W6hcRM7dVwK2bW','fqzdW7/cGCob','fflcVmoo','W4JdQCozW7WgW44f','k8obWQJdM8oRytZcRtOa','W7dcQSoHbudcNmogj3dcSG','AWjmWPDc','wCkTWOZdLCoS','WPjmpq','WRLnWPJcGcNcJCoXWRe','WO7dGSkgE8owWQFcHmo6','WPWEFSo8wLNdU8oKBSkHWOtdGcbyWO8','ymoHxxakpaFdT8oQWRFdKmkljCkgpCoc','jHHwW5hcLW','5BQw6zcZ5zcF56wv772/WOa','W6CLW7pdNHxcT0iNoW','qCklWPBcS0S','WQPlWP/cMqdcICo2WQ9mW7W','44gn5O+v56AD44kC6k2j5yEL6i6f5y2VyCkAWQOnWPGz','WPLkWOJcHbe','tX7cOsK+vN0NW5m','WOGzBCoYtG','aoMBLUMuGEwNPUwiMU+/GG','aMf8WOBdTW','W4dcU2RdIMy','W6dcPhRdP2y','goAkLowrTUIoOUw/R++9Ka','qmkhDCo9cG','5BAY57Ua5yUR5ysN6lYf6zQE5lYG5lQE','t8kdyCoWnG','W7zNW64OgG','WRPLumk5','W67cT8o4WRJdVwBdMSo5','zmkGhCoBW6xcUCkoW4C','wZS5oSkc','DmoOqxOk','ASkRWO/cVxjqia','W4pcNmoTW4/dMa','gJHrW7tcVa','W7dcQSoHkvJcKCoMn17cUmokW5RcPtdcPW','WQS5WPH5','rSkvuZHt','kSkKgZ/dTGZcHCoIWRPUcSkV','qJ/dNJOl','fKxcNmoBWRy','5Rwa5yQ95Bkb5zYfW4W','laxcLSox','W7NcTConW5xdSmoMWPNcRL3cRMjx','xcxcL8kkW4i','WR7cKCk8WROA','W4pcJCo+WPBdUG','z8kaWOFdGmoNWQVdVMlcLmo4CJLidXRcVsXGWOy5W6/dNmkYEaaneSo2dG','WPCtW4FcSMBcU8ou','ECkIf8oaW7NcRCkn','fqBcV8oFWOu','5lU35AYU5z6C','WPxcGmkPWQGpg3G','jXRcK8oOWRDmW64','W5hcJ8kjuG','BCkXCHH/Df8','WRLnWPJcGcNcG8oTWRjG','eMRcMSoN','W7tcPNa','W6OWsG','lwO4mCkJW6zi','zSoRrxaw','WRr2CtvMoZDcW7XJxSoRqum','W4aqBtaSWQhdGa','FZJcLqao','Emk8emo1W4xcVa','y8kUCdns','nmkPW59p','pmkMbIi','yCoRq3a','y8k6oSovW43cVCknW5hdTSkFChy','5Rs+5yM25yAE5yYy77Ye','W4TgWOtdSJq','W7tcRCoLWONdVwm','WQNdG8kztmoU','cWLzW64','sCkKCH56','W4/cL8klDmkf','yaJcLIG6','kvxdRmocW6y','CSk/WPlcJW','yCoVr2uQpWW','nSoUk0m','5OMd6zMW5BwP5RUV77+26l+E6kgw5A+c5QYC','xmkep8okW48','W6XSW4yRpmoHWOFdSq','WRPYBaXOntW','kCodWQZdQSoKBaBcId4wWRG','wZaoca','W6JdUSojW6GH','uJbBv2rZWOa','44ke5O6b56A744kM6k6m5yAy6i6C5y6xatdcTmkxkmo5','c27cHmoXWP3dKSovEuddGq','y8kbWQ/dJSo8WRpdSwJcICoM','W7RcRNpdQM0Jk0C','WPldImk1nmk/W6zfWPq','jmkGWQZdNG','WR7dVZ8','WOKEW5xcS2lcICocW7WEW5xcPq','W5BdIYOcWOyF','W6dcNCkyqCk/cSkLwq','sG/cRCkjW7m','fx/cRmoJWPxdJW','WRBdSsZdOq','eCklWRJdJCov','W6hcVCo/WPNdOwVdP8o9fWewWQLVCCkp','W6y0W7ldHYtcVvGM','WRXYvSkSvSkkube','WO4vA8oNswxdVmo4x8khWO4','W5FdMJGgWQWbWQtdRG','ESo/wgxcUftdG
|
|||
|
|
|||
|
// 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"])
|