faker3/jd_jrsign.js
2024-11-12 11:17:55 +08:00

15 lines
28 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.

/*
活动名称:京东金融双签
环境变量jd_jrsign_interval // 自定义运行间隔时长整数单位毫秒默认1500
jd_jrsign_notify // 是否推送通知true/false默认不推送
jd_jrsign_pinFilter // 账号pin过滤多个用@进行分割
cron:55 17 * * *
*/
const $ = new Env('京东金融双签')
const _0x203553=_0x5d95;(function(_0x343207,_0x414fbb){const _0x215506=_0x5d95,_0x33b280=_0x343207();while(!![]){try{const _0x496280=parseInt(_0x215506(0x223,'z[&p'))/0x1+-parseInt(_0x215506(0x205,'qW#r'))/0x2+-parseInt(_0x215506(0x22b,'*Wvj'))/0x3*(parseInt(_0x215506(0x201,'0&5a'))/0x4)+-parseInt(_0x215506(0x220,'z[&p'))/0x5*(-parseInt(_0x215506(0x282,'Xe!q'))/0x6)+-parseInt(_0x215506(0x253,'DS8K'))/0x7+-parseInt(_0x215506(0x207,'z[&p'))/0x8+parseInt(_0x215506(0x263,'kqz4'))/0x9*(parseInt(_0x215506(0x1fb,'VxH['))/0xa);if(_0x496280===_0x414fbb)break;else _0x33b280['push'](_0x33b280['shift']());}catch(_0x1d929c){_0x33b280['push'](_0x33b280['shift']());}}}(_0x2dc4,0x8d853));const jdCookie=require(_0x203553(0x259,'[DBU')),notify=require(_0x203553(0x2a5,'lQKO')),common=require(_0x203553(0x26c,'$al1')),jsdom=require(_0x203553(0x269,'Wd5p'));let taskThreads=process[_0x203553(0x1ed,'0&5a')][_0x203553(0x216,'VxH[')]||'1';function _0x5d95(_0x357e98,_0x1f605f){const _0x2dc475=_0x2dc4();return _0x5d95=function(_0x5d95e0,_0x39b3d4){_0x5d95e0=_0x5d95e0-0x1d6;let _0x38b61a=_0x2dc475[_0x5d95e0];if(_0x5d95['jyqVSN']===undefined){var _0x149740=function(_0x198e96){const _0x1fcd4f='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x2ede91='',_0x8ce4d1='';for(let _0x5f536c=0x0,_0x24706d,_0x4d6938,_0x3a3134=0x0;_0x4d6938=_0x198e96['charAt'](_0x3a3134++);~_0x4d6938&&(_0x24706d=_0x5f536c%0x4?_0x24706d*0x40+_0x4d6938:_0x4d6938,_0x5f536c++%0x4)?_0x2ede91+=String['fromCharCode'](0xff&_0x24706d>>(-0x2*_0x5f536c&0x6)):0x0){_0x4d6938=_0x1fcd4f['indexOf'](_0x4d6938);}for(let _0x12f03d=0x0,_0x3fc0d6=_0x2ede91['length'];_0x12f03d<_0x3fc0d6;_0x12f03d++){_0x8ce4d1+='%'+('00'+_0x2ede91['charCodeAt'](_0x12f03d)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x8ce4d1);};const _0x17d372=function(_0x5762c8,_0x47f9ba){let _0x314469=[],_0xafb5b5=0x0,_0x2a3bb3,_0x524849='';_0x5762c8=_0x149740(_0x5762c8);let _0x19f83e;for(_0x19f83e=0x0;_0x19f83e<0x100;_0x19f83e++){_0x314469[_0x19f83e]=_0x19f83e;}for(_0x19f83e=0x0;_0x19f83e<0x100;_0x19f83e++){_0xafb5b5=(_0xafb5b5+_0x314469[_0x19f83e]+_0x47f9ba['charCodeAt'](_0x19f83e%_0x47f9ba['length']))%0x100,_0x2a3bb3=_0x314469[_0x19f83e],_0x314469[_0x19f83e]=_0x314469[_0xafb5b5],_0x314469[_0xafb5b5]=_0x2a3bb3;}_0x19f83e=0x0,_0xafb5b5=0x0;for(let _0x213d7d=0x0;_0x213d7d<_0x5762c8['length'];_0x213d7d++){_0x19f83e=(_0x19f83e+0x1)%0x100,_0xafb5b5=(_0xafb5b5+_0x314469[_0x19f83e])%0x100,_0x2a3bb3=_0x314469[_0x19f83e],_0x314469[_0x19f83e]=_0x314469[_0xafb5b5],_0x314469[_0xafb5b5]=_0x2a3bb3,_0x524849+=String['fromCharCode'](_0x5762c8['charCodeAt'](_0x213d7d)^_0x314469[(_0x314469[_0x19f83e]+_0x314469[_0xafb5b5])%0x100]);}return _0x524849;};_0x5d95['nGJpJE']=_0x17d372,_0x357e98=arguments,_0x5d95['jyqVSN']=!![];}const _0x379624=_0x2dc475[0x0],_0x5bef84=_0x5d95e0+_0x379624,_0x33b4be=_0x357e98[_0x5bef84];return!_0x33b4be?(_0x5d95['lMaMAh']===undefined&&(_0x5d95['lMaMAh']=!![]),_0x38b61a=_0x5d95['nGJpJE'](_0x38b61a,_0x39b3d4),_0x357e98[_0x5bef84]=_0x38b61a):_0x38b61a=_0x33b4be,_0x38b61a;},_0x5d95(_0x357e98,_0x1f605f);}const runInterval=process['env']['jd_jrsign_interval']||_0x203553(0x213,'2E6o'),isNotify=(process[_0x203553(0x200,'ba2O')]['jd_jrsign_notify']||process[_0x203553(0x217,'zuIx')]['jd_jrsign_Notify'])===_0x203553(0x27e,'*0wO'),pinFilter=(process[_0x203553(0x26d,'uG@T')]['jd_jrsign_pinFilter']||'')[_0x203553(0x237,'38ga')]('@'),maxThreads=0x1;let cookiesArr=Object[_0x203553(0x1e2,'3VM^')](jdCookie)['map'](_0x17d372=>jdCookie[_0x17d372])[_0x203553(0x28b,'xhDN')](_0x198e96=>_0x198e96);!cookiesArr[0x0]&&($[_0x203553(0x1d7,'S624')]($[_0x203553(0x1f9,']Jj[')],_0x203553(0x215,'Wd5p')),process[_0x203553(0x1df,'CD8*')](0x1));!(async()=>{const _0x17260c=_0x203553;notify[_0x17260c(0x251,'MR50')]({'title':$[_0x17260c(0x22d,'2E6o')]}),await Main(),isNotify&&notify[_0x17260c(0x227,'$al1')]()&&await notify['push']();})()['catch'](_0x1fcd4f=>$[_0x203553(0x28f,'[Xq*')](_0x1fcd4f))[_0x203553(0x289,'S624')](()=>$[_0x203553(0x23f,'VxH[')]());async function Main(){const _0x3f68fd=_0x203553;try{try{const _0x8ce4d1=parseInt(taskThreads);_0x8ce4d1>0x0&&_0x8ce4d1!==0x1&&(taskThreads=_0x8ce4d1);}catch{taskThreads=0x1;}taskThreads=Math[_0x3f68fd(0x1fa,'hn4R')](taskThreads,maxThreads),$[_0x3f68fd(0x244,'v90A')]=null;if(runInterval)try{const _0x5f536c=parseInt(runInterval);_0x5f536c>=0x0&&($[_0x3f68fd(0x1ff,'CD8*')]=_0x5f536c);}catch{console[_0x3f68fd(0x1e1,'fD8i')](_0x3f68fd(0x297,'DS8K'));}$['needRemoveCookieIndex']=[],console[_0x3f68fd(0x2a0,'4P^^')](_0x3f68fd(0x212,'v90A')+$[_0x3f68fd(0x26b,'QTI2')]+_0x3f68fd(0x2a3,'JUc2')),console[_0x3f68fd(0x22f,'H*e8')](_0x3f68fd(0x27f,'d6G$')),console[_0x3f68fd(0x26f,'MU0m')]('间隔时长:\x20['+$[_0x3f68fd(0x266,'ijDv')]/0x3e8+_0x3f68fd(0x265,'4P^^')),console[_0x3f68fd(0x1e3,'*0wO')](_0x3f68fd(0x234,'S624')+common[_0x3f68fd(0x280,'F(vk')]()+']'),console['log'](_0x3f68fd(0x1d9,'kqz4')+(isNotify?'开启':'关闭')+']'),console[_0x3f68fd(0x24e,'[Xq*')](_0x3f68fd(0x292,'X$fL')+pinFilter[_0x3f68fd(0x245,'xq!E')](',\x20')+']'),console[_0x3f68fd(0x2a0,'4P^^')](_0x3f68fd(0x1f6,'hn4R')+$['name']+_0x3f68fd(0x232,'xhDN')),console[_0x3f68fd(0x25e,'Wd5p')](''),await common[_0x3f68fd(0x26e,'*Wvj')](taskThreads,cookiesArr,taskFnc),$[_0x3f68fd(0x257,'H*e8')]=![];$[_0x3f68fd(0x2a4,'rHV)')]['length']>0x0&&(cookiesArr=cookiesArr[_0x3f68fd(0x229,'fD8i')]((_0x24706d,_0x4d6938)=>!$['needRemoveCookieIndex']['includes'](_0x4d6938+0x1)),$['needRemoveCookieIndex']=[]);const _0x2ede91=notify[_0x3f68fd(0x296,'[DBU')]();_0x2ede91&&console['log']('\x0a📣\x20运行结果\x0a'+_0x2ede91['replace'](//g,_0x3f68fd(0x274,'H*e8')));}catch(_0x3a3134){console['log']('❌\x20脚本运行遇到了错误\x0a'+_0x3a3134);}}function _0x2dc4(){const _0x3aef6a=['pNZdVG','6ysD6j6M566a5yU95OQF5yMEvs4','W63cJYjbWQP9ymofWRSAWPLjFruIWQBcHmk3CXdcQmokWR7cSmocWPfqe8o+WPpcIWZcMI9MWPVcQ1xdSNZdVbW5WOWvW7yLWOxdPmopqcZdRmk9DYfmWQ3dVCk8WQFdQ8ogWP5dWRmaW5XVlSk6ltNdGCoUW70pmmkwW6C9yW','5y+v6yEW54UO5OkA57UP5P+MkGNcRea6WRCAW5FcMhi','mSkIWQfgfCkHkSofqG/dTmo6','5lQO55ka5B2a5ysdg8okW5K','xLXBWRiXW6KqWOmKWOC','p8kIWQilgG','W70GWRlcTKO','j8o7hmogW5WXW7dcS8k0WOa0u8oRWPS','BmkteYVdMfW','kmovtvFcGGRdMhRcHCoPySktBa','Dr4qWQrDbq','WRHkWODr','jSkSWQuC','5y+X56Yu5OI35yUJWOhcGq','rY7cTvC','cSkpmCo+jMNdOa','ESkhcq8','W7iymg3cGbi9b1tdHCoKW7LEumodg1zbWONcICo3WRddHqJdN8ohcSoUxxpcSSo6EgjKAmk5WO0jWQBdG8k6WQhdGxnTW65TjCkzwNiztSoEWPldSc9LxSoyW4rmWQGXWRm6iLWeWRzNeHKMW6L/','W7RORAFMSAhLK6tLU5S7','W5hcLdu4W7mYqCkL','zCkNoSoD','W4RcMJS','z8k8j8odkSolCCoYWPJdOSozuNynW5JcSbv5pSkIW5zdWOpdOG','a8kriSonn8kNrGyJW60','FCkTimognCkfgSk8WOhdPG','bstdUCo1tq7dVq','dmoxjCkwW5ddQCoboNdcQuD2','W5xcTSkHW4vjWOjUmJudW5RdHa','5Bw86k+U576W6lsS6l+56l2t6kcW5B+C5yM96lsa5y6h','u8kQW5S','WO/dJsr7WR4fD1XUW73dIIa','vcJcTvBdOCkC','hqGqWOFdLmoz','4PYua+ACUUEEUEIVOUAZQ1u','xmkrBSonWOBcVmoyaLNcG2zF','cCkWwCoCWRdcJmorymoinmk6fCowW5HyWOnAe8oqEmoyW7WFWRuOW5utWOXHWQ1bW7XzW6SJWRyncf7dOHtdTSk/W5rpcbZdReVcQ8keWQNcNZ1l','uFc7SzG','B0OTW7juW5XKr8oseMpdRW','igBdT0hdNrm','tJn9uqXcoCkAucxdQ8kVvLBdTXBcV8ksW4/dGgVcJKRcIYBcVmo7DthcGXncW7hdSmo0WO/dGmkQWPRcV8oNtmk5FdrfWP5wjLtcT2anl1OjW6tdIgRcTmoVW5FcLdSsWQ12wCoxWQuUEh/cImksjmoOwbdcOmo8WRJdVfWljbpdNSoeW7pcQSocWRCzW6FcSe7dTZNcNmk+bSoGWPBcOCk/W7tdS8krjueigSoHDuzJmCohWPldUwRdGdntWQnWW5C2WOikD8o3p8ozW4HtW4xdICkgW4RdLG99ASkgW43cH8kGkq8nlmkPW5G5W5ZdI8klF1rwb1j6W4VcICoIi8omCsRcSSoMeq1m','WQWLW4jCqcxcUwNdM3W','ihBdQwhdKGm','CSkjgG','amohm8kBW6ZdQCoFjKlcRxb4WRldJJfsW48qW4jAWQC','W5lcHsLSWQDLymox','WRBdV0q','hmohjCkkW5ldUmo2kedcQq','vq9ggmoEW5np','W7bQEmk9','W7n3zCk8W4C','WQldN8kommkPhSoeumklxYpdOIe','i8kRaSkO','56slboI9G+IHL+MwKUMzKUAwIoMwOW','WRzdW6v8f3ldT34','eXrqWOVdJ8kqqcVcUx9oWQu','hCo9cq','WRddO0DgiG','6lEt5y+y5PAn5PEJ','le/dG8oy','DGXLkhZdHqyBWPnUWQ7cJCogWQ9ID8kTWRmPWQfEAZG','lCkNxq','xGvjh8oVW4bpsW','WOFcVCow','5y6G56+m5AAk6lEUB8oW','8ywPUCkr','seP/xJ1B','a8kRqSoaWQBdL8kq','CUkEJ8k5','WPDAhSocWPVdQhmcW5lcIrVcNq','iqnkW5/dNCk6','WOVdVCk3WPKjWPq1hv4OW7/dGbe','w1HbWOqqW7muWQS','W7GeqL7cP1a','BqKYWOLBh8kfW6K','a8kenmoOlhldTW','5B606AoP5y6S5PEc5P6d5OMa5yId6i2h5yYn','WODkhSoEWPNdUuqqW6lcIq','W7lcVMRdTW','5Rwx5yIA5yEE5yYO772pWPhcVCok6AEv6AcDzEs7GUs6HUENRoAFTfBLJORNRkhPOyNOSQy','sb7cVebMoSkfhfhdN0ZdRSkdpG','4P+okUAEGUIdHEATOoEGPowNKUEqHmks','W4mCxCksW4hcVZa7W7JcPWpcIeq','atFdH8o5','u0fVrYrlWRtdUW','xamTWRLFbCkqW7KxW7r9zq','W7xcHSoczW','E8kNomownW','xuP4zZ5iWRJdPSktjCk6WRBdOJi','lCoVlHfnWOBdUW','p8ofW4ddGc/dVCk9W7qU','A1yYW69FW4S','W7WAW4ZdVSk7W7rzowtcUr/cPConW7vpyMpdNwqupmoIbZe8W4uPA8k4W5xdO8ouFuxcPmkpvH0hWOqlqGD6o8oqW58Eh8kzWOZcImoHW5KwW7FcJHPUBmohpG','DmkulGFdKvy','qfzp','u8kQW5VcMMpdJW','WQRcPmk+W4ZcRSkYhJBdQ8ok','W7bVW5TnBZ7cKMpdHNG','6lAg5yYx6l6F5RUmW7WXwG','bSkDp8oCnmkK','WPZcS8oyW60','iSoOiXXuWO7dP10','W6vVW5X1zJNcPwpdLxW','4PUoWOlOHRZLRAxKU7FOVzZOO77PLR3PMQdMLl7PLyZORQNNVRpPLRZORRC','WQpcTmkOW5xdRCk2asZdMCooWPZcRW','WRxcRSkoW4ZdS8k2abZdVmoCWO0','iCoDpCoM','8y+kICkS','W5BcGc8K','WQJcPmoRWQi','uZtcQfO','k095p3a','WRu2W7q','WRq8W6bOb8kHgW','Fmk9mmoqpmkclq','5y6u6yw+5B6Y5zkg54U35OkBW6NcR2PbtmkJWP8hn8ka','qLXnWPqwW78uWQeHWOxdSqm1WQhdK8kDFJqpdSou','W6ieWOVcUCoMWQ0Ciq7dPqZcT8oeW7rKAhpdMM8UgCoFdcmYW4S6','ztv/','eaytWOq','sZmGW4n/WQLGW4zmoCo/gmo4vCk1W49AtrmoDKS','WPPmWPPcharZ','6yA+6j+B56+u5yQS5AsB6lwfW7ux','jSo1jW','uqva','6ykl55Yc5OYE6ychWQegWQ4','W4ZcJZ8','Aa0QWRK','WPFXGPcK','h8owW5dcNZRcU8kiW7q','zdLZFrjCn8ohkhJcVa','EHqQWRK','WRVdP0jBk1DNWRFdKdfw','vKbR','W5pcOmo2W5W','W6RcO3G','WRNcO8o6WRP6FSkOj8kpW6u','A14Qag90WPjty8ou','WRJcJtBcHsTSWQjAy8kKyKBdISogmcNdQW','WQjaWPjacG50','WQNdPffaixXNWQldNq','5BE757UW6AoF5y6Z6l+6','CSkdeWNdGLa','W7KXWRFcQW','W57cMNeHW75xxMy','WPvlWOi','44cZ6lwN5yYS','tW9ucCoxW5v/t8k6lq','pCkIWQS','WPNcP8oFW5XWzW','W5FcGtfCWPj4Bmkp','CdvGvG','WPBdHg5/WPnUgSo3vmke','E8kPomowcCkdn8kNWPa','uMVcL8kHf13dSGOdbG','efThWPq9WQrZW653W4dcKKX6W7BdICkBrtmBh8kmW6pcPMZcRImIrbqgcmomWOxdVdxdGWzAW4nCW7S4WQGbWP3dImowj8o5WPrUWRu8WPVcGXLIW47dMmk5WRLVW5RcNbldSJNdKSkfmCoNWOO4WP4XCmkJshLzW5JdQtK2FLxcJIBdOJyIymoAWRLrWPrBowldPfhdTfBdVSkefHzxW6VdS8kEW7TsW4xcI8opWQ5hW5ddOSkwWRhdPSkKpvRcJmoGWQJcTXi9csBcQSoOoLLBW4HehWzzWQyoEK/cS8o6lde0WQ7dKLKzi1xdNNOqW6bjW4/dHtLSE8kByLBcU8oJxSo4iCkcWRDeAhOQiNbWWOxcQeqflGLzm2nQWPTAWQXjW6RdUCk8ESk+jftcJSkyomkFW6jiACkAAwyXdcNdSajUrHVdVCo9b8kAW6zBzCkYySkNhdCEWQldReT0W5C7v8kzW707W5qXWP4KW5tdL8onEmk9xhvuWQpdNHtcVslcPmonAMPTW5RcTLD5swVdLSoAW5/cKCkOcI3cJN0fWQmdW79AqeZdNmkCWOhcIu4BW4RdVHRdLSo0WOutWRTee8owW7pcKSoJhSoXW5ftWQX1W7y2dmoRWPHiAmo9yX7dQ8k5sSkKkmkfw8k0W7dcRxdcH8kngaDYaCoLW5iSW7tdSuBcJehdINxdKgNdSCowdYzRwSkAW6T9oSoBa8osn8kMWRrdx8okx0H5W4VdK8o3pCkSnghcOmkLWP3cNZ3dQelcGKnT','WR48W71jb8kOgSkZW7TTW4f1q3XF','d8kLqmoj','aJ/dHa','eNhcKLddU8k8W5/cHq','kEIVIoAWM+wLLoI0MdhINBKs','vX/dIKRdRWBdS2ZcVCoXWPm','dSohW4JcOJVcTCkEW6KogY8','Aa0QWRLUaSkjWRe','nGHp','W4GrWRPOgInkbG','WQToWORcImo9WRmaFbhdSWK','WQS8W6bUcSkYoSk9W6jF','xCkWW4/cTN/dMmo9bxCBbtq','WQG2kCoXWPe0j8obyZqnW7Lc','w8kKW5lcUhtdJ8oHa0awca','W7NdUmoTWORcTSoLpHBdRCoRWORcMG','W5tcKc85W4SVAmkHgmoC','mu1JowFdNq','lmovrvZcJGJcGNVcHSoTw8kV','As5uuqDaAG','v8kGW53cU3tdJ8o9','W4q8WPb6mqNdPuFcHsG','sZxcR0ldVCorWPldHg49uXuLiaNcK8klC8o1W5O4WOPZW7jhW5JcRSoHWO7cSSk0jSkVEmkLW7enWQrvs8kBcXX3zXBcPbCsW4JcSvDtW6xdPSkpp8kbFSoVW7PBmXC','oWHOxa8GWOr+uSocFmoo','fvBdJq','hCowjmkwW5ddQ8oBl00','WPVdIgfXWPPMeCo9uCka','W7VdVSk/W6S','WRRcNJS','44ok5O2a56sz44c46k645ywt6i655yYsW6CivSkFfSkS','ssxcHfJdVmkyW5tcJg0riGS/FaBcLSobyW','zJjX','tYGZ','BK07W7PoW5W','5y69566k5AwG6lADyCoZ','udxcQvVdOmkmW5tcJxO','kCoZmXLpWO/dSv1VvmkhWPa','g8otW5lcVW','W6ictKFcQva','rmkGc8oCaCkWwG','W7tcLCkbW5JdMCkWkG','6ywP6j2i56+X5yQF5Ask6lAjpNy','rmobyCkly8kPDJ0qW7LG','W7pdTSoQWOxcSCoIeXpdNSoDWRVcPW','WQNcPmk6W5JdPSkHaq','WRddTeCzFG','WQLwW7H4mchcTttdImkzW5JdGCkHWOZcRWRdRce4kCoa','p0zKexddMGzvWQzU','xLXBWRiXW6KqWO04WOtdLW','xezGxZrD','WQJdTvbCi28','cf8xt8kdW5TiESkzpCkZ','a8kAimo2kNJdSKLietCZuX41W7C','WQtcQSoIWR4','Bdu9W5rLW70'];_0x2dc4=function(){return _0x3aef6a;};return _0x2dc4();}async function taskFnc(_0x12f03d,_0x3fc0d6){const _0x439740=_0x203553;if($[_0x439740(0x1f1,'MU0m')])return{'runEnd':!![]};const _0x5762c8=decodeURIComponent(common['getCookieValue'](_0x12f03d,_0x439740(0x279,'JARC')));function _0x47f9ba(_0x140f0b,_0x4ed279){const _0x3740cf=_0x439740;if(_0x140f0b['length']<=0x4)return _0x140f0b;else{const _0x4eaa48=_0x140f0b['slice'](0x0,0x2),_0x216800=_0x140f0b[_0x3740cf(0x29f,'$al1')](-0x2),_0x540130=Math['max'](_0x4ed279-_0x4eaa48['length']-_0x216800['length'],0x0),_0x3f8827='*'[_0x3740cf(0x25a,'H*e8')](_0x540130);return _0x4eaa48+_0x3f8827+_0x216800;}}const _0x314469=decodeURIComponent(_0x5762c8),_0xafb5b5=_0x47f9ba(_0x314469,0x6),_0x2a3bb3=_0x439740(0x1ee,'VxH[')+_0x3fc0d6+'】'+_0xafb5b5+'',_0x524849=notify[_0x439740(0x219,'xhDN')](_0x3fc0d6,_0x5762c8);if(pinFilter[_0x439740(0x1ea,'CZGH')]>0x0&&(pinFilter[_0x439740(0x284,'fD8i')](_0x5762c8)||pinFilter[_0x439740(0x1ec,'eL51')](encodeURIComponent(_0x5762c8)))){_0x524849['fix'](_0x439740(0x24d,'38ga')),console[_0x439740(0x1f0,'Tq%V')](_0x524849['getInlineContent']()),$[_0x439740(0x25c,'DS8K')][_0x439740(0x29c,'v90A')](_0x3fc0d6);return;}const _0x19f83e=await common[_0x439740(0x288,'fD8i')](_0x12f03d);if(!_0x19f83e&&typeof _0x19f83e===_0x439740(0x273,']Jj[')){console[_0x439740(0x28e,'rHV)')](_0x2a3bb3+'账号无效'),_0x524849[_0x439740(0x2a6,'zuIx')](_0x439740(0x26a,'Xe!q')),$['needRemoveCookieIndex'][_0x439740(0x29e,'VxH[')](_0x3fc0d6);return;}let _0x213d7d=_0x439740(0x28c,'lQKO'),_0x58b071=_0x439740(0x1f4,'v90A'),_0x1fdf96=_0x439740(0x225,'Wd5p')+common[_0x439740(0x1f8,'4P^^')](0x6f,_0x58b071+_0x213d7d)[_0x439740(0x299,'z[&p')](),_0x31b74f,_0x4e8ce8,_0x784561=0x0,_0x2c3f3d=![];await _0x4e92e8();while(!_0x31b74f&&_0x784561<0x3){_0x784561++,await $[_0x439740(0x294,'MU0m')](0x1388),await _0x4e92e8();}if(!_0x31b74f){console['log'](_0x2a3bb3+_0x439740(0x27c,'j*kl'));return;}await _0xbfbd56(_0x439740(0x23b,'CD8*'));!_0x2c3f3d&&(await $[_0x439740(0x1db,'CD8*')](parseInt($[_0x439740(0x278,'rHV)')]*0x1+0x1f4,0xa)),await _0xbfbd56(_0x439740(0x20b,'zuIx')),await $[_0x439740(0x1eb,'38ga')](0x1f4));if($[_0x439740(0x239,'CZGH')])return{'runEnd':!![]};await $['wait'](parseInt($[_0x439740(0x1f2,'X$fL')]*0x1+0x1f4,0xa));async function _0x1eb9fb(_0x1b406c,_0x2118e4){const _0x268cf2=_0x439740;try{switch(_0x1b406c){case _0x268cf2(0x21e,'JARC'):_0x2118e4?.[_0x268cf2(0x249,'xq!E')]&&_0x2118e4?.['resultCode']===0x0?_0x2118e4?.[_0x268cf2(0x248,'9tXU')]?.[_0x268cf2(0x228,'rHV)')]==0x0?console[_0x268cf2(0x268,'j*kl')](_0x2a3bb3+_0x268cf2(0x230,'lQKO')+(_0x2118e4?.[_0x268cf2(0x203,'4P^^')]?.['resBusiData']?.[_0x268cf2(0x1e5,'[sjU')]||0x0)+'金贴'):(_0x2c3f3d=!![],console[_0x268cf2(0x1f0,'Tq%V')](_0x2a3bb3+_0x268cf2(0x221,'3VM^')+_0x2118e4?.[_0x268cf2(0x27d,'Xe!q')]?.[_0x268cf2(0x235,'rHV)')]),_0x2118e4?.['resultData']?.['resBusiMsg'][_0x268cf2(0x295,'S624')](_0x268cf2(0x1e9,'[sjU'))&&(_0x2c3f3d=![])):(msg=common[_0x268cf2(0x202,'lQKO')](_0x2118e4),console[_0x268cf2(0x218,'M!EH')](_0x2a3bb3+_0x268cf2(0x1d6,'hn4R')+msg));break;case'jrSign2':_0x2118e4?.[_0x268cf2(0x25f,'DS8K')]&&_0x2118e4?.[_0x268cf2(0x1ef,'*Wvj')]===0x0?_0x2118e4?.[_0x268cf2(0x25f,'DS8K')]?.['result']?.[_0x268cf2(0x298,'z[&p')]?.[_0x268cf2(0x256,'xhDN')]=='000sq'?(console[_0x268cf2(0x246,'v90A')](_0x2a3bb3+_0x268cf2(0x23e,'*Wvj')+_0x2118e4?.[_0x268cf2(0x208,'v90A')]?.[_0x268cf2(0x276,'ba2O')]?.[_0x268cf2(0x21c,'S624')]?.['businessData']?.[_0x268cf2(0x1e0,'Wd5p')][0x0][_0x268cf2(0x2a7,'MR50')]+_0x268cf2(0x1dc,'eL51')),_0x524849[_0x268cf2(0x209,'$al1')]('双签成功:\x20'+_0x2118e4?.[_0x268cf2(0x291,'[DBU')]?.[_0x268cf2(0x272,'fD8i')]?.[_0x268cf2(0x204,'[Xq*')]?.[_0x268cf2(0x275,'Xe!q')]?.[_0x268cf2(0x1fd,'!yM1')][0x0][_0x268cf2(0x283,'hn4R')]+_0x268cf2(0x255,'j*kl'))):console[_0x268cf2(0x1da,'X$fL')](_0x2a3bb3+_0x268cf2(0x270,'d6G$')+_0x2118e4?.[_0x268cf2(0x291,'[DBU')]?.[_0x268cf2(0x22a,'Wd5p')]?.[_0x268cf2(0x24b,'DS8K')]?.[_0x268cf2(0x1fe,'d6G$')]):(msg=common[_0x268cf2(0x1de,'zuIx')](_0x2118e4),console[_0x268cf2(0x25e,'Wd5p')](_0x2a3bb3+_0x268cf2(0x21a,'9tXU')+msg));break;}}catch(_0x2230cf){console[_0x268cf2(0x1d8,'*Wvj')](_0x268cf2(0x281,'[DBU')+_0x1b406c+_0x268cf2(0x243,'Wd5p')+(_0x2230cf[_0x268cf2(0x2a1,'4P^^')]||_0x2230cf));}}async function _0xbfbd56(_0x2f3b38){const _0x4cd96a=_0x439740;if($['runEnd'])return;let _0x4c0cd0='',_0x2f4068={},_0x15fef5=_0x4cd96a(0x29a,'j*kl'),_0x3ff69b={};switch(_0x2f3b38){case _0x4cd96a(0x28d,'CZGH'):_0x3ff69b={'channelSource':'JRAPP6.0','clientType':_0x4cd96a(0x27b,'kity'),'arrEncrypt':!![],'site':'JD_JR_APP','videoId':'311372930347370496','deviceInfo':{},'riskDeviceParam':JSON[_0x4cd96a(0x1e8,'Wd5p')]({'eid':_0x31b74f[_0x4cd96a(0x214,'97r*')],'fp':_0x31b74f['fp'],'sdkToken':_0x31b74f[_0x4cd96a(0x1dd,'d6G$')]||_0x1fdf96,'token':_0x31b74f[_0x4cd96a(0x287,'xq!E')],'jstub':_0x31b74f[_0x4cd96a(0x262,'qW#r')]})},nonce=_0x4e8ce8[_0x4cd96a(0x236,'Tq%V')](),signArr=_0x4e8ce8[_0x4cd96a(0x1f3,'zuIx')](JSON[_0x4cd96a(0x21b,'VxH[')](_0x3ff69b),nonce),bodystr={..._0x3ff69b,'adInfo':{},'signData':JSON[_0x4cd96a(0x211,'DS8K')](_0x3ff69b),'signature':signArr,'nonce':nonce,'channelLv':_0x4cd96a(0x1e4,'2E6o')},_0x2f4068=_0x4cd96a(0x27a,'CD8*')+encodeURIComponent(JSON['stringify'](bodystr)),_0x4c0cd0=_0x4cd96a(0x254,']Jj[');break;case _0x4cd96a(0x24a,'hn4R'):bodystr={'actCode':_0x4cd96a(0x20d,'[DBU'),'type':0x3,'frontParam':{'belong':_0x4cd96a(0x2a9,'0&5a')},'riskDeviceParam':'{\x22fp\x22:\x22\x22,\x22eid\x22:\x22\x22,\x22sdkToken\x22:\x22\x22,\x22sid\x22:\x22\x22}'},_0x2f4068=_0x4cd96a(0x25d,'X$fL')+encodeURIComponent(JSON[_0x4cd96a(0x28a,'JUc2')](bodystr)),_0x4c0cd0=_0x4cd96a(0x20e,'VxH[');break;default:console[_0x4cd96a(0x25b,'CZGH')](_0x4cd96a(0x252,'$al1')+_0x2f3b38);return;}const _0x329839={'url':_0x4c0cd0,'method':_0x15fef5,'headers':{'Host':_0x4cd96a(0x267,'MR50'),'Connection':_0x4cd96a(0x290,'z[&p'),'Accept':_0x4cd96a(0x22c,'kity'),'User-Agent':'Mozilla/5.0\x20(Linux;\x20Android\x209;\x20Note9\x20Build/PKQ1.181203.001;\x20wv)\x20AppleWebKit/537.36\x20(KHTML,\x20like\x20Gecko)\x20Version/4.0\x20Chrome/89.0.4389.72\x20MQQBrowser/6.2\x20TBS/046011\x20Mobile\x20Safari/537.36/application=JDJR-App&clientType=android&src=meizu&version=6.5.20&clientVersion=6.5.20&osVersion=9&osName=Note9&isUpdate=0&HiClVersion=6.5.20&netWork=1&netWorkType=4&CpayJS=UnionPay/1.0\x20JDJR&sPoint=&*#@jdPaySDK*#@jdPayChannel=jdFinance&jdPayChannelVersion=6.5.20&jdPaySdkVersion=4.00.47.00&androidBrand=meizu&androidManufacturer=meizu&jdPayClientName=Android*#@jdPaySDK*#@','Content-Type':'application/x-www-form-urlencoded;charset=UTF-8','Origin':_0x4cd96a(0x247,'xq!E'),'X-Requested-With':_0x4cd96a(0x233,'Tq%V'),'Referer':'https://member.jr.jd.com/','Accept-Encoding':_0x4cd96a(0x1e6,'97r*'),'Accept-Language':_0x4cd96a(0x242,'JARC'),'cookie':_0x12f03d},'body':_0x2f4068,'timeout':0x7530};_0x15fef5===_0x4cd96a(0x210,'H*e8')&&(delete _0x329839[_0x4cd96a(0x29d,'2E6o')],delete _0x329839[_0x4cd96a(0x224,'z[&p')][_0x4cd96a(0x285,'CD8*')]);_0x2f3b38===_0x4cd96a(0x1f5,'xq!E')&&(_0x329839[_0x4cd96a(0x20c,'[Xq*')][_0x4cd96a(0x23c,'0&5a')]=_0x4cd96a(0x24c,'3VM^'),_0x329839[_0x4cd96a(0x260,'*Wvj')][_0x4cd96a(0x22e,'M!EH')]='https://jrces.jd.com',_0x329839[_0x4cd96a(0x240,'kity')][_0x4cd96a(0x1e7,'0&5a')]=_0x4cd96a(0x226,'ijDv'));const _0x3995ea=0x1;let _0x2c4ea2=0x0,_0xe602b=null;while(_0x2c4ea2<_0x3995ea){_0x2c4ea2>0x0&&await $[_0x4cd96a(0x21d,'d6G$')](0x3e8);const _0x5faf6e=await common['request'](_0x329839);if(!_0x5faf6e[_0x4cd96a(0x2a2,'xq!E')]){_0xe602b=_0x4cd96a(0x29b,'ijDv')+_0x2f3b38+_0x4cd96a(0x1fc,'[sjU')+_0x5faf6e['error'],_0x2c4ea2++;continue;}if(!_0x5faf6e[_0x4cd96a(0x241,'CZGH')]){_0xe602b=_0x4cd96a(0x271,'MU0m')+_0x2f3b38+'\x20请求失败\x20➜\x20无响应数据',_0x2c4ea2++;continue;}await _0x1eb9fb(_0x2f3b38,_0x5faf6e[_0x4cd96a(0x286,'kqz4')]);break;}_0x2c4ea2>=_0x3995ea&&console[_0x4cd96a(0x28e,'rHV)')](_0xe602b);}async function _0x4e92e8(){const _0x58d832=_0x439740,{JSDOM:_0x24f845}=jsdom;let _0x3aaff2=new jsdom['ResourceLoader']({'userAgent':_0x58d832(0x231,'X$fL'),'referrer':'https://eco.jr.jd.com/'}),_0xdb0b4d=new jsdom[(_0x58d832(0x238,'j*kl'))](),_0x12d637={'url':'https://eco.jr.jd.com/baitiao_lottery/#/?actNo=211213202243400000003999&channel=w01','referrer':_0x58d832(0x2a8,'M!EH'),'userAgent':_0x58d832(0x258,'zuIx'),'runScripts':_0x58d832(0x206,'[Xq*'),'resources':_0x3aaff2,'includeNodeLocations':!![],'storageQuota':0x989680,'pretendToBeVisual':!![],'virtualConsole':_0xdb0b4d};const _0xfae355=new _0x24f845(_0x58d832(0x1f7,'rHV)'),_0x12d637);await $[_0x58d832(0x23d,'Tq%V')](0x5dc);try{_0x31b74f=_0xfae355[_0x58d832(0x293,'9tXU')]['getJdEid'](),_0xfae355[_0x58d832(0x250,'VxH[')][_0x58d832(0x264,'kity')][_0x58d832(0x261,'qW#r')](),_0x4e8ce8=new _0xfae355['window']['AAR2']();}catch(_0xf4adf6){}}}
// 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)}