-
Notifications
You must be signed in to change notification settings - Fork 1
/
fxh.js
8 lines (8 loc) · 13.2 KB
/
fxh.js
1
2
3
4
5
6
7
8
// @Time : 2024-05-12 01:10
// @Author : Sirius
// wx小程序:芬享汇
// cron: 0 8 * * *
// 每天签到积分,可换取5元jd E卡
// 需要配置环境变量 fxhOpenId, 多账号用 @ 或 换行 隔开, 每天运行一次就行
// version = 1.0.0
const _0x526f=['e30uY29uc3RydWN0b3IoInJldHVybiB0aGlzIikoICk=','bXZiUHg=','d2Fybg==','cmV0dXJuIChmdW5jdGlvbigpIA==','a1VlcmQ=','ZXhjZXB0aW9u','eHlVa04=','YXhpb3M=','aHR0cHM6Ly9zY3JtLm9jaGVuZy5tZS92Mi9hcGkvbWVtYmVyL2luZm8/bWluaVByb2dyYW1PcGVuSWQ9','a2VoUGQ=','eXJWUGk=','cmV0dXJuIC8iICsgdGhpcyArICIv','cGhvbmVOdW1iZXI=','WC1DaGFubmVs','eVVDb3g=','dHJhY2U=','dGFibGU=','Y29kZQ==','WC1DaGFubmVsLVR5cGU=','aW5mbw==','U05acVA=','RnNlcFU=','TnVua2s=','aGVhZGVycw==','aHR0cHM6Ly9zY3JtLm9jaGVuZy5tZS92Mi9hcGkvbWFya2V0aW5nL2F0dGVuZGFuY2UvNjgv','Y29tcGlsZQ==','cmVzcG9uc2U=','ckVRT1I=','dGVzdA==','c3RhdHVz','TndITVU=','R0NLQmo=','bmJ6cU0=','RWNLUEM=','Y2RTY1I=','VmlNaXk=','TW96aWxsYS81LjAgKGlQYWQ7IENQVSBPUyAxNl82XzEgbGlrZSBNYWMgT1MgWCkgQXBwbGVXZWJLaXQvNjA1LjEuMTUgKEtIVE1MLCBsaWtlIEdlY2tvKSBNb2JpbGUvMTVFMTQ4IE1pY3JvTWVzc2VuZ2VyLzguMC40OCgweDE4MDAzMDMwKSBOZXRUeXBlL1dJRkkgTGFuZ3VhZ2UvemhfQ04gbWluaVByb2dyYW0v','RUVXeFU=','aXNvVHE=','c3VjY2Vzcw==','Y29uc29sZQ==','P29wZW5JZFR5cGU9Mg==','TW9BdE4=','ZGVidWc=','eVhBUWo=','ZW52','ZHd1ZUQ=','U1FNYlI=','ZGF0YQ==','Z2V0','5LuK5pel5bey562+5Yiw77yB','Y2FJZWY=','bG9n','RUFmeXQ=','562+5Yiw5oiQ5Yqf77yB','VGV1ZU4=','VXNlci1BZ2VudA==','T01pZ2s=','c3BsaXQ=','bWVtYmVyUG9pbnRz','aW5jbHVkZXM=','Q0R3Qkg=','5b2T5YmN6LSm5Y+3','ZXJyb3I=','YXlSaFY=','Y29uc3RydWN0b3I=','77yMIOW9k+WJjeenr+WIhu+8mg==','dkJqT1Q=','eERPbU4=','YXBwbHk=','SEl4eHo=','S3hUbVY=','SUp0REo=','R01Ma2w=','ZE9IZ1k='];(function(_0x4aa23b,_0x526fdb){const _0x48e93c=function(_0x4a4819){while(--_0x4a4819){_0x4aa23b['push'](_0x4aa23b['shift']());}};const _0x3528b7=function(){const _0x2cf5af={'data':{'key':'cookie','value':'timeout'},'setCookie':function(_0x4fa88a,_0x22842e,_0x3ce32f,_0x52f605){_0x52f605=_0x52f605||{};let _0x270e07=_0x22842e+'='+_0x3ce32f;let _0x53c5f1=0x0;for(let _0x6e037c=0x0,_0x4e4ec4=_0x4fa88a['length'];_0x6e037c<_0x4e4ec4;_0x6e037c++){const _0x523c66=_0x4fa88a[_0x6e037c];_0x270e07+=';\x20'+_0x523c66;const _0x1892f8=_0x4fa88a[_0x523c66];_0x4fa88a['push'](_0x1892f8);_0x4e4ec4=_0x4fa88a['length'];if(_0x1892f8!==!![]){_0x270e07+='='+_0x1892f8;}}_0x52f605['cookie']=_0x270e07;},'removeCookie':function(){return'dev';},'getCookie':function(_0x27f7a8,_0x4a08f0){_0x27f7a8=_0x27f7a8||function(_0x300d8c){return _0x300d8c;};const _0x8198fd=_0x27f7a8(new RegExp('(?:^|;\x20)'+_0x4a08f0['replace'](/([.$?*|{}()[]\/+^])/g,'$1')+'=([^;]*)'));const _0x419e9c=function(_0x4888f2,_0xd3762e){_0x4888f2(++_0xd3762e);};_0x419e9c(_0x48e93c,_0x526fdb);return _0x8198fd?decodeURIComponent(_0x8198fd[0x1]):undefined;}};const _0x149613=function(){const _0x1e9ede=new RegExp('\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*[\x27|\x22].+[\x27|\x22];?\x20*}');return _0x1e9ede['test'](_0x2cf5af['removeCookie']['toString']());};_0x2cf5af['updateCookie']=_0x149613;let _0x5e780c='';const _0x210a24=_0x2cf5af['updateCookie']();if(!_0x210a24){_0x2cf5af['setCookie'](['*'],'counter',0x1);}else if(_0x210a24){_0x5e780c=_0x2cf5af['getCookie'](null,'counter');}else{_0x2cf5af['removeCookie']();}};_0x3528b7();}(_0x526f,0x19d));const _0x48e9=function(_0x4aa23b,_0x526fdb){_0x4aa23b=_0x4aa23b-0x0;let _0x48e93c=_0x526f[_0x4aa23b];if(_0x48e9['IdPlnq']===undefined){(function(){const _0x4a4819=function(){let _0x5e780c;try{_0x5e780c=Function('return\x20(function()\x20'+'{}.constructor(\x22return\x20this\x22)(\x20)'+');')();}catch(_0x210a24){_0x5e780c=window;}return _0x5e780c;};const _0x2cf5af=_0x4a4819();const _0x149613='ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=';_0x2cf5af['atob']||(_0x2cf5af['atob']=function(_0x4fa88a){const _0x22842e=String(_0x4fa88a)['replace'](/=+$/,'');let _0x3ce32f='';for(let _0x52f605=0x0,_0x270e07,_0x53c5f1,_0x6e037c=0x0;_0x53c5f1=_0x22842e['charAt'](_0x6e037c++);~_0x53c5f1&&(_0x270e07=_0x52f605%0x4?_0x270e07*0x40+_0x53c5f1:_0x53c5f1,_0x52f605++%0x4)?_0x3ce32f+=String['fromCharCode'](0xff&_0x270e07>>(-0x2*_0x52f605&0x6)):0x0){_0x53c5f1=_0x149613['indexOf'](_0x53c5f1);}return _0x3ce32f;});}());_0x48e9['lJynYC']=function(_0x4e4ec4){const _0x523c66=atob(_0x4e4ec4);let _0x1892f8=[];for(let _0x27f7a8=0x0,_0x4a08f0=_0x523c66['length'];_0x27f7a8<_0x4a08f0;_0x27f7a8++){_0x1892f8+='%'+('00'+_0x523c66['charCodeAt'](_0x27f7a8)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x1892f8);};_0x48e9['rgRmJd']={};_0x48e9['IdPlnq']=!![];}const _0x3528b7=_0x48e9['rgRmJd'][_0x4aa23b];if(_0x3528b7===undefined){const _0x8198fd=function(_0x419e9c){this['ccAOcP']=_0x419e9c;this['otCAFZ']=[0x1,0x0,0x0];this['PVjBrF']=function(){return'newState';};this['aigUIc']='\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*';this['aCjXAs']='[\x27|\x22].+[\x27|\x22];?\x20*}';};_0x8198fd['prototype']['AZnRkb']=function(){const _0x300d8c=new RegExp(this['aigUIc']+this['aCjXAs']);const _0x4888f2=_0x300d8c['test'](this['PVjBrF']['toString']())?--this['otCAFZ'][0x1]:--this['otCAFZ'][0x0];return this['LMvVUo'](_0x4888f2);};_0x8198fd['prototype']['LMvVUo']=function(_0xd3762e){if(!Boolean(~_0xd3762e)){return _0xd3762e;}return this['xbZfdn'](this['ccAOcP']);};_0x8198fd['prototype']['xbZfdn']=function(_0x1e9ede){for(let _0x4a0df8=0x0,_0x1288bf=this['otCAFZ']['length'];_0x4a0df8<_0x1288bf;_0x4a0df8++){this['otCAFZ']['push'](Math['round'](Math['random']()));_0x1288bf=this['otCAFZ']['length'];}return _0x1e9ede(this['otCAFZ'][0x0]);};new _0x8198fd(_0x48e9)['AZnRkb']();_0x48e93c=_0x48e9['lJynYC'](_0x48e93c);_0x48e9['rgRmJd'][_0x4aa23b]=_0x48e93c;}else{_0x48e93c=_0x3528b7;}return _0x48e93c;};const _0x4fa88a=function(){const _0x468826={};_0x468826[_0x48e9('0x11')]=function(_0x2eb641,_0x2a993a){return _0x2eb641!==_0x2a993a;};_0x468826['KxTmV']=_0x48e9('0x13');_0x468826[_0x48e9('0x26')]=function(_0x4e43e5,_0x4d85e6){return _0x4e43e5===_0x4d85e6;};_0x468826[_0x48e9('0x20')]=_0x48e9('0x8');const _0x1dddbb=_0x468826;let _0x3eec7f=!![];return function(_0x473aca,_0x319769){const _0x3b8ba8={};_0x3b8ba8[_0x48e9('0x24')]=function(_0x29e577,_0x4a9fbb){return _0x1dddbb[_0x48e9('0x11')](_0x29e577,_0x4a9fbb);};_0x3b8ba8[_0x48e9('0x0')]=_0x1dddbb[_0x48e9('0x21')];const _0x32a053=_0x3b8ba8;if(_0x1dddbb['mvbPx'](_0x48e9('0x1d'),_0x1dddbb[_0x48e9('0x20')])){if(_0x319769){const _0x2053ed=_0x319769['apply'](_0x473aca,arguments);_0x319769=null;return _0x2053ed;}}else{const _0x1145f0=_0x3eec7f?function(){if(_0x319769){if(_0x32a053[_0x48e9('0x24')](_0x32a053[_0x48e9('0x0')],_0x48e9('0x45'))){const _0x4b7a21=_0x319769[_0x48e9('0x1f')](_0x473aca,arguments);_0x319769=null;return _0x4b7a21;}else{const _0x632c88=_0x3eec7f?function(){if(_0x319769){const _0x5ed93a=_0x319769['apply'](_0x473aca,arguments);_0x319769=null;return _0x5ed93a;}}:function(){};_0x3eec7f=![];return _0x632c88;}}}:function(){};_0x3eec7f=![];return _0x1145f0;}};}();const _0x210a24=_0x4fa88a(this,function(){const _0x241cf9={};_0x241cf9[_0x48e9('0x39')]=function(_0x1a355f,_0xe26349){return _0x1a355f===_0xe26349;};_0x241cf9[_0x48e9('0x9')]=_0x48e9('0x40');_0x241cf9[_0x48e9('0x2b')]='^([^\x20]+(\x20+[^\x20]+)+)+[^\x20]}';_0x241cf9['NTAJw']=function(_0x43d9eb){return _0x43d9eb();};const _0x1614fc=_0x241cf9;const _0x225fd1=function(){if(_0x1614fc[_0x48e9('0x39')]('rEQOR',_0x1614fc['SQMbR'])){const _0x1683e5=_0x225fd1[_0x48e9('0x1b')](_0x48e9('0x30'))()[_0x48e9('0x3e')](_0x1614fc[_0x48e9('0x2b')]);return!_0x1683e5[_0x48e9('0x41')](_0x210a24);}else{if(fn){const _0x213bc1=fn['apply'](context,arguments);fn=null;return _0x213bc1;}}};return _0x1614fc['NTAJw'](_0x225fd1);});_0x210a24();const _0x2cf5af=function(){const _0x32a9af={};_0x32a9af[_0x48e9('0x1e')]=function(_0x51784e,_0xfc1898){return _0x51784e+_0xfc1898;};_0x32a9af['yrVPi']='{}.constructor(\x22return\x20this\x22)(\x20)';_0x32a9af[_0x48e9('0x6')]='UXyBr';const _0x41c6db=_0x32a9af;let _0x368224=!![];return function(_0x43b9d4,_0x60a67){const _0x2396f9={};_0x2396f9[_0x48e9('0x3b')]=function(_0x2f9849,_0x567949){return _0x41c6db['xDOmN'](_0x2f9849,_0x567949);};_0x2396f9['cdScR']=_0x41c6db[_0x48e9('0x2f')];const _0x4d26d0=_0x2396f9;if(_0x41c6db[_0x48e9('0x6')]===_0x41c6db[_0x48e9('0x6')]){const _0x3a450e=_0x368224?function(){if(_0x60a67){const _0x2bc1c9=_0x60a67['apply'](_0x43b9d4,arguments);_0x60a67=null;return _0x2bc1c9;}}:function(){};_0x368224=![];return _0x3a450e;}else{const _0x13b47b=Function(_0x4d26d0[_0x48e9('0x3b')](_0x4d26d0['Nunkk'](_0x48e9('0x28'),_0x4d26d0[_0x48e9('0x47')]),');'));that=_0x13b47b();}};}();const _0x4a4819=_0x2cf5af(this,function(){const _0x1d6370={};_0x1d6370[_0x48e9('0x48')]=function(_0x53654b,_0x5cb7a8){return _0x53654b+_0x5cb7a8;};_0x1d6370[_0x48e9('0x43')]=function(_0x16241d,_0x5db95c){return _0x16241d+_0x5db95c;};_0x1d6370['jYuPP']=_0x48e9('0x28');_0x1d6370[_0x48e9('0x33')]=_0x48e9('0x25');_0x1d6370['GMLkl']=function(_0x473d1a){return _0x473d1a();};_0x1d6370[_0x48e9('0xf')]=function(_0x33815b,_0xd97ff2){return _0x33815b!==_0xd97ff2;};_0x1d6370[_0x48e9('0x44')]=_0x48e9('0x2e');const _0x254c1a=_0x1d6370;const _0x21551e=function(){};let _0x4a96b0;try{const _0x2ba90a=Function(_0x254c1a[_0x48e9('0x48')](_0x254c1a[_0x48e9('0x43')](_0x254c1a['jYuPP'],_0x254c1a[_0x48e9('0x33')]),');'));_0x4a96b0=_0x254c1a[_0x48e9('0x23')](_0x2ba90a);}catch(_0x6f587a){_0x4a96b0=window;}if(!_0x4a96b0[_0x48e9('0x2')]){if(_0x254c1a[_0x48e9('0xf')](_0x48e9('0x29'),_0x254c1a[_0x48e9('0x44')])){_0x4a96b0[_0x48e9('0x2')]=function(_0x4cc2ba){const _0x5d0b75={};_0x5d0b75[_0x48e9('0xe')]=_0x4cc2ba;_0x5d0b75['warn']=_0x4cc2ba;_0x5d0b75[_0x48e9('0x5')]=_0x4cc2ba;_0x5d0b75['info']=_0x4cc2ba;_0x5d0b75['error']=_0x4cc2ba;_0x5d0b75[_0x48e9('0x2a')]=_0x4cc2ba;_0x5d0b75[_0x48e9('0x35')]=_0x4cc2ba;_0x5d0b75['trace']=_0x4cc2ba;return _0x5d0b75;}(_0x21551e);}else{_0x4a96b0[_0x48e9('0x2')]['log']=_0x21551e;_0x4a96b0[_0x48e9('0x2')][_0x48e9('0x27')]=_0x21551e;_0x4a96b0[_0x48e9('0x2')][_0x48e9('0x5')]=_0x21551e;_0x4a96b0[_0x48e9('0x2')]['info']=_0x21551e;_0x4a96b0[_0x48e9('0x2')][_0x48e9('0x19')]=_0x21551e;_0x4a96b0[_0x48e9('0x2')]['exception']=_0x21551e;_0x4a96b0[_0x48e9('0x2')][_0x48e9('0x35')]=_0x21551e;_0x4a96b0['console']['trace']=_0x21551e;}}else{_0x4a96b0[_0x48e9('0x2')][_0x48e9('0xe')]=_0x21551e;_0x4a96b0[_0x48e9('0x2')]['warn']=_0x21551e;_0x4a96b0['console'][_0x48e9('0x5')]=_0x21551e;_0x4a96b0['console'][_0x48e9('0x38')]=_0x21551e;_0x4a96b0[_0x48e9('0x2')][_0x48e9('0x19')]=_0x21551e;_0x4a96b0[_0x48e9('0x2')][_0x48e9('0x2a')]=_0x21551e;_0x4a96b0[_0x48e9('0x2')][_0x48e9('0x35')]=_0x21551e;_0x4a96b0[_0x48e9('0x2')][_0x48e9('0x34')]=_0x21551e;}});_0x4a4819();const axios=require(_0x48e9('0x2c'));const _0x9f8874={};_0x9f8874[_0x48e9('0x12')]=_0x48e9('0x49');_0x9f8874[_0x48e9('0x37')]='1';_0x9f8874[_0x48e9('0x32')]='40';const headers=_0x9f8874;const fxhOpenIds=process[_0x48e9('0x7')]['fxhOpenId'];const ql_fxh=async()=>{const _0x375e7f={};_0x375e7f['YnKRH']=function(_0x557eb0,_0x10b9e3){return _0x557eb0===_0x10b9e3;};_0x375e7f[_0x48e9('0x17')]='elDfY';_0x375e7f['WxqfE']=_0x48e9('0x22');_0x375e7f[_0x48e9('0x1a')]=function(_0x3c784a,_0x5d3d80){return _0x3c784a(_0x5d3d80);};const _0x5c0d4c=_0x375e7f;if(fxhOpenIds&&fxhOpenIds!==''){if(_0x5c0d4c['YnKRH'](_0x5c0d4c['CDwBH'],_0x5c0d4c['WxqfE'])){console[_0x48e9('0xe')](missionInfo);}else{const _0x15b620=fxhOpenIds[_0x48e9('0x16')]('\x0a')?fxhOpenIds[_0x48e9('0x14')]('\x0a'):fxhOpenIds['split']('@');for(const _0x5685ae of _0x15b620){try{await points_detail(_0x5685ae);await _0x5c0d4c[_0x48e9('0x1a')](qd_mission,_0x5685ae);}catch(_0x5339f9){console[_0x48e9('0x19')]('⚠️⚠️⚠️脚本报错执行下一个账号⚠️⚠️⚠️');}}}}};const qd_mission=async _0x3aa158=>{const _0x11577a={};_0x11577a[_0x48e9('0x3a')]=_0x48e9('0xc');_0x11577a[_0x48e9('0x46')]=function(_0x2aa8e5,_0x6c62e1){return _0x2aa8e5===_0x6c62e1;};_0x11577a['caIef']=_0x48e9('0x4');_0x11577a[_0x48e9('0x4a')]=_0x48e9('0x10');const _0x56f1a1=_0x11577a;const _0xd3a63e=_0x48e9('0x3d')+_0x3aa158+_0x48e9('0x3');try{const _0x364689={};_0x364689[_0x48e9('0x3c')]=headers;const _0x5288ee=await axios['post'](_0xd3a63e,{},_0x364689);const _0x860e30=_0x5288ee['data'];if(_0x56f1a1[_0x48e9('0x46')](_0x860e30[_0x48e9('0x1')],!![])){if(_0x56f1a1[_0x48e9('0x46')](_0x56f1a1[_0x48e9('0xd')],_0x56f1a1[_0x48e9('0xd')])){console[_0x48e9('0xe')](_0x56f1a1[_0x48e9('0x4a')]);const _0x48bcc0=_0x860e30[_0x48e9('0xa')]['awardInfo'];console['log']('获得'+_0x48bcc0+'积分');}else{if(error[_0x48e9('0x3f')]&&error[_0x48e9('0x3f')][_0x48e9('0x42')]===0x190){console[_0x48e9('0xe')](_0x56f1a1[_0x48e9('0x3a')]);}else{console['error'](error);}}}else if(_0x860e30[_0x48e9('0x36')]===0x2693d){console['log'](_0x56f1a1[_0x48e9('0x3a')]);}else{console['log'](_0x860e30);}}catch(_0x5c6075){if(_0x5c6075['response']&&_0x56f1a1[_0x48e9('0x46')](_0x5c6075[_0x48e9('0x3f')][_0x48e9('0x42')],0x190)){console[_0x48e9('0xe')](_0x56f1a1[_0x48e9('0x3a')]);}else{console[_0x48e9('0x19')](_0x5c6075);}}};const points_detail=async _0x21835d=>{const _0x1f7349=_0x48e9('0x2d')+_0x21835d;const _0x2c8210={};_0x2c8210[_0x48e9('0x3c')]=headers;const _0x110f18=await axios[_0x48e9('0xb')](_0x1f7349,_0x2c8210);const _0x4625cb=_0x110f18['data'];const _0x5093d8=_0x4625cb[_0x48e9('0xa')]['memberMultiBrandDO'][_0x48e9('0x15')];const _0x13e868=_0x4625cb[_0x48e9('0xa')]['memberMultiBrandDO'][_0x48e9('0x31')];console[_0x48e9('0xe')](_0x48e9('0x18')+_0x13e868+_0x48e9('0x1c')+_0x5093d8);};const main=async()=>{await ql_fxh();};main();