KR/jd_lzkj_ttljd.js

29 lines
96 KiB
JavaScript
Raw Normal View History

2023-07-27 16:14:01 +08:00
/*
6.21-7.20 天天签到领京豆
入口[ 6.21-7.20 天天签到领京豆 ]
助力逻辑不行后续在看看兑换的后面再看
请求太频繁会被黑ip
过10分钟再执行
//export jd_opencard_blacklist="" // 黑名单 用&隔开 pin值
//export JD_LZ_OPENCARD="false" //关闭开卡相关活动运行
cron:1 1 1 1 *
============Quantumultx===============
[task_local]
#6.21-7.20 天天签到领京豆
1 1 1 1 * jd_lzkj_ttljd.js, tag=6.21-7.20 天天签到领京豆, enabled=true
*/
const $ = new Env('6.21-7.20 天天签到领京豆')
var version_='jsjiami.com.v7';function Illli1I(){const I1IiIlll=(function(){return[version_,'NAjUAsgyyjtiadEmEiIr.pUcpoFmb.QvlJ7JnrJN==','o2GOWOlcOmoc','WR1XWQVcGNa','mIS6Emk+WRvut2hcVKVdRmoV','W58jW5ny','wmkQW68','W4pcUSoWWPb5WOlcLHejW6u','W7SpW7Sss2K','oSkYWPrnWQBdHbTMja','5QYNW4Ll5BAq6kkH6zU95yQ4776d6kYu6l6LWQ3dM+wiHEMsM+wrUowgToAlRUIIPEIeQUADIG','chWcWPRcTa','WQuKW5b5amkoB3ffWRerq2TUsmolW5FdGIft','CtRdS3y','W4ufW7OYs35B','W5xcMSoSWOLJ','WOjmW4j5WRuSWQJdNKu','WQziemkQW5KAW67cG8oMmbzyW7rP','AsWMWPHp','WOBdVHldQ8kd','fSoeusPW','i8kGWR5TWR8','ntFdL8odAa','ldNdRSobAufSdq4r','W7XYmwaf','WRZcV8kJrZm','wCkNtCoRhG','WQP9WONdVha','zHimqSk+aSk+W57dUmkXqG','vmoBW67dI8kSWQBcJ8klz1r+6kYN5RoT5AsW6lEo772P6k+I5QgX5P+F57+36lsn6ysQ6k2x','5Q2sWRTX5Bw16kox6zUm5yQq77Yj6kY46l68W7FdNEwjQ+MrR+wqQowhS+AkNEIHN+IfO+ACPmkh','W5SgW6C','W5egW6WVeLZcGLZcUbixcb/dPCkUe8kR','WRDgWPNcJv7dHW','WQ0CW5qEW5KRW4hcImkN','WQb2WOxdVwtcMmkB','nmornxrE','WOrTWRNcKh4','BICWCCkk','z3H+iq','gSo9bN0','WQ4UW4m','ldiPaMGvaI3cO1xcGLyq','WRi6WPFdVxlcS8kysCkXW5hcL8ogjq','5Q2tWQNcJow1L+AxIUAZSUw9LowmVo++MEIVIEAzKoAoJCkhW4dLK5lLHjRMIjpOOk3OH6hMNOec','qf/cL3DiW7hcRCkF','W6NcQmo+WRfsqZ3cI8kd','W70wW6npW7W','WRmsW44BW5KVW4pcMCkNWOBcT8oj','WRxcTZnHfqhcKa','AhXZmW','W5nbfeK5','W5CIxSkECq','jmoAuHiMWO3dQSoQWOuoW73cN2yOvLVdUW','WRHiW4DcWPm','WQnmWPJcVvpdKbq','W4efBSkOW6VdV8krk8o4wWXSxMC','WQtcNrX8cq','WQNdNSooW60P','sSkYrSk5','W4jioKm+','W78XWOv9yW','WRHbc8k5W5a','jSossq14W6ddQ8o8WPadW7VcJG','imk7WOzSWPG','BxbPk8ohW6ajua','jZX4W69TWR3cK8kSW4y','xCkRW7ZdUCk/WRRdR8oJW5u+WQqlW7ZdVmowW67dVa','btNdQ8ktWQe','b8omaeLm','bCoYW4tdTe1reYVdPG','W5CFC8k3W7JdKCkamCo9uX9W','EdT8jCoNW6ubr1VcGd/cS8kP','zCo1uCk7','f11AWOtcRcO','b8kEWQ7cJSoQ','W6RLP6tOTPJVV73LPA3LJkFLTkJNURFKUBFPNPhOPR7LI7pLIRBKUk0','W6v0awWy','zSkqb8kMFCk5W549wq','kYxdPmoYDG','bSk1WQ5kWPy','W6rrgW','ubyvWQ5/gSk5WPpdMMe','WPqBW5f9gq','FmkpW4ZdTSk7','i8kGWOa','W4qzW6WQcq','WRLpga','WPXCWPtcVuNcOSkAW6ldJW','W6JcPCoSWRzByG','W5bpf1WW','W5j5m0ee','y3TGW4P6WOxcU8kln1K','mCoiW5tdRSkp','W4qnWOX3sa','s8kOsYK8WPzVnmoqWQFcHq','5B2W5yIV5BAg6k2K572K55Iu5zo35y6P776K','CdKczmk+','wKfTCHq','WRRNT6/ORl7MT7JLIP/KURROSi7VV7G','WRldSCopW647','lh9mWRNcQG','W48gW4yTfa','W7vFW5JcHaBdJ00Rwq','vcebWO9i','attdHCk0WRv5WOPPW4JcR0j9W7tcQb5Poa','eSoZfvL8WP4','Fhf4xWO','kZ3dGCo1AW','WQLmWO0','BMH4sdPIxslcVNS','W7WGW5tdNCky','m3GsWOtcSSooW53dJse6','W5FdNmkQfCk2','WRGNW4TTiW','WR3cQbfjgai','yXamsG','W7dcHSoOWPvf','W6/cGSoTWQ5h','WQRcK3jRW7G','W5ieW5ZdMSki','W5CLwmkSzq','WRKZjCkdWP7dOCkruJ58W6hdLCojtYbcuIhdSSohWOzPl8kPWRtcUxFcVGG','W5VdLmk7emk7W4hdGq','WQzbcCk/W6WyW6NcGq','zNDUfmoGW6Wb','jNqPWO/cRG','WPjihgq6W6K6W48','pCk4WPj2WOldGar2lCozFgxcJCkdovS','W6RcRCoLWQPy','dayDWRrTe8ksWPxcKw41tmozWRyue8kCWQNcJbmBW4pcOSobh8oSuf7cJ8kEq8k4ntxcQSo8bIJdOsq','W7isW644s1zmWRZcQSksWQtdQG','WQ59WPu','WOPRWQpcULO','WQCZW5zxb8k3yM1eWPmzqG','uNLrsXe','5BYN5yU15yIO5yI/5Bs15RIU77+M5y285yQp6lsI5y+a6is65yIh5yIg5O6j5lMF5zcB6z+t55Q+5AAs6yck6lEb5y21','WPJcULfQW5q','W4hcSmotWPv1WP7cMrKiW7vXo0ddJG','W4KKW7hdNSkT','nmk7W4PfWP4','5y+p5yIy5yEK776+','WQf3WPxdNNdcTSkA','WOtdOd4','fCoftW1q','W5BcTSojWPHMWOxcRGeZW7uc','xmk2qCkTWR97','i8k+WRZcJ8ozoW','CgLMkCo9','qM9NaSoH','EgJcNCka5ywL5lY16i6x5B+Z772N','kmk/WOHjWOi','WODiWRRcSvq','uCoZwmkPWPq','5yMb5yQMWRW','W6NcSmoZWQPuCW','rSk8rSkEWR9UlG','AwxcKmotrhzHaq0','h8oSaNbNWO9mi8oQWRVcKtNcGCoYcCoAcwRcOSkKzsFcJg7dKCksWPHepINdTYfe','WOLEWOtcS2ZcSmk6W7JdJCkbFmoynSorWQ0','WPNdSCo3W5mT','5RsR5yQ75BEZ57MR5P2a','W5y/imk7WRW','irRdMCoRAW','wCkKW7ddJ8kLWR7dRSoYW6udWQqjW60','m280WQtcSW','CgfTwtC','gmkWWOFcTmoA','gCo+W4tdHSkK','WONcJ0DoW5m','sCkPW49VvW','W6xdICohW4SxjmoCq8oQWPC4','icDKW4zjWRpcT8kTW747WQ7dStez','W4SRtq','WRRcLaTlmq','W6j/WPOy','kcpdKmoi','BruNrmk4dSkKW4tdNmkTqGb8W6xdRh7cShpcH8oZyG','W5OiW7qGfq','WOrkW4DUWRyqWRpdKKu','ywncW51f','qCkRW6ZdUCkRWRBdSSoYW4i','W7VcO8oRWQXfqZ3cI8kd','W78uW6GNaZqgWQZcTSkxWQBcOq1HhSo9wshcM8kNW7zrW5DyW5PWWOxcGmkzWPCRW4FcRW','W74oW6GYs35AWRVcQSk6WQ3dQqK','W58DW7qZdHhdVrBcTrKpnuxdQCo0dmk8W5lcLCoYWQyG','ECkCqmkzWQq','pCk7WOzuWPxdSaj6jq','EmoGxCkQWPf/lNepW6e','WQD3WPy','WOdcI8o3yCoVW6tdRmoZWQeZW5i','voI9PUE5RoEVMUwlT+wNPUAwMU++Sq
// 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"])