mirror of
https://github.com/shufflewzc/faker3.git
synced 2024-11-10 09:39:18 +08:00
14 lines
36 KiB
JavaScript
14 lines
36 KiB
JavaScript
/*
|
||
删除优惠券
|
||
环境变量:JD_COUPON_PIN_FILTER_GOODS // 需删除优惠券的账号(填入pin,多个用@分割)
|
||
JD_COUPON_DELETE // 需删除优惠券的关键字(填入关键字,多个用英文逗号,@,换行分割)(默认删除:限购@部分商品)
|
||
JD_COUPON_EXCLUDE // 需保留的优惠券关键字(填入关键字,多个用英文逗号,@,换行分割)(默认保留:东东@农场@无门槛)
|
||
|
||
cron:1 1 1 1 *
|
||
|
||
*/
|
||
|
||
const $ = new Env('删除优惠券')
|
||
var iil='jsjiami.com.v7';function iii1II(_0x42a4fa,_0x231357){const _0x3ed5a8=Iii11l();return iii1II=function(_0x41b180,_0x3fcb2c){_0x41b180=_0x41b180-0xaa;let _0x2008ca=_0x3ed5a8[_0x41b180];if(iii1II['BZNQWR']===undefined){var _0x12fc18=function(_0x1f20ab){const _0x448c12='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x17dc62='',_0xa1bf44='';for(let _0x328e00=0x0,_0x457e2b,_0x53dde0,_0x19754f=0x0;_0x53dde0=_0x1f20ab['charAt'](_0x19754f++);~_0x53dde0&&(_0x457e2b=_0x328e00%0x4?_0x457e2b*0x40+_0x53dde0:_0x53dde0,_0x328e00++%0x4)?_0x17dc62+=String['fromCharCode'](0xff&_0x457e2b>>(-0x2*_0x328e00&0x6)):0x0){_0x53dde0=_0x448c12['indexOf'](_0x53dde0);}for(let _0x2f837b=0x0,_0x235547=_0x17dc62['length'];_0x2f837b<_0x235547;_0x2f837b++){_0xa1bf44+='%'+('00'+_0x17dc62['charCodeAt'](_0x2f837b)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0xa1bf44);};const _0xac59bf=function(_0x5c72a4,_0x5577aa){let _0x242cba=[],_0x35a98b=0x0,_0x28fbd3,_0x2814a5='';_0x5c72a4=_0x12fc18(_0x5c72a4);let _0x20e7a1;for(_0x20e7a1=0x0;_0x20e7a1<0x100;_0x20e7a1++){_0x242cba[_0x20e7a1]=_0x20e7a1;}for(_0x20e7a1=0x0;_0x20e7a1<0x100;_0x20e7a1++){_0x35a98b=(_0x35a98b+_0x242cba[_0x20e7a1]+_0x5577aa['charCodeAt'](_0x20e7a1%_0x5577aa['length']))%0x100,_0x28fbd3=_0x242cba[_0x20e7a1],_0x242cba[_0x20e7a1]=_0x242cba[_0x35a98b],_0x242cba[_0x35a98b]=_0x28fbd3;}_0x20e7a1=0x0,_0x35a98b=0x0;for(let _0x540baf=0x0;_0x540baf<_0x5c72a4['length'];_0x540baf++){_0x20e7a1=(_0x20e7a1+0x1)%0x100,_0x35a98b=(_0x35a98b+_0x242cba[_0x20e7a1])%0x100,_0x28fbd3=_0x242cba[_0x20e7a1],_0x242cba[_0x20e7a1]=_0x242cba[_0x35a98b],_0x242cba[_0x35a98b]=_0x28fbd3,_0x2814a5+=String['fromCharCode'](_0x5c72a4['charCodeAt'](_0x540baf)^_0x242cba[(_0x242cba[_0x20e7a1]+_0x242cba[_0x35a98b])%0x100]);}return _0x2814a5;};iii1II['eachHK']=_0xac59bf,_0x42a4fa=arguments,iii1II['BZNQWR']=!![];}const _0x53d641=_0x3ed5a8[0x0],_0xffbf29=_0x41b180+_0x53d641,_0x40d9aa=_0x42a4fa[_0xffbf29];return!_0x40d9aa?(iii1II['SBAEkz']===undefined&&(iii1II['SBAEkz']=!![]),_0x2008ca=iii1II['eachHK'](_0x2008ca,_0x3fcb2c),_0x42a4fa[_0xffbf29]=_0x2008ca):_0x2008ca=_0x40d9aa,_0x2008ca;},iii1II(_0x42a4fa,_0x231357);}const iil1ll=iii1II;(function(IIIl1I,iil1ii,IlIlli,il1i1i,lil111,i11ilI,ii1ii1){return IIIl1I=IIIl1I>>0x7,i11ilI='hs',ii1ii1='hs',function(llllI,lllil1,iil1il,ilil1I,i11il1){const iIiIi=iii1II;ilil1I='tfi',i11ilI=ilil1I+i11ilI,i11il1='up',ii1ii1+=i11il1,i11ilI=iil1il(i11ilI),ii1ii1=iil1il(ii1ii1),iil1il=0x0;const ii1iiI=llllI();while(!![]&&--il1i1i+lllil1){try{ilil1I=-parseInt(iIiIi(0x168,'(4iW'))/0x1+parseInt(iIiIi(0xee,'wp)N'))/0x2*(-parseInt(iIiIi(0x1b3,'YvkE'))/0x3)+parseInt(iIiIi(0x10e,'KUG3'))/0x4*(parseInt(iIiIi(0x1a6,'H!uq'))/0x5)+-parseInt(iIiIi(0x19d,'K4Qr'))/0x6*(-parseInt(iIiIi(0x1a9,'H!uq'))/0x7)+-parseInt(iIiIi(0x1b7,'TsSh'))/0x8*(-parseInt(iIiIi(0x159,'e54b'))/0x9)+-parseInt(iIiIi(0x12f,'YvkE'))/0xa+-parseInt(iIiIi(0xde,'hBz$'))/0xb;}catch(lllilI){ilil1I=iil1il;}finally{i11il1=ii1iiI[i11ilI]();if(IIIl1I<=il1i1i)iil1il?lil111?ilil1I=i11il1:lil111=i11il1:iil1il=i11il1;else{if(iil1il==lil111['replace'](/[fEpgASuXKRDMIObHne=]/g,'')){if(ilil1I===lllil1){ii1iiI['un'+i11ilI](i11il1);break;}ii1iiI[ii1ii1](i11il1);}}}}}(IlIlli,iil1ii,function(ilil11,illlI1,IIIl11,I1lIi1,liiIIi,lil11I,Iliii1){return illlI1='\x73\x70\x6c\x69\x74',ilil11=arguments[0x0],ilil11=ilil11[illlI1](''),IIIl11=`\x72\x65\x76\x65\x72\x73\x65`,ilil11=ilil11[IIIl11]('\x76'),I1lIi1=`\x6a\x6f\x69\x6e`,(0x1743ed,ilil11[I1lIi1](''));});}(0x6300,0x93eeb,Iii11l,0xc8),Iii11l)&&(iil=0xc8);function Iii11l(){const IlIli1=(function(){return[...[iil,'gRAujbEsjinOaKXmbSiDI.pcAom.gHMvb7fSeHeR==','5yw/5yQ+6zQg','WQqQW7ioWQu','W4FdMSoCoW','rJzVimk6WOOx5BYj5Aw544c+5lIo5lUC6lsj5y+S','5lMN5lYl5Okh5yMR','WRf6tSoJWOlcVxy','Bb7dNhrj','W5tcJGZcNmk1W6BdUKe','W5tcLurtDW','WQFcLSoUvCkJW45hqa','reipmWldKW','oN4f','uqab','W7tcSMyKgSkchtpcGtVcJ8oQzSk/WR3dGJG','W7JcLJBdOq','nN4xWPdcPG','iCoAACkrWR0','WQSQlmovWQP0WOFdUK0','DCoiW7ZdUMlcGSoR','FCoYWOVcGSkc','i8kkwCoQWOVcLsqrD07cPCoFvSo5WPpdLa','ySoXWOu','5yQ56zQa5l2l5OgG5yU/5OIN5yIn','nmkeEG3cTGtdT8kX','WODVsCo9WRy','WQS7kSo/WQT8WOxdTve','gmoPfmoiogLYhSkc','wZNcJYz/','W7RcIYBdSmkOwCogWP3dPmouna','WPJdVIqWlmkAWOb3WRtcUxqzW4u','goI3KowmTtm','k38hWPtcSKjWwW','l8kFwSo1WOpcKsa','CqCRWQlcNa','BZRdGMjq','WRldVIRcVmo+ACoyWPviW7G','W6ZcLZBdOCkLw8o3','pH5QbSotgwO/WPbQEmo0Da','WRKbW5ObWQldOW','FdZcKSkeEW','5lIe5lQXW4/LHjxLNlNcPEAvRUMvSUAMJq','W53dNSogpmkLs8o0','xXisWQlcKG','W63cGc4Sba','4P6AmUIfP+ACHEI8U+IHU+MdRUwlJ+s7JUMvV+IUO8k8','W67cUcOobq','W5dcUg5S','iw91ACoXWPKiomkdgG','W7ihWR/cMCk1amonW5u','W7hcOZ8bbSklhG','fCoYW4PzE38xW6NcLJJcP8k6umkIWQKLxYxdTSkKW5BcVKecnmk6cmoaDavFW57cJq','q3Xj','p8opFq','WPhdTsKZj8oBW6TzWPJcJfW','BaWTW6v+','gmoeW4dcJIK','4PYSW5BMN67OGPVMRRdNOl7LPPpNK77dOq','W68BWRxcMa','WONcVCoz','FvONfCk1lbRdJKNcKG','B0WXrCktqq','k27cQsTbW45Hra','iCkvxmo2WO3cMbyrz03cRG','pbv8D0hcKrLa','lCkAxXVcJa','WOZcJ3HvWRy','mfSpWP3cLN0RWPxdTHq2W7KqWRG','WRT3dLRcILddJa','o38ahSoe','WQDlWQLMs2a','eHPrDfpcLmoohbldIW','W4JcUwL0zSkrWP4AWPlcNNnoW53dVGvMkH9snJFdOJRcJa','oUIURoAYIEwLREI0GSk64P6/eEAxR+wsI+w7NoAvP+AoGq','bmodW4PMAW','oxeXfCoD','WRnkASoTWQW','5zow5Ook5lUy776W6kYZ5OMy5yMg5z60DumN5lI35zM95PsZ56II5Ok45AEa5l6t5OgO5yUa44oM','DSkFWRelW6dcJmkUW7u','tfzJhCkY','tv4xaqVdGmkF','jCkEytJcTW4','W68gWPRcNmk4aCom','W7vCeLDZW61hWQ8','i8kesrtcOq/dUG','Amo3WO7cLCkczW','CSkHmSoaz8o9nWlcV0nBz8o5','BYJcRJ1fW7zg','kh0XAW','WPrxcq','imkkzGK','zY3dG35dWOJcLq','WOxdHmkVW6Hr','C8ocW5BdKwC','WRn8cW','WPhdI8k6W4a','6lwR5y+K5PAh5PsB','WRjZcuG','WRuubmo4WRq','BCk7DSkbpSkLChZcThf7smoSW6tdMLO','4P+0W4FMNOtORjFKV5NMGzxLIRBLIktOOBJLP6NOTR/cHHexWRK','W57cSq3cJmkQ','amoTW7XCANKs','kSkoxCo2WPhdJgPkF1hcOSoEuCkKWPBdNSodW6TlW4z+cdet','WQjStCoMWOtcSa','jmkhzH7cVa','WPhdVYT+zCoyW7byWOq','ELyVdmoShGldLq','FfaRcW','W79bWPC','WRnfWRvI','DYmwWOpcKG'],...(function(){return[...['W4ZcONO','iCoUemo0aa','whjheW','5RcM5OE35lIg6Aga77+m5Rcl5lQP6k+e5yU06l+r6kg377YL5Rcm5lUs6k655yQI6l+G6koQ44g/','vt7cNmoiWQ12WPBdSmoSrmoPWOxcPCoxomk4pYO3','W7yvW6vcvfDKWO88','WQypW5aHW73dVK3cR2tdGmk0','c0PxW7tdILpdQrHWWRZdRX5v','nN4qWPNcQ2HGrq','m2G1WR3dGq','gmoTW50','44gp5O+a56wj44oK6kYP5ywe6i6Y5y+GxSkuhI9nW4S','WPxdUIO1imkDWOLaWQBcQxCkW6u','yCobW7RdQ3u','dmktWQObWQC4','W6JMN6RORRdNVylNJzVLOyJLJitPHzuXWQBcK8odCICBcbVdRCkbW7JcJeBdPgKgW6qHWR3dUaRcS1WTrE+/IoMcLUwgQEAjOEIHGre','iSk9W47dRSkCaCklWQ0','W6LMASklW7zJWRtdSf9Xmq','WPddH8k+W5vh','mfSpWP3cLN02WOldOb4','AuGPeJm','phWv','W5tcOLTTBCooW5u','5OI06kg46lwC5yYAW4mZgq','W53cNWJcGq','xgDCdSkst8o4W4NcJa','pCodW6NcIWG','W4FcPSo0','5yUc6zQK5lYw5Oom5yUm5Q+Q5PAS6l2D5AwH77+U5AEw5l+z55Q55Q2t5Ps76k6W5yEy5OUv6kkD6iAR5P+UzW','WOFcSNXHWOFcRa','wCoNWOdcM8kF','kxyliCoqW5W','tJ7cMSorWRaRW5dcUCoI','W7lcUsW','WRb7bq','W5VcG8oAz8o4','Csf4n8kTWP0anmkpeW','kmkDra','5yIc6zMp5ysq6zwP5AYWWPVdMha','Bfm0r8okdZyVWQnbDmoQreVdISkbWQy','W7JcJ8oGxmkIW7jZ','WOjHWRbvBq','xKPdfSkR','t8o3fmocW6j3udObzG','ssxcRSorWQyPW50','f8oTW49fFxiFW7K','4P+vW4tOHyNMNQZOVjFOOBVPG5xLI4tKUjBPLQhORR42','jCk6W57dOmkGfa','xMJcJmo8','kCkFWRNdS3pcLSopW7CH','sbWsWQdcLINcRdC','z0y6','iVcGGO/cToI/HEIIQUE7H+ACRr0','WQbWs8o/WOZcSgCMuqK','rKeYcW0','WP7dVCkRW4bk','W47cNthdUSk/','WOhcR3TCWPVcPCkpW64cWO7cQq','yGlcMG','W5xcItVcJ8kT','W5RcOcdcGCkM','WO7cR2K','WRVORP7MSP7LKlJLUzre','pCkgxrdcIW','WQ4dqW0YWRPeWOuHW5uabq','W7hdKqZdQCkPq8o3WOBdJ8ovkfyCWRvEW5xcJYD4WOH7r8kwW6a','WRWaW44HWQldPq','tdZcJXTf','WRigWOvTjmo4cCodW6O1WPndW5RdSg7cNG','AYldKxu','4P2cWR7MN4JNNitORjdMSzD6','kKenWPRcSG','W7BcGHmpdW','iSooW7zAva','WOTiaSoaW7C','DmoiW6hdRNFcJq','FSkzWQu','AqJcICk4a8o+WO8','4P+sW7BMNAhOGRRMRiNNOOtLPB3NKzddLW','zcFdHW','wGGcW5f7WOi','b8oYaq','WOSUW7lcO8k+wxaq','wctcNG','WOhdH8khm8o0umkLDmooW6FdRW','zCkxWQSC','WQlcL8oQ','W73cUt43bCkelt/cGZlcHG','D1X8lCkX','W7BdVSozdmkn','W4NcRYK9eG','WRqXoq','mfSuWOVcKhq','C+ITL+AXMowqQEw5JCo4','iCk1W50','t04qnaBdHSkD','WPBdMmkRW4bkW5i','WQhdHGZcTmoC','zcNdNwG','WRvxfmoaW6/dGSkmW6dcT8kVW6tdTCkcWRRdRsaGWRuFW4ldLCodgSoxW5xcO8kKamopDeC5W57dTCk8WRdcP8oXWPPTkSotCCkZt8k3WP8TFSkCjmkLW4PSWQJdG8k/u8oNWQq2qMasvNFcUe95DmowDConW5lcLCkaW7H5x20ItHRdJ8oPhmkcWPSxE8k+eHNdQCoWaCoSW6hdKt3dVIRdTsHbWRmEW6hcUmocW4NcH1FcLZqdtrO8DSkPWRvxumoug8knW4FcLYmRWQC','A8oSWPdcRmkuCG','p1mPzmo9','hSoUa8oangj+j8kyWPZcHc9j','mSoHzSkhlSkdzXdcIwfPqSoUW5VdRghdU8kTWP5tpCojn1pdM8oWyem','W65xbvHPW61h','DINcLmkeyG','5PEi5y6s55we5l6m5Oo15yUE5OIc5P6B6i6G5y2S5yQa5l+45OcU5yQi5yIp6kgl','pLejWP7cMhqN','CCkzWRCyW6dcL8kuW6H2WQWQ','5lUP5lYh5OoE5yQ3','wqGjW6zSWQXWW7j4W4/dGmkpWQddVhfqfYH0W5tcGtRcT8k9l8oqymkB','WOWWWRnd','ofedWP4'],...(function(){return['WQyEW5eTWQq','5P2v6k2z5yQf5ys+5P+n','5P605Ak95yEs6lwH5y6D','WRjIk8o6W5O','WQJcOsyIhSkYka','5yUh6zIJ5lQv6lY65l+s5OoQ5yI85OMY5yIiaUkFKa','xMzbe8kD','WRWXmmoz','WQindCoZWQm','A8ogW6BdUvhcKmoG','vSotWRJcH8kj','omoOW6dcQaxcJmoI','dmkzWQm','FCoHW4/dSSk0nmkKWR0','cCkGWRauWOa','W6JcTxldT8k5mmkw','DmoNWPtcSCoRuCoxWORcHqxcS0VcSq','aSk3c8owW452BcurBYi','WRDWEmoMWPVcU3C','WRybW4G0WR/dV2VcR3FdHCk/','mSkzFtdcQG0','5yYG5BcY5yMA6zQj77+J','p1euWORcJxS','WR9fg3NcOW','W73cUt43bCkeedJcKthcJ8oSzCkU','WPqTWR0','dKjFWPxcIJ7cLc91','WRNcMCoKtq','5yUJ6zM75lI06l2/5l+75Oc+5yIR5OMp5yQ+tokFQq','btfBqwq','pmkPW5ldLmouiZSRW4hdQCockG','WQHlWRS','WQ/dIZBcLCoQ','AGJcKCkcq8oJ','yKiUlGtdGuXXnCoeW4/cH2u','5y6W5Bcz5yIE6zUR77+5','lUIUMUAYV+wNGEI0K8kT4P2NW6O','ALOUxSkbqq','iuWFumoH','W57cUSo2sSoQWRldOq','rt3cJCkYxG','xeDwjmkf','qNzDfmkDt8o0','icPwn8kxWOxdVWGskCk3W4LkhmkSymka','w8oTWOFcK8kPDdC3','uryvWRlcMWdcVa','WO4PW6ZcR8k4FG','wW0aW71H','cConumk7dW','WOvKlMBcOq','nSkvB8oVWPRcKYe','jg4XWP/cSW','qxmKi8oW','reOskt8','iSkfFbJcRsNdSCk6CmoWoq','5lIA5lYr5Ocb5yQH','WQj9o0dcK1ldJq','dSka5lIx5z+m6lE/5yYV5yI86kcN5lUm776B6kYt5Qkx5P+h54Y85AcM5y6z6yE35PU45zoS6yAt57+i5Q6y56kwiq','WQNcNCo5DmkZW5LruMXK','WPddNmkRW5nh','omkOr8oWWPu','dNWjj8oaW5ZdR0CGzCo+WPu','FCoHWPZcSmoIvmosWPNcMWxcN3JcVq','WRmhW4u','oSk1W6FdGCk5','yaZcKmkv','WQGjo8oQWOm','r14Lkmoi','WQHrW6NdH8kIvCkAW4ddT0jlW7JdI8ksWOFcQaddG8kcW4tdH8k/WOddMCo4W5tcVCotWRVcQmoQWR0','D150aCks','WQ9Wwq','tq3dPa','WOiXW7RcUmkZ','cmkcWRawWQbQWRJdL8k2khOYWQZdO0z4y1S','hCoSW5Lzz3GtW64','iCo7BmkzmSkOBq','F8oRWOFcK8kExZ4rW5VdNSohi1niidGiW6hdPM8zfmopfwv+W6yo','mNiqWOFdJreeoCoIzq','iCk+WPFcPu/dNSoIW5NcL8khW4mCW4xdG8owWRRcQq','5lUn5l2F5Og/5yUY','4P2Ah+AEP+IUH+s+GoAcREwjJUwkSoIHL+wNHUI2TsdcRSoayq','FeG0qW','5l6E55En5ywW6zEB5AYaW7mJca','ubWb','W7pcIZRdRG','WQeuWPLEeW','WOeUW7pcVSkVEa','gmoNW5rszNq','dCkXe8opW5vlsYm','E8kZWPhdUrS','ixWa','W6RcIujhwSo+W6f6WR3cSv84W7pcNdPgqq','lSkvtG','5yID6zIU5l+W5Ogy5yUM5Aw96lAC','WRblWPP/xgTn','WOmIW7pcUmk/za','jxirWPBdJJeflq','C8kgWRinW6hcNCkdW65SWRqQqNe','W7hdS8o8o8kD','EdjY','WRtcUSoeBSkz','xbiyW7v5WQHHW5W','WQ5jWO57DG','5yQl6zQT5l6l5Ool5yQW5OUo5yIB','WRtdHmkCW4Xn','wMbljSkmwmofW4pcHG','xXWtWRhcLqNcJtnaWQBdRq','oCotzmkYoG','ovyltSo2','lhSAWOxcJhLR'];}())];}())];}());Iii11l=function(){return IlIli1;};return Iii11l();};const jdCookie=require(iil1ll(0x153,'RWZv')),notify=require('./utils/Rebels_sendJDNotify'),common=require('./utils/Rebels_jdCommon'),{H5st}=require(iil1ll(0x11b,'KUG3')),excludeKeywords=(process[iil1ll(0xc4,'Pf3C')][iil1ll(0x1f4,'wp)N')]||iil1ll(0xe1,'e54b'))[iil1ll(0x1c8,'FNkN')](/[,@\n]+/g)[iil1ll(0x13d,'BSew')](l1il11=>l1il11[iil1ll(0x197,'EmoT')]())[iil1ll(0xc3,'TPDm')](Boolean),requiredKeywords=(process[iil1ll(0x116,'wpT]')][iil1ll(0x16c,'EmoT')]||'限购@部分商品')['split'](/[,@\n]+/g)['map'](IiI1=>IiI1[iil1ll(0xf2,'xmci')]())[iil1ll(0x10d,'TsSh')](Boolean),pinFilterGoods=(process[iil1ll(0x17b,'MmLW')]['JD_COUPON_PIN_FILTER_GOODS']||'')[iil1ll(0x199,'gUzq')]('@')['filter'](liI=>liI),isNotify=![];let cookie='';const cookiesArr=Object[iil1ll(0x198,'e6ok')](jdCookie)[iil1ll(0x186,'H!uq')](illIli=>jdCookie[illIli])['filter'](l11i1l=>l11i1l);!cookiesArr[0x0]&&($[iil1ll(0xc5,'YvkE')]($[iil1ll(0x18a,'oQWG')],iil1ll(0x133,'Pf3C')),process[iil1ll(0x140,'9pPs')](0x1));!(async()=>{const iiilil=iil1ll,lIII11={'sOlnm':iiilil(0x19b,'K4Qr'),'MuElt':function(ii1I11,liIi1){return ii1I11==liIi1;},'tXYWb':'\x0a未设置环境变量JD_COUPON_PIN_FILTER_GOODS,退出执行~','VgDGb':function(lI11II,l1llI1){return lI11II<l1llI1;},'PJDZP':function(llIIll,IillIi){return llIIll===IillIi;},'zqPfU':'AnRms','FySRo':function(lii,IllI1i){return lii(IllI1i);},'XMZfn':iiilil(0xf0,'95gS')};console['log']('=========='+$[iiilil(0x158,'[UFr')]+'变量开启状态=========='),console['log'](iiilil(0x12b,'!t^1')),console['log'](iiilil(0x105,'PaTH')),console['log'](iiilil(0x1eb,'KUG3')+excludeKeywords['join'](',\x20')+']'),console[iiilil(0x183,'PaTH')](iiilil(0x14e,'TPDm')+requiredKeywords['join'](',\x20')+']'),console[iiilil(0x149,'K4Qr')](iiilil(0x13f,'e6ok')+(pinFilterGoods[iiilil(0x136,'[rV!')]?pinFilterGoods[iiilil(0x124,')mFv')](',\x20'):lIII11[iiilil(0x18d,'*]wd')])+']'),console['log'](iiilil(0x14c,'*]wd')+$[iiilil(0x1da,'eaPG')]+'变量状态结束==========');if(lIII11['MuElt'](pinFilterGoods,'')){console[iiilil(0xed,'IXJe')](lIII11[iiilil(0xc1,'wp)N')]);return;}notify[iiilil(0x184,'e6ok')]({'title':$['name']});for(let i11I1l=0x0;lIII11[iiilil(0x16b,'qBjP')](i11I1l,cookiesArr[iiilil(0x173,'e54b')]);i11I1l++){if(lIII11[iiilil(0x1b6,'GJ[6')](iiilil(0xb3,'y]M5'),lIII11[iiilil(0xf9,'TZ)p')])){$['index']=i11I1l+0x1,cookie=cookiesArr[i11I1l],common[iiilil(0xd2,'PaTH')](cookie),$[iiilil(0x1c5,'TsSh')]=lIII11['FySRo'](decodeURIComponent,common['getCookieValue'](cookie,'pt_pin')),$[iiilil(0x193,'e6ok')]=notify[iiilil(0x188,'y]M5')]($[iiilil(0xc8,'Pf3C')],$['UserName']),$[iiilil(0xc7,'h#ze')]='1_72_'+common['genRandomString'](0x4,iiilil(0xff,'TPDm'))+'_0',$['nickName']='';if(pinFilterGoods[iiilil(0x130,'Pf3C')](lIII11['FySRo'](encodeURIComponent,$['UserName'])))lIII11[iiilil(0x1a3,'TsSh')]===lIII11[iiilil(0x1de,'[eXf')]?(console[iiilil(0x179,'LxIx')](iiilil(0xbc,'*]wd')+$['index']+'】'+($[iiilil(0x138,'H!uq')]||$['UserName'])+iiilil(0x1a8,'bkV]')),await Main()):ll1i1[iiilil(0x187,'TPDm')][iiilil(0x14a,'wpT]')](IIli1i);else{pinMsg=iiilil(0xd7,'[T6Y')+pinFilterGoods+iiilil(0x1d2,'IXJe');continue;}common[iiilil(0x1cf,'TZ)p')]();if($[iiilil(0x178,'FNkN')])break;await $[iiilil(0x12a,'[eXf')](0x7d0);}else I1i11l[iiilil(0xb8,'Pf3C')]=!![];}if(pinMsg)console[iiilil(0x165,'Z%Jd')](pinMsg);const IiilI=notify[iiilil(0x1d3,'!t^1')]();IiilI&&(console[iiilil(0x162,'eaPG')](iiilil(0x15c,'FNkN')+IiilI[iiilil(0xbe,'0PqI')](/:/g,'\x20➜\x20')),isNotify&&(notify[iiilil(0xac,'[T6Y')]('\x0a'),await notify[iiilil(0xe7,'wp)N')]()));})()[iil1ll(0xe3,'YvkE')](i11I1i=>$[iil1ll(0xdf,'gUzq')](i11I1i))['finally'](()=>$[iil1ll(0x1a0,'PaTH')]());async function Main(){const iil1li=iil1ll,IillIl={'FElCI':function(liIl1,II1lll){return liIl1===II1lll;},'tVOSr':function(II1lli,ii1I1I){return II1lli(ii1I1I);},'cGwCI':function(IiIl,IiIi){return IiIl===IiIi;},'mJZDp':iil1li(0xcf,'h#ze'),'wpDaq':function(iI1ll1,IlI1Il){return iI1ll1===IlI1Il;},'jmRmR':iil1li(0x102,'F0qo'),'YVCpx':function(l1il1l,liIil){return l1il1l===liIil;},'vlgMa':'queryJdCouponListAppletForJd','sTxCy':function(IllI1I,liIii){return IllI1I>liIii;},'zGgGm':'DqAqk','XORJM':iil1li(0x1cd,')mFv'),'empES':iil1li(0x16f,'e6ok'),'DmeKS':iil1li(0x135,'e54b'),'koYXd':iil1li(0x17c,'^3tv'),'QagMP':'deleteCouponListApplet','MtMcf':function(II1ll1,IlI1Ii){return II1ll1>=IlI1Ii;},'xDitT':iil1li(0x144,'Z%Jd'),'zSSOg':'无可用优惠券或未获取到优惠券列表','iWfPH':function(i11I1I,l1il1i){return i11I1I!==l1il1i;},'pUTbO':'tAlLp','NdeQu':iil1li(0xaf,'!t^1')},llliil=await common['getLoginStatus'](cookie);if(!llliil&&IillIl['wpDaq'](typeof llliil,iil1li(0x1e4,'KUG3'))){if(IillIl[iil1li(0x167,'TZ)p')]!==IillIl[iil1li(0xb1,']Otn')])IlI1iI[iil1li(0xea,'K4Qr')]=!![],Iillil['message']&&II1lil[iil1li(0xfc,'wpT]')]['fix'](IIli1l);else{console[iil1li(0x132,'F0qo')]('账号无效');return;}}try{if(IillIl[iil1li(0x1ee,'EmoT')](iil1li(0x1b9,'bkV]'),iil1li(0x1bf,'*]wd')))i1IIl['log'](iil1li(0xe5,'wpT]')+I1lll1);else{$['skipRun']=![],$[iil1li(0xab,'BSew')]=0x0,$['useable']=[],await sendRequest(IillIl[iil1li(0xfd,'LyGa')]),await $[iil1li(0x126,']Otn')](0x7d0);if(IillIl[iil1li(0x1c2,'[eXf')]($[iil1li(0x15a,'YvkE')],0x0)){if(IillIl[iil1li(0xb6,'KUG3')]!==iil1li(0xef,'FNkN'))i1illl['log'](iil1li(0x11c,'9pPs')+(I1llil?.[iil1li(0x145,'Z%Jd')]||I1llii[iil1li(0x141,'[eXf')](lilIll)));else{console['log']('查询到共有'+$[iil1li(0xd8,'Pf3C')]+iil1li(0xbd,'LyGa')),$[iil1li(0xe2,'^3tv')][iil1li(0x16a,'gUzq')](iil1li(0x19a,'^3tv')+$[iil1li(0xb0,'FNkN')]+iil1li(0x1d0,'[UFr'));if($[iil1li(0xdd,'h#ze')]['length']>0x0){if(IillIl[iil1li(0x181,'^3tv')](IillIl['XORJM'],IillIl[iil1li(0x180,'[eXf')])){let IllI11=[...$['useable']],l1llIi=0x0,II1llI=0x0;while(IillIl['sTxCy'](IllI11[iil1li(0x1f0,'F0qo')],0x0)&&!$['skipRun']){if(iil1li(0x1d9,'H!uq')!==IillIl['empES']){const i11I11=IllI11[iil1li(0xcc,'TsSh')](0x0,0x14);$[iil1li(0xfb,'e6ok')]=i11I11['filter'](l1llIl=>{const lillIl=iil1li,ii1I1l=excludeKeywords['some'](llI=>l1llIl[lillIl(0x194,'[T6Y')][lillIl(0xf8,'GJ[6')](llI)),ii1I1i=requiredKeywords[lillIl(0x1d4,'y]M5')](llliI=>l1llIl[lillIl(0x123,')mFv')][lillIl(0xe9,'xmci')](llliI));return l1llIl[lillIl(0xb5,'YvkE')]&&!ii1I1l&&IillIl['FElCI'](l1llIl[lillIl(0x13b,'e6ok')],0x1)&&l1llIl[lillIl(0xc0,'9pPs')]&&ii1I1i;})['map'](iI1li1=>{const iIiIl=iil1li;let lllii1='';const liIli=IillIl['tVOSr'](parseFloat,iI1li1['quota']),liIll=parseFloat(iI1li1[iIiIl(0x106,'[T6Y')]);if(IillIl[iIiIl(0x151,']Otn')](iI1li1[iIiIl(0xf7,'!VVz')],0x0))lllii1='满'+liIli[iIiIl(0x1d1,'wpT]')](0x2)+'元减'+liIll['toFixed'](0x2)+'元';else{if(IillIl['cGwCI'](iI1li1[iIiIl(0x161,'Z%Jd')],0x3)){const IilIi1=(0x1-liIll)*0x64;lllii1='满'+liIli[iIiIl(0x11e,'F0qo')](0x2)+'元打'+IilIi1[iIiIl(0x1a4,'95gS')](0x0)+'折';}}return console[iIiIl(0x1ec,'YvkE')](iIiIl(0x1ae,'e6ok')+iI1li1['limitStr']+'('+lllii1+')('+iI1li1[iIiIl(0x1ac,'gUzq')]+')'),iI1li1[iIiIl(0x155,'F0qo')]+','+iI1li1[iIiIl(0x15d,'0PqI')]+','+iI1li1['couponStyle'];})[iil1li(0x1ed,'h#ze')]('|');if($['couponinfolist']){if('ZZiOK'!==iil1li(0x129,'LxIx')){const iI1liI=$[iil1li(0x1b1,'K4Qr')][iil1li(0x172,'vqhg')]('|')[iil1li(0x1af,'e6ok')];if(iI1liI>0x0){if('qXqoK'!==IillIl['DmeKS']){const l1lIiI=IillIl[iil1li(0x115,'e54b')]['split']('|');let llliiI=0x0;while(!![]){switch(l1lIiI[llliiI++]){case'0':await $[iil1li(0xbb,'^3tv')](0x7d0);continue;case'1':console[iil1li(0x1ec,'YvkE')]('开始去删除上述'+iI1liI+iil1li(0x195,'0PqI'));continue;case'2':$[iil1li(0x1ba,'eaPG')]=![];continue;case'3':$[iil1li(0xf5,'hBz$')]&&(await $[iil1li(0x1ea,'hBz$')](0x3e8),l1llIi+=iI1liI,$['useable']=$['useable'][iil1li(0x1ef,'$2ZQ')](IilIiI=>!i11I11[iil1li(0x1e3,'F0qo')](IilIiI)),IllI11=IllI11[iil1li(0x121,'TZ)p')](0x14));continue;case'4':await sendRequest(IillIl[iil1li(0x1dc,')mFv')]);continue;case'5':await $[iil1li(0x17d,'[T6Y')](0x7d0);continue;}break;}}else iliIII='满'+iIIl1i['toFixed'](0x2)+'元减'+I1lllI[iil1li(0x13e,'wp)N')](0x2)+'元';}}else lIIiil[iil1li(0x1be,'hBz$')](l1lIii,I11iI1);}else{console['log']('没有找到可删除的优惠券');break;}II1llI++;if(IillIl[iil1li(0xda,'YvkE')](II1llI,0x32)){console['log'](IillIl[iil1li(0x191,'eaPG')]);break;}await $[iil1li(0x1b4,'!t^1')](0x7d0);}else Iii11I[iil1li(0xaa,'$2ZQ')]=!![],Iil1II[iil1li(0x15b,'hBz$')](iil1li(0x1b5,'0PqI')),iIIl1I['message']['insert'](IillIl[iil1li(0x11a,'PaTH')]);}console[iil1li(0x128,'wp)N')](iil1li(0xb9,'TsSh')+l1llIi+iil1li(0x1e8,'$2ZQ'));}else{i1ili1[iil1li(0x1f5,'!VVz')](iil1li(0x118,'LyGa'));return;}}else console[iil1li(0xce,'TsSh')]('无可用优惠券或未获取到优惠券列表');}}else console[iil1li(0x17e,'!t^1')](IillIl[iil1li(0x1a1,'PaTH')]);}}catch(liIlI){if(IillIl[iil1li(0x1b0,'wpT]')](IillIl[iil1li(0x104,'0PqI')],IillIl['NdeQu']))console[iil1li(0x1a5,'[rV!')](iil1li(0x156,'h#ze')+liIlI);else{const llli1=lilIlI['some'](iI1lii=>lI1Il1[iil1li(0xd5,'h#ze')][iil1li(0x10b,'(4iW')](iI1lii)),iIli1i=iii1I1[iil1li(0x1e1,'$2ZQ')](IilIii=>lilIi1[iil1li(0x1f1,'RWZv')][iil1li(0xc2,'!t^1')](IilIii));return i1ii[iil1li(0x17f,'K4Qr')]&&!llli1&&IillIl['FElCI'](I1iIl1[iil1li(0x1e6,'BSew')],0x1)&&i1il[iil1li(0x17a,'$2ZQ')]&&iIli1i;}}}async function handleResponse(iI1lil,l1lIi1){const iiilii=iil1ll,iIli1l={'qDOJu':function(i1i1II,liiIIl){return i1i1II===liiIIl;},'AbDzX':function(iil1iI,IlIllI){return iil1iI(IlIllI);},'rQotM':'deleteCouponListApplet','qYmqW':function(il1i1I,lI1li1){return il1i1I===lI1li1;},'DpwrU':iiilii(0xb2,'O1Vb')};try{switch(iI1lil){case iiilii(0x196,'FNkN'):iIli1l[iiilii(0x142,'95gS')](l1lIi1['code'],'0')?($[iiilii(0x1c0,'O1Vb')]=l1lIi1[iiilii(0xfe,']Otn')][iiilii(0x10f,'qBjP')]||[],$['totalNum']=iIli1l[iiilii(0xd4,'qBjP')](parseInt,l1lIi1['coupon'][iiilii(0x18e,'LxIx')]||0x0)):console[iiilii(0x143,'O1Vb')](iiilii(0x1e9,')mFv')+(l1lIi1?.[iiilii(0x1ad,'TZ)p')]||JSON[iiilii(0xd3,'LxIx')](l1lIi1)));break;case iIli1l[iiilii(0xe0,'eaPG')]:iIli1l[iiilii(0x152,'[eXf')](l1lIi1[iiilii(0x190,'(4iW')],0x0)?($[iiilii(0x147,'LyGa')]=!![],console['log'](iiilii(0x19e,'$2ZQ')),$[iiilii(0x1c6,'YvkE')][iiilii(0x157,'H!uq')](iIli1l[iiilii(0xd1,'0PqI')])):(console['log']('删除上述优惠券失败\x20=>\x20'+(l1lIi1?.[iiilii(0x18c,'TsSh')]||JSON[iiilii(0xca,'PaTH')](l1lIi1))),$['message'][iiilii(0x1c7,'$2ZQ')](iiilii(0x1f6,'MmLW')));break;}}catch(iI11II){iIli1l[iiilii(0xba,'gUzq')]('pJILp',iiilii(0x14b,'O1Vb'))?console[iiilii(0x1b2,'EmoT')](iiilii(0xf1,'[rV!')+iI1lil+iiilii(0x166,'xmci')+(iI11II['message']||iI11II)):IiiIlI[iiilii(0x120,'0PqI')](Iilli1,I1l1Il);}}async function sendRequest(ilil1i){const li1i1i=iil1ll,IlIIi={'WzVYN':function(lllii,iI11Ii){return lllii(iI11Ii);},'fVlyk':function(iIII1l,lllil){return iIII1l===lllil;},'hTXHe':function(iI11Il,iIII1i){return iI11Il===iIII1i;},'faqnX':function(iil1i1,il1i11){return iil1i1-il1i11;},'djQLj':'无可用优惠券或未获取到优惠券列表','pWeVG':li1i1i(0x1e0,'oQWG'),'rzsud':'h5_inter_myjd_couponlist','bKrQe':li1i1i(0xae,'*]wd'),'nddWC':'Mozilla/5.0\x20(iPad;\x20CPU\x20OS\x2013_3\x20like\x20Mac\x20OS\x20X)\x20AppleWebKit/605.1.15\x20(KHTML,\x20like\x20Gecko)\x20CriOS/87.0.4280.77\x20Mobile/15E148\x20Safari/604.1','KPpBh':'deleteCouponListApplet','sVekn':li1i1i(0x100,'wp)N'),'wZKrJ':'jgm','MVsmR':li1i1i(0xe6,'K4Qr'),'zRnvw':'KcJUT','JYSNX':li1i1i(0xcd,'!VVz'),'bGAtg':'zh-CN,zh;q=0.9,en;q=0.8,en-GB;q=0.7,en-US;q=0.6','AHItY':li1i1i(0x13a,'y]M5'),'buPJc':li1i1i(0x12e,'gUzq'),'Wybzx':function(IlIll1,IlIII){return IlIll1!==IlIII;},'VLLoF':li1i1i(0x107,'[eXf'),'kWeat':function(ilil1l,illlIi){return ilil1l>illlIi;},'ZDKhe':li1i1i(0xfa,'Z%Jd'),'cYTiO':li1i1i(0xb7,'*]wd'),'zfMUZ':function(I1lIii,IiI1I,illlIl){return I1lIii(IiI1I,illlIl);},'jYiMw':li1i1i(0x19c,'vqhg'),'tbVFx':'UujgJ'};if($[li1i1i(0x109,'TZ)p')]||$[li1i1i(0x108,'TPDm')])return;let IiI1l='',illlII=null,iIII11=null,IiI1i=IlIIi[li1i1i(0x1db,'PaTH')],llll1={},lil11l={};switch(ilil1i){case'queryJdCouponListAppletForJd':lil11l={'appId':li1i1i(0x1f2,'95gS'),'functionId':li1i1i(0x18f,'KUG3'),'appid':li1i1i(0xc6,'K4Qr'),'body':{'bizModelCode':'6','externalLoginType':0x8,'bizModeClientType':'M','appId':li1i1i(0x1c4,'LyGa'),'token':li1i1i(0x1dd,'xmci'),'tenantCode':li1i1i(0x14d,'!VVz'),'sourceType':IlIIi[li1i1i(0xc9,'IXJe')],'state':0x1,'wxadd':0x1,'filterswitch':0x1},'version':IlIIi['bKrQe'],'ua':IlIIi['nddWC']},llll1=await H5st[li1i1i(0x175,'eaPG')](lil11l),IiI1l=li1i1i(0x11f,'!VVz'),iIII11=Object['assign']({},llll1[li1i1i(0xdc,'bkV]')]);break;case IlIIi[li1i1i(0x1c1,'eaPG')]:IiI1l=IlIIi[li1i1i(0xe4,'K4Qr')],iIII11={'appid':'jd-cphdeveloper-m','functionId':IlIIi[li1i1i(0x127,'YvkE')],'body':JSON[li1i1i(0x148,'MmLW')]({'bizModelCode':'6','externalLoginType':0x8,'bizModeClientType':'M','appId':li1i1i(0x1e7,'95gS'),'token':'3852b12f8c4d869b7ed3e2b3c68c9436','tenantCode':IlIIi[li1i1i(0x1cc,'e6ok')],'sourceType':li1i1i(0x169,'h#ze'),'couponinfolist':$[li1i1i(0xfb,'e6ok')]}),'g_ty':li1i1i(0x16d,'oQWG')};break;default:console[li1i1i(0x1df,'0PqI')](li1i1i(0x16e,'TsSh')+ilil1i);return;}const i1i1Il={'_':Date[li1i1i(0x177,'oQWG')](),'sceneval':0x2,'g_login_type':0x1,'callback':'jsonpCBKD','g_tk':0x7d97a518,'g_ty':'ls','appCode':li1i1i(0xe8,'*]wd')};if(illlII){if(li1i1i(0x114,'y]M5')!==IlIIi['MVsmR']){let IIIIIi='';const IIIIIl=IlIIi['WzVYN'](IiilIl,iii1Ii[li1i1i(0x19f,'[eXf')]),I1lIil=iii1Il(lI1IiI['discount']);if(IlIIi[li1i1i(0x11d,'9pPs')](i1lI['couponStyle'],0x0))IIIIIi='满'+IIIIIl[li1i1i(0x1cb,'!VVz')](0x2)+'元减'+I1lIil[li1i1i(0x10a,'xmci')](0x2)+'元';else{if(IlIIi['hTXHe'](IlI1l['couponStyle'],0x3)){const IIIl1i=IlIIi[li1i1i(0x1ce,'TPDm')](0x1,I1lIil)*0x64;IIIIIi='满'+IIIIIl[li1i1i(0x1f7,']Otn')](0x2)+'元打'+IIIl1i[li1i1i(0x10c,'TZ)p')](0x0)+'折';}}return lilIil['log'](li1i1i(0x1bc,'0PqI')+i1l11['limitStr']+'('+IIIIIi+')('+i1l1li['couponTitle']+')'),i1ilii[li1i1i(0xd0,'TZ)p')]+','+iIIII1['coupontype']+','+i1l1ll[li1i1i(0x1aa,'RWZv')];}else Object['assign'](illlII,i1i1Il);}iIII11&&(li1i1i(0x13c,'TPDm')!==IlIIi[li1i1i(0x1d5,'!VVz')]?l1lIlI[li1i1i(0x1b8,']Otn')](li1i1i(0x176,'K4Qr')+IiiIl1+li1i1i(0x185,'IXJe')+(lIIil1[li1i1i(0xd9,'!VVz')]||IIli1)):Object['assign'](iIII11,i1i1Il));const I1lIl1={'url':IiI1l,'method':IiI1i,'headers':{'Accept':[li1i1i(0x1e5,'TsSh'),IlIIi['KPpBh']]['includes'](ilil1i)?IlIIi[li1i1i(0x1c9,'KUG3')]:li1i1i(0x125,'gUzq'),'Accept-Encoding':li1i1i(0x14f,'hBz$'),'Accept-Language':IlIIi[li1i1i(0x164,'9pPs')],'Connection':li1i1i(0xf4,')mFv'),'Content-Type':li1i1i(0xeb,'F0qo'),'Cookie':cookie,'Origin':li1i1i(0x1e2,'[rV!'),'Referer':li1i1i(0x12c,'MmLW'),'Sec-Fetch-Dest':IlIIi[li1i1i(0xad,'^3tv')],'Sec-Fetch-Mode':'cors','Sec-Fetch-Site':IlIIi[li1i1i(0x131,'BSew')],'User-Agent':li1i1i(0x18b,'vqhg')},'params':iIII11,'data':illlII,'timeout':0x7530,'httpsTlsOptions':['queryJdCouponListAppletForJd']['includes'](ilil1i)?common[li1i1i(0xb4,'[eXf')]():null};IiI1i===li1i1i(0xf3,'!t^1')&&(IlIIi[li1i1i(0x146,'TsSh')](li1i1i(0x1a7,'[rV!'),IlIIi[li1i1i(0x171,'F0qo')])?(delete I1lIl1[li1i1i(0x119,'wpT]')],delete I1lIl1['headers'][li1i1i(0x1d6,'LyGa')]):li1Ii[li1i1i(0xec,'[eXf')](li1i1i(0x192,'FNkN')));const lil11i=0x1;let IlIIl=0x0,lI1liI=null,i1i1Ii=![];while(IlIIl<lil11i){IlIIi[li1i1i(0x15f,'y]M5')](IlIIl,0x0)&&(IlIIi[li1i1i(0x160,'h#ze')](IlIIi['ZDKhe'],li1i1i(0x163,'9pPs'))?await $[li1i1i(0x112,'TZ)p')](0x3e8):(IilliI['log'](IlI1ii),lIIiii&&(I1l1II['outFlag']=!![],IIli1I[li1i1i(0x1c3,'[eXf')]&&I1l1I1['message'][li1i1i(0x1d8,'gUzq')](I1i111))));const lllll=await common['request'](I1lIl1);if(!lllll['success']){if(IlIIi[li1i1i(0x182,'K4Qr')](li1i1i(0x1ca,'wpT]'),IlIIi[li1i1i(0x189,'bkV]')])){lI1liI='🚫\x20'+ilil1i+li1i1i(0x1bd,'eaPG')+lllll[li1i1i(0xdb,'oQWG')],IlIIl++;lllll['status']&&IlIIi[li1i1i(0x170,'K4Qr')](lllll['status'],0x193)&&('DLRQk'==='WogpH'?Iliiil[li1i1i(0x1f3,'LyGa')](IlIIi[li1i1i(0x15e,'TPDm')]):$[li1i1i(0x1a2,'e54b')]=!![]);continue;}else{IiilI1[li1i1i(0x174,'[T6Y')](li1i1i(0x137,'Z%Jd'));return;}}if(!lllll[li1i1i(0x117,'y]M5')]){lI1liI='🚫\x20'+ilil1i+li1i1i(0x101,'qBjP'),IlIIl++;continue;}await IlIIi['zfMUZ'](handleResponse,ilil1i,lllll[li1i1i(0x110,'*]wd')]),i1i1Ii=![];break;}if(IlIIl>=lil11i){console[li1i1i(0x111,'vqhg')](lI1liI);if(i1i1Ii){if(IlIIi[li1i1i(0xbf,'oQWG')](IlIIi['jYiMw'],IlIIi[li1i1i(0x103,'LyGa')])){const ill11i=IlIIi['faqnX'](0x1,Ii1iIi)*0x64;iliIIl='满'+Ii1iIl[li1i1i(0x154,'MmLW')](0x2)+'元打'+ill11i[li1i1i(0x1ab,'0PqI')](0x0)+'折';}else $['outFlag']=!![],$[li1i1i(0xcb,'e54b')]&&$[li1i1i(0x113,'oQWG')]['fix'](lI1liI);}}}var version_ = 'jsjiami.com.v7';// 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"]), this.isSurge() || this.isLoon() ? (this.isSurge() && this.isNeedRewrite && (t.headers = t.headers || {}, Object.assign(t.headers, { "X-Surge-Skip-Scripting": !1 })), $httpClient.get(t, (t, s, i) => { !t && s && (s.body = i, s.statusCode = s.status), e(t, s, i) })) : this.isQuanX() ? (this.isNeedRewrite && (t.opts = t.opts || {}, Object.assign(t.opts, { hints: !1 })), $task.fetch(t).then(t => { const { statusCode: s, statusCode: i, headers: r, body: o } = t; e(null, { status: s, statusCode: i, headers: r, body: o }, o) }, t => e(t))) : this.isNode() && (this.initGotEnv(t), this.got(t).on("redirect", (t, e) => { try { if (t.headers["set-cookie"]) { const s = t.headers["set-cookie"].map(this.cktough.Cookie.parse).toString(); s && this.ckjar.setCookieSync(s, null), e.cookieJar = this.ckjar } } catch (t) { this.logErr(t) } }).then(t => { const { statusCode: s, statusCode: i, headers: r, body: o } = t; e(null, { status: s, statusCode: i, headers: r, body: o }, o) }, t => { const { message: s, response: i } = t; e(s, i, i && i.body) })) } post(t, e = (() => { })) { if (t.body && t.headers && !t.headers["Content-Type"] && (t.headers["Content-Type"] = "application/x-www-form-urlencoded"), t.headers && delete t.headers["Content-Length"], this.isSurge() || this.isLoon()) this.isSurge() && this.isNeedRewrite && (t.headers = t.headers || {}, Object.assign(t.headers, { "X-Surge-Skip-Scripting": !1 })), $httpClient.post(t, (t, s, i) => { !t && s && (s.body = i, s.statusCode = s.status), e(t, s, i) }); else if (this.isQuanX()) t.method = "POST", this.isNeedRewrite && (t.opts = t.opts || {}, Object.assign(t.opts, { hints: !1 })), $task.fetch(t).then(t => { const { statusCode: s, statusCode: i, headers: r, body: o } = t; e(null, { status: s, statusCode: i, headers: r, body: o }, o) }, t => e(t)); else if (this.isNode()) { this.initGotEnv(t); const { url: s, ...i } = t; this.got.post(s, i).then(t => { const { statusCode: s, statusCode: i, headers: r, body: o } = t; e(null, { status: s, statusCode: i, headers: r, body: o }, o) }, t => { const { message: s, response: i } = t; e(s, i, i && i.body) }) } } time(t, e = null) { const s = e ? new Date(e) : new Date; let i = { "M+": s.getMonth() + 1, "d+": s.getDate(), "H+": s.getHours(), "m+": s.getMinutes(), "s+": s.getSeconds(), "q+": Math.floor((s.getMonth() + 3) / 3), S: s.getMilliseconds() }; /(y+)/.test(t) && (t = t.replace(RegExp.$1, (s.getFullYear() + "").substr(4 - RegExp.$1.length))); for (let e in i) new RegExp("(" + e + ")").test(t) && (t = t.replace(RegExp.$1, 1 == RegExp.$1.length ? i[e] : ("00" + i[e]).substr(("" + i[e]).length))); return t } msg(e = t, s = "", i = "", r) { const o = t => { if (!t) return t; if ("string" == typeof t) return this.isLoon() ? t : this.isQuanX() ? { "open-url": t } : this.isSurge() ? { url: t } : void 0; if ("object" == typeof t) { if (this.isLoon()) { let e = t.openUrl || t.url || t["open-url"], s = t.mediaUrl || t["media-url"]; return { openUrl: e, mediaUrl: s } } if (this.isQuanX()) { let e = t["open-url"] || t.url || t.openUrl, s = t["media-url"] || t.mediaUrl; return { "open-url": e, "media-url": s } } if (this.isSurge()) { let e = t.url || t.openUrl || t["open-url"]; return { url: e } } } }; if (this.isMute || (this.isSurge() || this.isLoon() ? $notification.post(e, s, i, o(r)) : this.isQuanX() && $notify(e, s, i, o(r))), !this.isMuteLog) { let t = ["", "==============📣系统通知📣=============="]; t.push(e), s && t.push(s), i && t.push(i), console.log(t.join("\n")), this.logs = this.logs.concat(t) } } log(...t) { t.length > 0 && (this.logs = [...this.logs, ...t]), console.log(t.join(this.logSeparator)) } logErr(t, e) { const s = !this.isSurge() && !this.isQuanX() && !this.isLoon(); s ? this.log("", `❗️${this.name}, 错误!`, t.stack) : this.log("", `❗️${this.name}, 错误!`, t) } wait(t) { return new Promise(e => setTimeout(e, t)) } done(t = {}) { const e = (new Date).getTime(), s = (e - this.startTime) / 1e3; this.log("", `🔔${this.name}, 结束! 🕛 ${s} 秒`), this.log(), (this.isSurge() || this.isQuanX() || this.isLoon()) && $done(t) } }(t, e) }
|