Files
smallfawn-QLScriptPublic/wnn.js
2025-02-17 23:03:53 +08:00

11 lines
7.7 KiB
JavaScript
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
/*
小程序:薇诺娜专柜商城
首次跑需要点击首页右侧“小游戏”
奖品:种树换实物
已实现功能:签到、种树任务、自动浇水
变量名wnn
变量值域名api.qiumeiapp.com请求体中的appUserToken值,多账号换行
export wnn="appUserToken"
*/
function _0xc5a8(){const _0x48cc06=['appUserToken','98zajAAt','1544928kZtNCJ','post','getWaterDrops','appUserToken=','trim','exit','✅\x20今日已签到','❌\x20未找到有效的\x20appUserToken退出。','❌\x20未填写\x20wnn\x20变量请检查环境变量配置。\x0a','log','wateringZgForest','checkin','updateZgForestTask','\x20======','&taskCode=2025001','❌\x20浇水失败:\x20','code','zgSigninNew','❌\x20Token\x20失效请重新获取','❌\x20阅读文章失败:\x20','34570lRShje','browseMall','✅\x20第\x20','\x0a======\x20','❌\x20签到请求异常:\x20','❌\x20获取水滴请求异常:\x20','❌\x20签到失败:\x20','https://api.qiumeiapp.com/zg-activity/zg-daily/','env','assist','readArticle','1218836UDmTqA','headers','&sysCode=zgxcx&isRegister=1&userShareCode=','\x0a✨\x20薇诺娜专柜商城\x20✨\x0a','index','e1b52ac4','map','run','getZgForest','\x0a共获取到\x20','&taskCode=2025002','288547qoSeRx','stringify','1401639VPIhCN','baseUrl','1506KCxAKT','4335XJEmax','❌\x20获取水滴失败:\x20','\x20次...','48QYNbGN','axios','✅\x20浏览商城任务完成','addZgForestInvite','message','🌿\x20计划浇水\x20','wnn','✅\x20签到成功','423irbcJN','8341JyaHnw','❌\x20浇水请求异常:\x20','username','floor','length','split','💧\x20当前水滴数量:\x20','❌\x20浏览商城请求异常:\x20','Mozilla/5.0\x20(iPhone;\x20CPU\x20iPhone\x20OS\x2017_6_1\x20like\x20Mac\x20OS\x20X)\x20AppleWebKit/605.1.15\x20(KHTML,\x20like\x20Gecko)\x20Mobile/15E148\x20MicroMessenger/8.0.56(0x18003830)\x20NetType/WIFI\x20Language/zh_CN','filter','application/x-www-form-urlencoded','data','\x20个账号','gzip,\x20deflate,\x20br'];_0xc5a8=function(){return _0x48cc06;};return _0xc5a8();}const _0x231f34=_0x66ad;(function(_0x568608,_0x141211){const _0x54673b=_0x66ad,_0x4c7000=_0x568608();while(!![]){try{const _0x5162de=parseInt(_0x54673b(0x1a7))/0x1*(parseInt(_0x54673b(0x1b6))/0x2)+parseInt(_0x54673b(0x198))/0x3+-parseInt(_0x54673b(0x18b))/0x4+-parseInt(_0x54673b(0x19b))/0x5*(parseInt(_0x54673b(0x19a))/0x6)+-parseInt(_0x54673b(0x196))/0x7*(-parseInt(_0x54673b(0x19e))/0x8)+parseInt(_0x54673b(0x1a6))/0x9*(-parseInt(_0x54673b(0x1cb))/0xa)+-parseInt(_0x54673b(0x1b7))/0xb;if(_0x5162de===_0x141211)break;else _0x4c7000['push'](_0x4c7000['shift']());}catch(_0x1d2260){_0x4c7000['push'](_0x4c7000['shift']());}}}(_0xc5a8,0x48c0b));const axios=require(_0x231f34(0x19f)),wnn=process[_0x231f34(0x1d3)][_0x231f34(0x1a4)]||'';function _0x66ad(_0x1d6877,_0x25e7f6){const _0xc5a8b6=_0xc5a8();return _0x66ad=function(_0x66ad4d,_0x3a878f){_0x66ad4d=_0x66ad4d-0x18a;let _0x19efb6=_0xc5a8b6[_0x66ad4d];return _0x19efb6;},_0x66ad(_0x1d6877,_0x25e7f6);}function log(_0x26263a){const _0x51ce68=_0x231f34;console[_0x51ce68(0x1c0)](_0x26263a);}function delay(){return new Promise(_0x43d966=>setTimeout(_0x43d966,0x1b58));}class WnnTask{constructor(_0x836798,_0x3496ea){const _0x40d748=_0x231f34;this['appUserToken']=_0x836798[_0x40d748(0x1bb)](),this[_0x40d748(0x18f)]=_0x3496ea+0x1,this[_0x40d748(0x1a9)]='账号\x20'+this[_0x40d748(0x18f)],this[_0x40d748(0x199)]=_0x40d748(0x1d2),this[_0x40d748(0x18c)]={'Host':'api.qiumeiapp.com','Content-Type':_0x40d748(0x1b1),'Accept-Encoding':_0x40d748(0x1b4),'User-Agent':_0x40d748(0x1af),'Referer':'https://servicewechat.com/wx250394ab3f680bfa/637/page-frame.html','Connection':'keep-alive'};}async[_0x231f34(0x1c2)](){const _0x349b3c=_0x231f34;try{const _0x4198ce=await axios[_0x349b3c(0x1b8)](this[_0x349b3c(0x199)]+_0x349b3c(0x1c8),'appUserToken='+this[_0x349b3c(0x1b5)],{'headers':this['headers']});log(_0x349b3c(0x1ce)+this['username']+_0x349b3c(0x1c4));if(_0x4198ce[_0x349b3c(0x1b2)][_0x349b3c(0x1c7)]===0x2bf)log(_0x349b3c(0x1bd));else{if(_0x4198ce[_0x349b3c(0x1b2)][_0x349b3c(0x1c7)]===0xc8)log(_0x349b3c(0x1a5));else{if(_0x4198ce[_0x349b3c(0x1b2)][_0x349b3c(0x1c7)]===0x258)return log(_0x349b3c(0x1c9)),![];else log(_0x349b3c(0x1d1)+JSON[_0x349b3c(0x197)](_0x4198ce[_0x349b3c(0x1b2)]));}}}catch(_0x1ff329){log(_0x349b3c(0x1cf)+_0x1ff329[_0x349b3c(0x1a2)]);}return!![];}async[_0x231f34(0x1cc)](){const _0x213484=_0x231f34;try{const _0x370cde=await axios[_0x213484(0x1b8)](this[_0x213484(0x199)]+_0x213484(0x1c3),_0x213484(0x1ba)+this[_0x213484(0x1b5)]+_0x213484(0x1c5),{'headers':this[_0x213484(0x18c)]});_0x370cde['data']['code']===0xc8?log(_0x213484(0x1a0)):log('❌\x20浏览商城失败:\x20'+JSON['stringify'](_0x370cde['data']));}catch(_0x22f579){log(_0x213484(0x1ae)+_0x22f579[_0x213484(0x1a2)]);}}async['readArticle'](){const _0x1f0006=_0x231f34;try{const _0x43292b=await axios['post'](this[_0x1f0006(0x199)]+_0x1f0006(0x1c3),_0x1f0006(0x1ba)+this[_0x1f0006(0x1b5)]+_0x1f0006(0x195),{'headers':this[_0x1f0006(0x18c)]});if(_0x43292b[_0x1f0006(0x1b2)]['code']===0xc8)log('✅\x20阅读文章任务完成');else _0x43292b[_0x1f0006(0x1b2)][_0x1f0006(0x1c7)]===0x2bf?log('⚠️\x20请勿频繁操作'):log(_0x1f0006(0x1ca)+JSON[_0x1f0006(0x197)](_0x43292b[_0x1f0006(0x1b2)]));}catch(_0x481cf6){log('❌\x20阅读文章请求异常:\x20'+_0x481cf6[_0x1f0006(0x1a2)]);}}async[_0x231f34(0x1d4)](_0x4ec03e){const _0x25682d=_0x231f34;try{await axios[_0x25682d(0x1b8)](this['baseUrl']+_0x25682d(0x1a1),_0x25682d(0x1ba)+this['appUserToken']+_0x25682d(0x18d)+_0x4ec03e,{'headers':this['headers']});}catch(_0x29368f){}}async[_0x231f34(0x1b9)](){const _0x26a742=_0x231f34;try{const _0x50afb1=await axios[_0x26a742(0x1b8)](this['baseUrl']+_0x26a742(0x193),_0x26a742(0x1ba)+this[_0x26a742(0x1b5)],{'headers':this['headers']});if(_0x50afb1[_0x26a742(0x1b2)][_0x26a742(0x1c7)]===0xc8){const _0x16ef3d=_0x50afb1['data']['data']['remainWaterGram'];return log(_0x26a742(0x1ad)+_0x16ef3d+'g'),_0x16ef3d;}else log(_0x26a742(0x19c)+JSON['stringify'](_0x50afb1[_0x26a742(0x1b2)]));}catch(_0xbe8155){log(_0x26a742(0x1d0)+_0xbe8155[_0x26a742(0x1a2)]);}return 0x0;}async['waterTree'](){const _0x29c7db=_0x231f34,_0x1cb489=await this[_0x29c7db(0x1b9)](),_0x53dbf1=Math[_0x29c7db(0x1aa)](_0x1cb489/0xa);if(_0x53dbf1<=0x0){log('❌\x20水滴不足无法浇水');return;}log(_0x29c7db(0x1a3)+_0x53dbf1+_0x29c7db(0x19d));for(let _0x3c5720=0x1;_0x3c5720<=_0x53dbf1;_0x3c5720++){try{const _0x3f07f4=await axios['post'](this['baseUrl']+_0x29c7db(0x1c1),_0x29c7db(0x1ba)+this['appUserToken'],{'headers':this[_0x29c7db(0x18c)]});_0x3f07f4[_0x29c7db(0x1b2)][_0x29c7db(0x1c7)]===0xc8?log(_0x29c7db(0x1cd)+_0x3c5720+'\x20次浇水成功'):log(_0x29c7db(0x1c6)+JSON[_0x29c7db(0x197)](_0x3f07f4['data']));}catch(_0x575fc0){log(_0x29c7db(0x1a8)+_0x575fc0[_0x29c7db(0x1a2)]);}await delay();}}async[_0x231f34(0x192)](_0x3e87e3){const _0x4a8fc9=_0x231f34;if(!await this[_0x4a8fc9(0x1c2)]())return;await delay(),await this[_0x4a8fc9(0x1cc)](),await delay(),await this[_0x4a8fc9(0x18a)](),await delay(),await this[_0x4a8fc9(0x1d4)](_0x3e87e3),await delay(),await this['waterTree']();}}((async()=>{const _0x2f5eec=_0x231f34;console[_0x2f5eec(0x1c0)](_0x2f5eec(0x18e));!wnn&&(console[_0x2f5eec(0x1c0)](_0x2f5eec(0x1bf)),process[_0x2f5eec(0x1bc)](0x1));const _0x146600=wnn[_0x2f5eec(0x1ac)]('\x0a')[_0x2f5eec(0x191)](_0x45ff82=>_0x45ff82[_0x2f5eec(0x1bb)]())[_0x2f5eec(0x1b0)](_0x117b8c=>_0x117b8c);if(_0x146600[_0x2f5eec(0x1ab)]>0x0){console[_0x2f5eec(0x1c0)](_0x2f5eec(0x194)+_0x146600[_0x2f5eec(0x1ab)]+_0x2f5eec(0x1b3));const _0x579de0=_0x2f5eec(0x190);for(let _0x36bbf9=0x0;_0x36bbf9<_0x146600[_0x2f5eec(0x1ab)];_0x36bbf9++){const _0x31fd53=new WnnTask(_0x146600[_0x36bbf9],_0x36bbf9);await _0x31fd53['run'](_0x579de0);}}else console[_0x2f5eec(0x1c0)](_0x2f5eec(0x1be));})());