mirror of
https://github.com/shufflewzc/faker3.git
synced 2024-11-10 09:39:18 +08:00
5 lines
25 KiB
JavaScript
5 lines
25 KiB
JavaScript
/*
|
||
new Env('Rebels_savePrize');
|
||
部分活动填地址通用库
|
||
*/
|
||
const _0x32f236=_0x5aa9;(function(_0x3ae2fa,_0x3c7156){const _0x1a7567=_0x5aa9,_0x784a32=_0x3ae2fa();while(!![]){try{const _0x303a5b=-parseInt(_0x1a7567(0x126,'nCCl'))/0x1*(parseInt(_0x1a7567(0xed,'3*yP'))/0x2)+parseInt(_0x1a7567(0xcb,'%RCc'))/0x3+-parseInt(_0x1a7567(0x13d,'Qg#z'))/0x4*(-parseInt(_0x1a7567(0xc6,'g0S1'))/0x5)+parseInt(_0x1a7567(0xd1,'JyKE'))/0x6*(-parseInt(_0x1a7567(0xd5,'DIl4'))/0x7)+parseInt(_0x1a7567(0xd3,'15t('))/0x8*(parseInt(_0x1a7567(0xdf,'G9^D'))/0x9)+-parseInt(_0x1a7567(0xca,')6mM'))/0xa+-parseInt(_0x1a7567(0x11c,'WKts'))/0xb*(-parseInt(_0x1a7567(0x14e,'DIl4'))/0xc);if(_0x303a5b===_0x3c7156)break;else _0x784a32['push'](_0x784a32['shift']());}catch(_0x4c3a4a){_0x784a32['push'](_0x784a32['shift']());}}}(_0x59b7,0xf32b6));const common=require(_0x32f236(0x9f,'3*yP')),CryptoModule=require('./Rebels_H'),fs=require('fs'),path=require(_0x32f236(0xfd,'twfX'));function _0x5aa9(_0x1dd980,_0x5bd457){const _0x59b7b9=_0x59b7();return _0x5aa9=function(_0x5aa982,_0x3585be){_0x5aa982=_0x5aa982-0x9c;let _0x1937f9=_0x59b7b9[_0x5aa982];if(_0x5aa9['QsVUwS']===undefined){var _0x46325e=function(_0x2b66fd){const _0x3c577c='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x24710b='',_0x7d890c='';for(let _0x3a3e70=0x0,_0x51ac6b,_0x27bd26,_0x445c02=0x0;_0x27bd26=_0x2b66fd['charAt'](_0x445c02++);~_0x27bd26&&(_0x51ac6b=_0x3a3e70%0x4?_0x51ac6b*0x40+_0x27bd26:_0x27bd26,_0x3a3e70++%0x4)?_0x24710b+=String['fromCharCode'](0xff&_0x51ac6b>>(-0x2*_0x3a3e70&0x6)):0x0){_0x27bd26=_0x3c577c['indexOf'](_0x27bd26);}for(let _0x335044=0x0,_0x2210cd=_0x24710b['length'];_0x335044<_0x2210cd;_0x335044++){_0x7d890c+='%'+('00'+_0x24710b['charCodeAt'](_0x335044)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x7d890c);};const _0x1024d4=function(_0xc6011f,_0x3663e8){let _0x520672=[],_0x4982a8=0x0,_0x884e07,_0x2d32da='';_0xc6011f=_0x46325e(_0xc6011f);let _0x3158ce;for(_0x3158ce=0x0;_0x3158ce<0x100;_0x3158ce++){_0x520672[_0x3158ce]=_0x3158ce;}for(_0x3158ce=0x0;_0x3158ce<0x100;_0x3158ce++){_0x4982a8=(_0x4982a8+_0x520672[_0x3158ce]+_0x3663e8['charCodeAt'](_0x3158ce%_0x3663e8['length']))%0x100,_0x884e07=_0x520672[_0x3158ce],_0x520672[_0x3158ce]=_0x520672[_0x4982a8],_0x520672[_0x4982a8]=_0x884e07;}_0x3158ce=0x0,_0x4982a8=0x0;for(let _0x147d60=0x0;_0x147d60<_0xc6011f['length'];_0x147d60++){_0x3158ce=(_0x3158ce+0x1)%0x100,_0x4982a8=(_0x4982a8+_0x520672[_0x3158ce])%0x100,_0x884e07=_0x520672[_0x3158ce],_0x520672[_0x3158ce]=_0x520672[_0x4982a8],_0x520672[_0x4982a8]=_0x884e07,_0x2d32da+=String['fromCharCode'](_0xc6011f['charCodeAt'](_0x147d60)^_0x520672[(_0x520672[_0x3158ce]+_0x520672[_0x4982a8])%0x100]);}return _0x2d32da;};_0x5aa9['NdisBR']=_0x1024d4,_0x1dd980=arguments,_0x5aa9['QsVUwS']=!![];}const _0x402c34=_0x59b7b9[0x0],_0x1f0aa0=_0x5aa982+_0x402c34,_0x4b49d0=_0x1dd980[_0x1f0aa0];return!_0x4b49d0?(_0x5aa9['oTbJfe']===undefined&&(_0x5aa9['oTbJfe']=!![]),_0x1937f9=_0x5aa9['NdisBR'](_0x1937f9,_0x3585be),_0x1dd980[_0x1f0aa0]=_0x1937f9):_0x1937f9=_0x4b49d0,_0x1937f9;},_0x5aa9(_0x1dd980,_0x5bd457);}!fs[_0x32f236(0x121,'3*yP')]('./utils/prize')&&fs['mkdirSync']('./utils/prize');const prize_record_path='./utils/prize/addr_record.csv';if(!fs['existsSync'](prize_record_path)){let text='\ufeff收货人,手机,奖品,活动链接,具体时间\x0a';fs[_0x32f236(0x146,'15t(')](prize_record_path,text,{'encoding':'utf-8','flag':'a'}),console[_0x32f236(0xf3,'5!XB')](_0x32f236(0x135,'TO^c'));}function _0x59b7(){const _0x94c120=['WOaWvWtdG8ot','auS3WORdHsqZ','W6nzpCkyW7W','W7hcH8oRkW','BSoSlK4','W6BdUSoAW6i','WOZcJXvejflcQLldT8oJWORdTuzmgmk1sCkBvdq','WPWVy3BcLKJcOG','jXFcSvW','WRNdRL8','W43cNCktWR/cUaNcIrldPSo8W4uZW4i','WPFcSSk6W48OpmoEW4yKWOFcKCklnSoy','kbpcOe1HWQtcOLhdO8kP','amorC1rr','zLTEfKCokc8','8lQPPmoPemoadSouW6njng9Sp+ITIEAZKowNVoI3I0JINB7cPoAvKEwsNEw4SUAvIEAmSW','WP1Apa','WRxcK29B','WPPqpHtcL0XdW5jQvG','W5BWOyMiW4FOPOhLJkxLRPdNIBlLPlVLKBlOHyJLIAJNM6VORkxMLiNOT6VLNzxLNyRLSRpOLQVLHQpPLydOR4lVVPxOTAVOVRSMsG','8y+5G8ooW6uMWOXtm2ldL8kReSkM5l685A+R5PE76lsL5z6X5z6S5Aw26lwsWQxINOWw','FCk4W7NcVG','WPpdVSkjrSkCbmk4W6NdOmkcd8kB','WPldICovW7RdRfZdNa','rXFcJYTsfrDrlq','mmkEWO4','WQVcRSk9vW7cRCkABCkFW5BcQZJcM8k9','W4TYodxdLWRdPCk7WPHmWOO9lG','zSoIpq','WR5PuCoQAmoAcmodW7dcRtvp','pWLklImPadZcTsC','mCkrWOZdMq','W4ravSkpFmoOyHhdRmotemopW4lcOaW4x3/cJSkYl8o7jxlcQrhcTSkQmmkqWQZcOSkL','W6ZcT1PMWP9qx8kd','jwm3qSkE','W7JdSc3dNSknWRTApmoyk8kQW77dSG','jSkFWPxdNq','WOHepvaCWOpcKHDiymofcq','gSkdBG','WO3dICovW7NdKLJdLGpdSq','WQ1CeMq0','W743W6/cISkUtCkzt8keh8kPD2tdGdC8','CKyP','W5/dUCoDWPLb','eCkwygOah3ldKLRcGrBdIa0Epw3cLG','W79zW4VcImo3WOtdMCkAW7eFrCkM','W4uaW5C','W5iqA8o8mwz3WRK','WOJdUSoOWOn1kCof','eSkIuspdTq','WQlcNNjzWOO','y8kXWQdcVdu','r2y+WR4dncG','WOO0y2C','WP0GDgu','5Bwl6iw/5yIA5OYM5lQx5PwP6lAQ5z+R5z+QqEkFSYpNMy/OROhKUz3PM6dMNAJMIztLJy/LIjVNMy7NRjK','WPbfkWJdK05oW491xmoXW7RcKN5oAG','WQVcSwJcHmorW6OlpCoda8kGWQNdMgbjs8kJDZ7dQexcNSkkWOZcMXxcJdzzW5iIBmkp','tMyDWPy','DmoRECocWP4sW73cO3enDmohWPe','bSk3sqZdTeSZFtS8bq','vcdcVCkOsXnqbmkDBmo7W6v7','WQtdV8oDwW','W64cxv8nphOG','WQDDkmkbW75kDCoLlu0','EKG6WQm','xCkxoqSxxmoqnuNcOxG','B8oXzG','8lEPHuvEAKNcTI3dTCo4WPNdQGpORPtMSk/LP7tOTiJdMUkEVhe','W4ZcU8oF','rSkWWPCQW74','W4fruSkc','4P6Sb+MALEAEJUAlHEwpTUwiG+EzH+AvOEI0MUwEI+wFU+s/O+AbQ+AGJow+M+wSTUwEOEMuRoIVTo+9GUwnS+AwMos7OEI1LEAjM+I+U+wMR++/UmkR','j8kvWOVdIev6WRXF','b0uSWOC','WP/cU8o5W6GjFq','fSowyLHgFSoq','oKFdNxa','WPjApWe','W4lcNHvbyLZcSGNdRSo+WO3cOeKqaSkR','8yUjMtTjWO7dUmkNj3pdPCo8WPy/5lYc5AYB5PEf6lEL5zYU5z+C5AEI6lstvUkEHbG','WRddS0PrWRO','WPldVmknsSktbSonW4VdMSkFiCkJW6K','WOZdMmouW6ddO1ZdKahdRq','eSknFxS','WQvrtNi/pvy','WPCNvH7dNq','A8o9kKn5cSknW5ymjIZdGYDtWRb/WRDMjwdcT3XbW5ZcLmohWPr5omoNpGuI','WPRdJJ5FW7FdKSkZWPWRyG','rhKHWR4pnIFcVrb2W7BdNmknWPZcL8klw8ownCoEwmkerePZW5rfymkDsSkPudW','f8kCExzfxhFdG1xcGHNcKWjbCMe','W6NdQmoQbL/dRmoA','W5iuiSkfqbiaWPS8sCo0W6LJ','8yokNNSxW5TBsSoRBLRdPCkWW5JKV5dLRBNMLllOTQhLNQpLNkBLPyhOTlVcQ+kDJ8kD','ESkhWOddUx5ZWR1DWPxcTCojWOm5ySkX','W7TBW4NcI8oSWQRdNCkDW6SrtmoSc2dcV1ldUJhcGSkftCo3WQ7dT8kJW63dQMhcTCoxW7zgW7C','W6xcQSk4fSoec8of','bSogmSo8','W6xdOCohW7pcTaXIWPbaWPBcOG3dUmkNAmkLqW','fSoxC1jnASokf0a','WORcOmo+W7XkmmoaW4T5WPRdJCopFConWQRdJbK','W6HoW4NcI8oKWQRdMq','WR3cNxW','4P6lWRxPMlRMNjJMI7pLJOtLIitNMzRMLOZOTPBLNA/LNilKVyVMGBZMOO7LVQhLRjtLNy7PLihORRpVVklLJBJML5tKUBhOG7JKUzxNQ5xVV50S','WRGlW7qd','hCkjBgObxNRdNKRcIa','ySoUCCohWPyFW5JcSN4hDmkBWP7cGNBcGW','8lYBU0FcRZZcNXxdUCoYWR4jEtdOR7ZMS5BLPAdOTjddVokDVutML5pLKyVLUkNML47MJkq','W78bDmocWPHhyCo6m30','4P+PeoIoKEwmTEEuVEAkVoAuTEI1GUwETEwFVoMeS+E+JUs9M+AdOUw9UEw5TWJIN47dIa','WR4fW68oBGNcLa','z8o/DCok','WRSdWORcL0VdLgP+c8oFW4pcTmo1WRKFWQ4x','aMZdOCoUcvC3d8kXrW','WOD7Bfm','8kAiIcfiqNVdHIflWQvpW59X6k+/5RgJ5AA96lE/F+kDP8oU','WPVdJCosW6G','ag7dOCoTuqqae8k5smo4W6fwpmkiuai','W60wWRNcKIhcGKy','W6GXe8k9','WQ7dU8owtJS2uCkT','8jMjSSkTWQW6uSoLuCkQkSoku3tORl3MSyxLP5ROT5RdVUkCHLy','W40oW4tcQG','aLqOWORdIsy8W7v8W7ZdO8kXW483cCo1WPtcMuBdMSolWRlcN8oau8kYAMddH3u','8lEPHuvEAKNcTI3dTCo4WPNdQGpKVR7LRlxML7pOTiRLN4RLNAdLPAdOTl/cS+kFSeK','WQLkp8kEWQfMFmo/keLZCG','WP/dN8orySoQ','gJldJCoJWOxcI2pcRaJcL8ocE8kyW5rajmoJaZpdVuZdNgFdVSoao38eaHtdOXlcSYtcOquTWRvyDmkBW4xcOtznWR8x','ASkTW7/cTJvdW6LNWQe','a3xdVmo8','W5VcNCkmWQpcPXhcNvu','W7ddNSoFWQ9+W493m2JdQ8kDpW','W7foW5ZcL8kOWQJdKmkaW7qB','5yUW5Asr5y6b5AEA5zkN6k6G5B+X5PsP5lUP5OUM5yIZ','tSkNtI/dS2y7qcW4baNdUKDJW6m','W4XEuSkgz8oQybhdRmotemk2WOG','jGLCk2i8','8y6OVSkvus8KuCkoW4JdMcuNWORKV47LR6RMLPJOTAVLNzBLNzJLPA3OTi/cMUkCUfW','BvWTWQe','W6xcShtdH8oEW7Sfj8oEq8k+W6NdKZL8sCkTpYRdJLNcLCoi','WRhdOeXF','et0GWRSjlaVcUa','W4FcJXfm','swy2','W77cOCkQd8ouhmouW4a','WPRdJJ5wW7/dImkJ','WP7dGsjR','qSkPWOyGW7PVWRnurCopW61mW6W','aCocDvO','WPjcACoej01aWQq','WR3cS3hcNmoDW48djCopp8k3W6JdGW','vN0JWRSimG','bMtdUmoXfeCfaSk2s8o3WRPzy8ohxeVcLxJcLJ3dNviLB2vNWQfqsG','WQVcM8kVW6q1WPTp','8lg7LISvsmogWO8TsNpdUt8c6k6d5RgE5AEf6lEBW4xINliL5Psw5zcl5BU35PEo5O6x','ovpdINVdMmklta','mNiVsG','8y25QJJcM8ozW78pgCoybCk0W6pcGoIUUUAXVowKJEI3SxRIN4tcP+AxL+wqVUw4S+AwIEAoHW','WOjjm1yDW6hcMtLiD8oo','WQ3dPbLg','WQqzWPSkrSo/','8kk5HYLPtuLZW6DoWOqnW5Li6k+f5RgF5As+6lEbWQJINO5b','WOjaoaFdN15C','WQHzoCkq','stVdMSo4h0eibCkatSo9W5zCFCofxr4','W47cMCoszmo3g8kWnW','W5OBW4lcOSkeBSkIBmkU','8lgiVSksWOvskCoOWOVdMaJcJeWu6k+g5RcL5AwE6lw3W4NINiul','eZBcICodWQ4','W4RcGazbFLVcTG4','WPNdIJ5Z','8kQjM8oyW4T7yCkQAmkuWQ/cNmkvEoIVO+AYLUwNKoI3Q8k/4PYpAq','qMWLWPOjidtcUG','WQlcHMLtWOhdQCkRexG','dLC/','WOXiFq','DCk2W6O','WRBcL293WOddOmk2hW','jhyQxSkpWOWk','8kQ6UhTyWOVcIrVdQJSxWQZdIYFORRBMSlBLPixOT6fV4P23yUAxLUwrM+w4REAvOEAoMW','WPa6sX3dISogWRy'];_0x59b7=function(){return _0x94c120;};return _0x59b7();}const delay=_0x1024d4=>new Promise(_0x2b66fd=>setTimeout(_0x2b66fd,_0x1024d4));function formatDate(_0x3c577c){const _0x546beb=_0x32f236;let _0x24710b=_0x3c577c[_0x546beb(0xec,'ea*f')](),_0x7d890c=('0'+(_0x3c577c[_0x546beb(0xac,'j6xo')]()+0x1))[_0x546beb(0xf6,'yY#H')](-0x2),_0x3a3e70=('0'+_0x3c577c[_0x546beb(0x141,'#BiY')]())[_0x546beb(0xa3,'0kMV')](-0x2),_0x51ac6b=('0'+_0x3c577c[_0x546beb(0xa7,'Qg#z')]())[_0x546beb(0xa3,'0kMV')](-0x2),_0x27bd26=('0'+_0x3c577c[_0x546beb(0x108,'#BiY')]())[_0x546beb(0xe2,'j6xo')](-0x2);return _0x24710b+'-'+_0x7d890c+'-'+_0x3a3e70+'\x20'+_0x51ac6b+':'+_0x27bd26;}const now=new Date(),formattedCurrentTime=formatDate(now);async function wuxian_savePrize(_0x445c02){const _0x4bebf5=_0x32f236;let {baseUrl:_0x335044,cookie:_0x2210cd,ua:_0xc6011f,activityId:_0x3663e8,activityType:_0x520672,venderId:_0x4982a8,secretPin:_0x884e07,prizeName:_0x2d32da,generateId:_0x3158ce,activityUrl:activityUrl=_0x335044}=_0x445c02;const _0x147d60=_getUserConfig(_0x2d32da);if(typeof _0x147d60===_0x4bebf5(0x11e,'1mA&')&&!_0x147d60)return![];const {receiver:_0x526735,phone:_0x391cb1,province:_0x42a484,city:_0x7a013b,county:_0x3c8272,address:_0x5f5e55,areaCode:_0x20e232,postalCode:_0x45073e,index:_0x1ff160}=_0x147d60;let _0x512ddf;Array[_0x4bebf5(0x149,'WSHh')](_0x4982a8)&&(_0x512ddf=_0x4982a8[0x1],_0x4982a8=_0x4982a8[0x0]);const _0x206d28=_0x335044+_0x4bebf5(0x10e,'JMtQ'),_0x4cc1e9={'venderId':_0x4982a8,'pin':_0x335044[_0x4bebf5(0x140,'H!0m')](_0x4bebf5(0x142,'#BiY'))?encodeURIComponent(_0x884e07):_0x884e07,'activityId':_0x3663e8,'actType':_0x520672,'prizeName':_0x2d32da,'receiver':_0x526735,'phone':_0x391cb1,'province':_0x42a484,'city':_0x7a013b,'county':_0x3c8272,'areaCode':_0x20e232,'address':_0x5f5e55,'generateId':_0x3158ce,'postalCode':_0x45073e},_0x2c60d1={'url':_0x206d28,'method':_0x4bebf5(0x122,'ee@Z'),'headers':{'Accept':'application/json','Accept-Encoding':_0x4bebf5(0x125,'3*yP'),'Accept-Language':_0x4bebf5(0xbb,'TO^c'),'Connection':_0x4bebf5(0xc2,'WkNp'),'Content-Type':_0x4bebf5(0x107,'tTXN'),'Cookie':_0x2210cd,'Origin':_0x335044,'Referer':activityUrl,'User-Agent':_0xc6011f},'data':_0x4cc1e9,'timeout':0x7530},_0x87f9c5=0x3;let _0x463199=0x0,_0x1c44fd=null;while(_0x463199<_0x87f9c5){_0x463199>0x0&&await delay(0x3e8);const _0x2d9293=await common[_0x4bebf5(0x105,'ee@Z')](_0x2c60d1);if(!_0x2d9293[_0x4bebf5(0x14b,'twfX')]){_0x1c44fd=_0x4bebf5(0xa2,')X2R')+_0x2d9293['error'],_0x463199++;continue;}if(!_0x2d9293[_0x4bebf5(0xe6,'%RCc')]){_0x1c44fd=_0x4bebf5(0xbf,'H!0m'),_0x463199++;continue;}if(_0x2d9293[_0x4bebf5(0x9e,'WKts')]['result'])return _successCallback(_0x526735,_0x391cb1,_0x1ff160,_0x2d32da,activityUrl),!![];else{if(_0x463199===0x0&&_0x512ddf){_0x2c60d1[_0x4bebf5(0x127,'S!]d')]={'venderId':_0x512ddf,'pin':_0x335044[_0x4bebf5(0xa4,'VAyV')](_0x4bebf5(0xee,'9HxD'))?encodeURIComponent(_0x884e07):_0x884e07,'activityId':_0x3663e8,'actType':_0x520672,'prizeName':_0x2d32da,'receiver':_0x526735,'phone':_0x391cb1,'province':_0x42a484,'city':_0x7a013b,'county':_0x3c8272,'areaCode':_0x20e232,'address':_0x5f5e55,'generateId':_0x3158ce,'postalCode':_0x45073e},_0x463199++;continue;}_0x1c44fd=_0x4bebf5(0xc4,'WSHh')+(_0x2d9293[_0x4bebf5(0xb4,'tTXN')]?.['errorMessage']||JSON[_0x4bebf5(0xa1,'^C[%')](_0x2d9293[_0x4bebf5(0xcf,'JMtQ')]));}break;}return _0x463199>=_0x87f9c5&&console[_0x4bebf5(0xb9,'JyKE')](_0x1c44fd),![];}async function wxSavePrize(_0x289898,_0x33b9ef,_0x53708f,_0x4fcac7,_0x4cc629,_0x4a8adc,_0x482433,_0x21866,_0x1ffc35){return await wuxian_savePrize({'baseUrl':_0x289898,'cookie':_0x33b9ef,'ua':_0x53708f,'activityId':_0x4fcac7,'activityType':_0x4cc629,'venderId':_0x4a8adc,'secretPin':_0x482433,'prizeName':_0x21866,'generateId':_0x1ffc35});}async function lzdz1_savePrize(_0x470d27){const _0x66afd2=_0x32f236;let {baseUrl:_0x65771b,requestUrl:_0x1c2fc9,uuid:_0x35c7e8,cookie:_0x517fc9,ua:_0x466374,activityId:_0xd8ee11,activityType:_0x4b05ca,venderId:_0x1f3af0,secretPin:_0x2368d2,prizeName:_0x3344f5,itemsId:_0x4a8ac2,activityUrl:activityUrl=_0x65771b}=_0x470d27;const _0x2a42e7=_getUserConfig(_0x3344f5);if(typeof _0x2a42e7===_0x66afd2(0xe4,'Qg#z')&&!_0x2a42e7)return![];const {receiver:_0x3af5a2,phone:_0x23e5c6,province:_0x53db13,city:_0x55a16a,county:_0x15c737,address:_0x43a04e,areaCode:_0x15d204,postalCode:_0x652a8d,index:_0x240a49}=_0x2a42e7,_0x23c7ba=_0x1c2fc9,_0x44d160={'venderId':_0x1f3af0,'activityId':_0xd8ee11,'uuid':_0x35c7e8,'actType':_0x4b05ca,'prizeName':_0x3344f5,'receiver':_0x3af5a2,'phone':_0x23e5c6,'province':_0x53db13,'city':_0x55a16a,'county':_0x15c737,'areaCode':_0x15d204,'address':_0x43a04e,'itemsId':_0x4a8ac2,'postalCode':_0x652a8d,'idCardNumber':'','pin':_0x2368d2},_0x19542e={'url':_0x23c7ba,'method':_0x66afd2(0x14f,'#BiY'),'headers':{'Accept':_0x66afd2(0x10a,'G&1Q'),'Accept-Encoding':_0x66afd2(0x120,'nCCl'),'Accept-Language':'zh-cn','Connection':_0x66afd2(0xf0,'WKts'),'Content-Type':_0x66afd2(0xd0,'RRNl'),'Cookie':_0x517fc9,'Origin':_0x65771b,'Referer':activityUrl,'User-Agent':_0x466374},'data':_0x44d160,'timeout':0x7530},_0x52745a=0x3;let _0x2ca72c=0x0,_0x2eef4b=null;while(_0x2ca72c<_0x52745a){_0x2ca72c>0x0&&await delay(0x3e8);const _0x1db467=await common[_0x66afd2(0xad,'n]yW')](_0x19542e);if(!_0x1db467['success']){_0x2eef4b=_0x66afd2(0xa6,'JMtQ')+_0x1db467[_0x66afd2(0x101,'JyKE')],_0x2ca72c++;continue;}if(!_0x1db467[_0x66afd2(0xb5,']kR5')]){_0x2eef4b=_0x66afd2(0xae,'n]yW'),_0x2ca72c++;continue;}if(_0x1db467['data'][_0x66afd2(0x138,'jdI7')])return _successCallback(_0x3af5a2,_0x23e5c6,_0x240a49,_0x3344f5,activityUrl),!![];else _0x2eef4b=_0x66afd2(0x12c,'VAyV')+(_0x1db467[_0x66afd2(0xfa,'In&u')]?.[_0x66afd2(0x12d,'WKts')]||JSON[_0x66afd2(0x113,'ewh0')](_0x1db467[_0x66afd2(0x127,'S!]d')]));break;}return _0x2ca72c>=_0x52745a&&console[_0x66afd2(0xab,'zjDQ')](_0x2eef4b),![];}async function lzdz_savePrize(_0x28593d){const _0x4eedf6=_0x32f236;let {baseUrl:_0x402069,requestUrl:_0x34cd73,cookie:_0x516653,ua:_0x320b0f,activityId:_0x3e38c8,activityType:_0x4719df,venderId:_0x1aa12e,secretPin:_0x19d2f0,prizeName:_0x25ef55,itemsId:_0x10c7ef,activityUrl:activityUrl=_0x402069}=_0x28593d;const _0x509d53=_getUserConfig(_0x25ef55);if(typeof _0x509d53===_0x4eedf6(0xb1,'In&u')&&!_0x509d53)return![];const {receiver:_0xe4f89f,phone:_0x50f9a8,province:_0x5ebed4,city:_0x49c7be,county:_0x2324fd,address:_0x193ccc,areaCode:_0x383ae0,postalCode:_0x565141,index:_0x3bf913}=_0x509d53,_0x23c6fe=_0x34cd73,_0x15268c={'venderId':_0x1aa12e,'activityId':_0x3e38c8,'actType':_0x4719df,'prizeName':_0x25ef55,'receiver':_0xe4f89f,'phone':_0x50f9a8,'province':_0x5ebed4,'city':_0x49c7be,'county':_0x2324fd,'areaCode':_0x383ae0,'address':_0x193ccc,'itemsId':_0x10c7ef,'postalCode':_0x565141,'idCardNumber':'','pin':_0x19d2f0},_0x155d79={'url':_0x23c6fe,'method':_0x4eedf6(0xea,'DCYh'),'headers':{'Accept':_0x4eedf6(0xe8,'WkNp'),'Accept-Encoding':_0x4eedf6(0x112,']kR5'),'Accept-Language':_0x4eedf6(0xd8,'ee@Z'),'Connection':_0x4eedf6(0x119,'G&1Q'),'Content-Type':_0x4eedf6(0x10f,'1pca'),'Cookie':_0x516653,'Origin':_0x402069,'Referer':activityUrl,'User-Agent':_0x320b0f},'data':_0x15268c,'timeout':0x7530},_0x555ee6=0x3;let _0x11a9b7=0x0,_0x465f2e=null;while(_0x11a9b7<_0x555ee6){_0x11a9b7>0x0&&await delay(0x3e8);const _0x5d7c76=await common['request'](_0x155d79);if(!_0x5d7c76[_0x4eedf6(0xfc,'ewh0')]){_0x465f2e=_0x4eedf6(0x9c,'G&1Q')+_0x5d7c76['error'],_0x11a9b7++;continue;}if(!_0x5d7c76[_0x4eedf6(0xa5,'#BiY')]){_0x465f2e=_0x4eedf6(0x14d,'15t('),_0x11a9b7++;continue;}if(_0x5d7c76[_0x4eedf6(0x11f,'5!XB')][_0x4eedf6(0xb0,'NLnH')])return _successCallback(_0xe4f89f,_0x50f9a8,_0x3bf913,_0x25ef55,activityUrl),!![];else _0x465f2e=_0x4eedf6(0x139,'9HxD')+(_0x5d7c76[_0x4eedf6(0x144,'ewh0')]?.[_0x4eedf6(0xdd,'1pca')]||JSON[_0x4eedf6(0x130,'zjDQ')](_0x5d7c76[_0x4eedf6(0x144,'ewh0')]));break;}return _0x11a9b7>=_0x555ee6&&console[_0x4eedf6(0x13f,'Qg#z')](_0x465f2e),![];}async function lzkj_interactsaas_savePrize(_0x386fc5){const _0x3645c0=_0x32f236;let {baseUrl:_0x142dc6,newbaseUrl:_0x360942,ua:_0x34a7e3,token:_0x374b94,prizeName:_0x2d8efc,orderCode:_0x36b130,activityUrl:activityUrl=_0x142dc6}=_0x386fc5;const _0x12545f=_getUserConfig(_0x2d8efc);if(typeof _0x12545f==='boolean'&&!_0x12545f)return![];const {receiver:_0x329a5c,phone:_0x28a2e0,province:_0x18b762,city:_0x347872,county:_0x6a8759,address:_0x2582a1,index:_0x4ab7f6}=_0x12545f,_0x552f3e=_0x360942+_0x3645c0(0xb6,'VAyV'),_0x2f4019={'realName':_0x329a5c,'mobile':_0x28a2e0,'address':_0x2582a1,'orderCode':_0x36b130,'province':_0x18b762,'city':_0x347872,'county':_0x6a8759},_0x3cbaac={'url':_0x552f3e,'method':_0x3645c0(0xb3,'g0S1'),'headers':{'Accept':_0x3645c0(0x11a,'5!XB'),'Accept-Encoding':_0x3645c0(0xdc,'G&1Q'),'Accept-Language':_0x3645c0(0xe3,'zjDQ'),'Connection':_0x3645c0(0x134,'1pca'),'Content-Type':_0x3645c0(0x12b,'In&u'),'token':_0x374b94,'Origin':_0x142dc6,'Referer':_0x552f3e+'/','User-Agent':_0x34a7e3},'data':_0x2f4019,'timeout':0x7530},_0x488e62=0x3;let _0x445e4c=0x0,_0x25d9a4=null;while(_0x445e4c<_0x488e62){_0x445e4c>0x0&&await delay(0x3e8);const _0x2d932a=await common[_0x3645c0(0x110,'H!0m')](_0x3cbaac);if(!_0x2d932a['success']){_0x25d9a4=_0x3645c0(0x123,'ewh0')+_0x2d932a[_0x3645c0(0xbd,'ewh0')],_0x445e4c++;continue;}if(!_0x2d932a[_0x3645c0(0x13e,'VAyV')]){_0x25d9a4=_0x3645c0(0x11b,'S!]d'),_0x445e4c++;continue;}if(_0x2d932a[_0x3645c0(0xb8,'1d(Z')][_0x3645c0(0xd7,'9X*j')]===0x0)return _successCallback(_0x329a5c,_0x28a2e0,_0x4ab7f6,_0x2d8efc,activityUrl),!![];else{if(!_0x2d932a[_0x3645c0(0x14c,'n]yW')]['success'])return console[_0x3645c0(0xd6,'G&1Q')](_0x3645c0(0x12c,'VAyV')+(_0x2d932a[_0x3645c0(0xc1,'j6xo')][_0x3645c0(0x145,'G9^D')]||JSON[_0x3645c0(0xa8,'j6xo')](_0x2d932a['data']))),![];else _0x25d9a4=_0x3645c0(0x100,'j6xo')+(_0x2d932a[_0x3645c0(0x13e,'VAyV')][_0x3645c0(0xf9,'JMtQ')]||JSON['stringify'](_0x2d932a[_0x3645c0(0x13c,'JyKE')]));}break;}return _0x445e4c>=_0x488e62&&console[_0x3645c0(0x116,'j6xo')](_0x25d9a4),![];}async function loreal_savePrize(_0x57ea17){const {baseUrl:_0x260177,newbaseUrl:_0x50b576,cookie:_0x39e6af,ua:_0x719080,token:_0xf9a9c8,prizeName:_0x30e975,orderCode:_0x4c1d6a,activityUrl:activityUrl=_0x260177}=_0x57ea17;return await lzkj_interactsaas_savePrize({'baseUrl':_0x260177,'newbaseUrl':_0x50b576,'cookie':_0x39e6af,'ua':_0x719080,'token':_0xf9a9c8,'prizeName':_0x30e975,'orderCode':_0x4c1d6a,'activityUrl':activityUrl});}async function lzkj_interaction_v2_savePrize(_0x52a1a3){const _0x1e84c2=_0x32f236;let {baseUrl:_0x54fb4e,newbaseUrl:_0x5d8c88,ua:_0x225fd3,token:_0x57a1fa,activityId:_0x9405a6,shopId:_0x2b540c,activityType:_0x250018,prizeName:_0x355b6f,addressId:_0x48d560,activityPrizeId:_0x26630b,activityUrl:activityUrl=_0x54fb4e}=_0x52a1a3;const _0x3078e9=_getUserConfig(_0x355b6f);if(typeof _0x3078e9==='boolean'&&!_0x3078e9)return![];const {receiver:_0x3bba69,phone:_0x2b5bfc,province:_0x14d307,city:_0x121e33,county:_0x20c4ef,address:_0x41e462,index:_0x503d15}=_0x3078e9,_0x481b70=_0x5d8c88+_0x1e84c2(0xb2,'WKts')+_0x250018+_0x1e84c2(0x136,'ea*f'),_0x227bb8={'realName':_0x3bba69,'mobile':_0x2b5bfc,'address':_0x41e462,'province':_0x14d307,'city':_0x121e33,'county':_0x20c4ef,'addressId':_0x48d560,'activityPrizeId':_0x26630b},_0x3531df=CryptoModule[_0x1e84c2(0xeb,'5!XB')]['interactionV2'][_0x1e84c2(0xb7,'%RCc')](_0x227bb8),_0x20464d={'url':_0x481b70,'method':'POST','headers':{'Accept':_0x1e84c2(0xff,'VAyV'),'Accept-Encoding':'gzip,\x20deflate,\x20br','Accept-Language':'zh-cn','Connection':_0x1e84c2(0xce,'jdI7'),'Content-Type':_0x1e84c2(0x148,'3*yP'),'Origin':_0x54fb4e,'Referer':activityUrl,'User-Agent':_0x225fd3,'Activity-Id':_0x9405a6,'Activity-Type':_0x250018,'Pin-Token':_0x57a1fa,'Shop-Id':_0x2b540c},'data':_0x3531df,'timeout':0x7530},_0x580a62=0x3;let _0x308c77=0x0,_0x51634c=null;while(_0x308c77<_0x580a62){_0x308c77>0x0&&await delay(0x3e8);const _0xa621f5=await common['request'](_0x20464d);if(!_0xa621f5[_0x1e84c2(0x10b,')6mM')]){_0x51634c=_0x1e84c2(0x129,'zjDQ')+_0xa621f5[_0x1e84c2(0x106,'NLnH')],_0x308c77++;continue;}if(!_0xa621f5['data']){_0x51634c=_0x1e84c2(0x14a,'DIl4'),_0x308c77++;continue;}if(_0xa621f5[_0x1e84c2(0xc5,'zjDQ')][_0x1e84c2(0x12a,'^C[%')]&&typeof _0xa621f5[_0x1e84c2(0x13e,'VAyV')][_0x1e84c2(0xf7,'RRNl')]===_0x1e84c2(0x147,'Qg#z'))try{_0xa621f5[_0x1e84c2(0x104,'G&1Q')]['data']=CryptoModule[_0x1e84c2(0x143,'yY#H')][_0x1e84c2(0x137,'RRNl')]['decrypt'](_0xa621f5[_0x1e84c2(0xfa,'In&u')][_0x1e84c2(0x124,'9X*j')]);}catch{}if(_0xa621f5['data'][_0x1e84c2(0xfe,'WkNp')]===0xc8)return _successCallback(_0x3bba69,_0x2b5bfc,_0x503d15,_0x355b6f,activityUrl),!![];else _0x51634c=_0x1e84c2(0x10d,'WkNp')+(_0xa621f5[_0x1e84c2(0x131,'3*yP')]?.['message']||JSON[_0x1e84c2(0x103,'9X*j')](_0xa621f5['data']));break;}return _0x308c77>=_0x580a62&&console[_0x1e84c2(0xaa,'G9^D')](_0x51634c),![];}async function jinggeng_savePrize(_0x2c0bac){const _0xb2b88d=_0x32f236;let {baseUrl:_0x4886a0,cookie:_0x54bb32,ua:_0x21ab4f,venderId:_0x217fd9,prizeName:_0x5c47f4,orderCode:_0x43ff0d,activityUrl:activityUrl=_0x4886a0}=_0x2c0bac;const _0x3a5aae=_getUserConfig(_0x5c47f4);if(typeof _0x3a5aae===_0xb2b88d(0xaf,'NLnH')&&!_0x3a5aae)return![];const {receiver:_0x26f30a,phone:_0x37de6c,province:_0x13c84d,city:_0x2cb518,county:_0x2497a2,address:_0x22c762,index:_0xb6ed2}=_0x3a5aae,_0x52400b=_0x4886a0+_0xb2b88d(0x13b,'15t('),_0x33d0af={'receiverName':_0x26f30a,'mobile':_0x37de6c,'address':_0x13c84d+'+'+_0x2cb518+'+'+_0x2497a2+_0x22c762,'log_id':_0x43ff0d,'user_id':_0x217fd9},_0x5d728a={'url':_0x52400b,'method':_0xb2b88d(0x122,'ee@Z'),'headers':{'Accept':_0xb2b88d(0x109,'Qg#z'),'Accept-Encoding':_0xb2b88d(0x114,'TO^c'),'Accept-Language':_0xb2b88d(0x12f,'0kMV'),'Connection':_0xb2b88d(0xbc,'1d(Z'),'Content-Type':_0xb2b88d(0xe9,'15t('),'Cookie':_0x54bb32,'Origin':_0x4886a0,'Referer':_0x52400b+'/','User-Agent':_0x21ab4f},'data':_0x33d0af,'timeout':0x7530},_0x3c34ad=0x3;let _0x102f90=0x0,_0x1decae=null;while(_0x102f90<_0x3c34ad){_0x102f90>0x0&&await delay(0x3e8);const _0x4db892=await common['request'](_0x5d728a);if(!_0x4db892[_0xb2b88d(0x9d,'WkNp')]){_0x1decae=_0xb2b88d(0xf4,'VAyV')+_0x4db892[_0xb2b88d(0x12e,'MKI)')],_0x102f90++;continue;}if(!_0x4db892[_0xb2b88d(0x13c,'JyKE')]){_0x1decae=_0xb2b88d(0x14a,'DIl4'),_0x102f90++;continue;}if(_0x4db892[_0xb2b88d(0xc5,'zjDQ')][_0xb2b88d(0x13a,'DCYh')])return _successCallback(_0x26f30a,_0x37de6c,_0xb6ed2,_0x5c47f4,activityUrl),!![];else{if(_0x4db892[_0xb2b88d(0x111,'2l4R')][_0xb2b88d(0xe5,'%RCc')]===![])return console[_0xb2b88d(0xc0,'WkNp')]('🚫\x20保存收货地址失败\x20➜\x20'+(_0x4db892[_0xb2b88d(0xfa,'In&u')][_0xb2b88d(0xf5,'g0S1')]||JSON['stringify'](_0x4db892[_0xb2b88d(0xf1,'DCYh')]))),![];else _0x1decae='🚫\x20savePrize\x20保存收货地址失败\x20➜\x20'+(_0x4db892[_0xb2b88d(0x118,'1mA&')][_0xb2b88d(0xa9,'In&u')]||JSON[_0xb2b88d(0xc8,'RDfy')](_0x4db892[_0xb2b88d(0xc5,'zjDQ')]));}break;}return _0x102f90>=_0x3c34ad&&console['log'](_0x1decae),![];}function _getUserConfig(_0x454115){const _0x2cd97f=_0x32f236;try{const _0x7c228d=process['env']['WX_ADDRESS']||'',_0x4dc778=process[_0x2cd97f(0xc9,'JMtQ')][_0x2cd97f(0xd9,'^C[%')]||'';if(_0x7c228d==='')return![];const _0x23086b=_0x7c228d['split']('|'),_0x378a25=Math[_0x2cd97f(0xdb,')X2R')](Math[_0x2cd97f(0xfb,'TO^c')]()*_0x23086b[_0x2cd97f(0x150,'kM[^')]);if(_0x23086b[_0x378a25]==='')return console['log']('❌\x20随机抽取到的收货地址信息为空,请正确使用\x20\x22|\x22\x20管道符以用于分割多个收货地址!\x0a'),![];const [_0x582e14,_0x2646c4,_0x10c92f,_0x9546d6,_0x4fd780,_0x582d7d,_0xe2040f,_0x23fdd8]=_0x23086b[_0x378a25][_0x2cd97f(0xd2,'n]yW')]('@');if(_0x23fdd8===undefined)return console[_0x2cd97f(0xcc,'tTXN')](_0x2cd97f(0xf8,'G9^D')),![];for(let _0x1f34c3=0x0;_0x1f34c3<0x7;_0x1f34c3++){if(_0x23086b[_0x1f34c3]==='')return console[_0x2cd97f(0xc0,'WkNp')](_0x2cd97f(0x117,'9HxD')),![];}if(_0x4dc778!==''){const _0xb7b9e2=_0x4dc778[_0x2cd97f(0xe1,'ea*f')]('@');if(_0xb7b9e2[_0x2cd97f(0xd4,'JMtQ')](_0x2c7cbf=>_0x454115[_0x2cd97f(0x128,'9HxD')](_0x2c7cbf)))return console[_0x2cd97f(0xda,'DCYh')](_0x2cd97f(0xc3,'nCCl')),![];}return{'receiver':_0x582e14,'phone':_0x2646c4,'province':_0x10c92f,'city':_0x9546d6,'county':_0x4fd780,'address':_0x582d7d,'areaCode':_0xe2040f,'postalCode':_0x23fdd8,'index':_0x378a25};}catch(_0x4118fa){return console[_0x2cd97f(0xde,'^C[%')](_0x2cd97f(0x11d,'RRNl')+(_0x4118fa[_0x2cd97f(0xc7,'9X*j')]||_0x4118fa)),![];}}function _successCallback(_0x3339d0,_0x2e781d,_0x2a7ae6,_0x17a84e,_0x400b94){const _0x53d852=_0x32f236;console['log'](_0x53d852(0xe7,')X2R')+(_0x2a7ae6+0x1)+'套收货地址信息\x0a联系信息:'+_0x3339d0+'\x20('+_0x2e781d[_0x53d852(0x115,'1pca')](/^(\d{3})\d{4}(\d{4})$/,_0x53d852(0x132,'9X*j'))+')\x0a');const _0x36f97b=_0x17a84e?_0x17a84e:'',_0x2590d6=_0x400b94?_0x400b94['toString']():'',_0x398156=_0x3339d0+','+_0x2e781d+','+_0x36f97b+(_0x2590d6?','+_0x2590d6:'')+','+formattedCurrentTime+'\x0a';fs[_0x53d852(0x146,'15t(')](prize_record_path,_0x398156,{'encoding':'utf-8','flag':'a'});}module['exports']={'wuxian_savePrize':wuxian_savePrize,'wxSavePrize':wxSavePrize,'lzkj_interactsaas_savePrize':lzkj_interactsaas_savePrize,'loreal_savePrize':loreal_savePrize,'lzkj_interaction_v2_savePrize':lzkj_interaction_v2_savePrize,'lzdz1_savePrize':lzdz1_savePrize,'lzdz_savePrize':lzdz_savePrize,'jinggeng_savePrize':jinggeng_savePrize}; |