diff --git a/jd_jdzz.js b/jd_jdzz.js index fdd2468..8e9031b 100644 --- a/jd_jdzz.js +++ b/jd_jdzz.js @@ -1,22 +1,18 @@ /* 京东赚赚 -可以做随机互助 活动入口:京东赚赚小程序 -长期活动,每日收益2毛左右,多号互助会较多 +长期活动,每日收益2毛左右 已支持IOS双京东账号,Node.js支持N个京东账号 脚本兼容: QuantumultX, Surge, Loon, JSBox, Node.js ============Quantumultx=============== [task_local] # 京东赚赚 10 0 * * * jd_jdzz.js, tag=京东赚赚, img-url=https://raw.githubusercontent.com/58xinian/icon/master/jdzz.png, enabled=true - ================Loon============== [Script] cron "10 0 * * *" script-path=jd_jdzz.js,tag=京东赚赚 - ===============Surge================= 京东赚赚 = type=cron,cronexp="10 0 * * *",wake-system=1,timeout=3600,script-path=jd_jdzz.js - ============小火箭========= 京东赚赚 = type=cron,script-path=jd_jdzz.js, cronexpr="10 0 * * *", timeout=3600, enable=true */ @@ -24,7 +20,7 @@ const $ = new Env('京东赚赚'); const notify = $.isNode() ? require('./sendNotify') : ''; //Node.js用户请在jdCookie.js处填写京东ck; const jdCookieNode = $.isNode() ? require('./jdCookie.js') : ''; -let helpAuthor = true; // 帮助作者 +//let helpAuthor = true; // 帮助作者 const randomCount = $.isNode() ? 20 : 5; let jdNotify = true; // 是否关闭通知,false打开通知推送,true关闭通知推送 //IOS等用户直接用NobyDa的jd cookie @@ -40,12 +36,11 @@ if ($.isNode()) { } const JD_API_HOST = 'https://api.m.jd.com/client.action'; const inviteCodes = [ - `S9KUiH11Mq1bSKBo@S5KkcRh9P9FbRKUygl_UJcg@StvV3SBcQ8Vw@S5KkcEV9ThDGWdWGw0K5u@S5KkcRktN8lyBdEj1kaQMdw@Sa3LolJe5IPhP9aNJQlGD@S5KkcR0pM91aBIhmgxf9bcA@S5KkcREwR_VXRIB78kvRYcg@S5KkcRE8b9QGEIEz0nKRbJw`, - `S9KUiH11Mq1bSKBo@S5KkcRh9P9FbRKUygl_UJcg@StvV3SBcQ8Vw@S5KkcEV9ThDGWdWGw0K5u@S5KkcRktN8lyBdEj1kaQMdw@Sa3LolJe5IPhP9aNJQlGD@S5KkcR0pM91aBIhmgxf9bcA@S5KkcREwR_VXRIB78kvRYcg@S5KkcRE8b9QGEIEz0nKRbJw`, + '' ] let nowTimes = new Date(new Date().getTime() + new Date().getTimezoneOffset() * 60 * 1000 + 8 * 60 * 60 * 1000); !(async () => { - await requireConfig(); + //await requireConfig(); if (!cookiesArr[0]) { $.msg($.name, '【提示】请先获取京东账号一cookie\n直接使用NobyDa的京东签到获取', 'https://bean.m.jd.com/bean/signIndex.action', {"open-url": "https://bean.m.jd.com/bean/signIndex.action"}); return; @@ -68,7 +63,7 @@ let nowTimes = new Date(new Date().getTime() + new Date().getTimezoneOffset() * } continue } - await shareCodesFormat() + //await shareCodesFormat() await jdWish() } } @@ -99,12 +94,16 @@ async function jdWish() { $.nowNum = parseInt($.totalNum) for (let i = 0; i < $.taskList.length; ++i) { let task = $.taskList[i] - if (task['taskId'] !== 3 && task['status'] !== 2) { + // console.log(task); + if (task['taskId'] === 1 && task['status'] !== 2) { + console.log(`去做任务:${task.taskName}`) + await doTask({ "taskId": task['taskId'], "taskItem": {}, "actionType": 0, "taskToken": task['taskToken'], "mpVersion": "3.4.0" }) + } else if (task['taskId'] !== 3 && task['status'] !== 2) { console.log(`去做任务:${task.taskName}`) if (task['itemId']) - await doTask({ "itemId": task['itemId'], "taskId": task['taskId'], "taskToken": task["taskToken"], "mpVersion": "3.4.0" }) + await doTask({ "itemId": task['itemId'], "taskId": task['taskId'], "taskItem": {}, "actionType": 0, "taskToken": task['taskToken'], "mpVersion": "3.4.0" }) else - await doTask({ "taskId": task['taskId'], "taskToken": task["taskToken"], "mpVersion": "3.4.0" }) + await doTask({ "taskId": task['taskId'], "taskItem": {}, "actionType": 0, "taskToken": task['taskToken'], "mpVersion": "3.4.0" }) await $.wait(3000) } } @@ -157,7 +156,7 @@ function getUserInfo() { function getTaskList(flag = false) { return new Promise(resolve => { - $.get(taskUrl("interactTaskIndex"), async (err, resp, data) => { + $.get(taskUrl("interactTaskIndex", { "mpVersion": "3.4.0" }), async (err, resp, data) => { try { if (err) { console.log(`${JSON.stringify(err)}`) @@ -165,11 +164,8 @@ function getTaskList(flag = false) { } else { if (safeGet(data)) { data = JSON.parse(data); + $.taskList = data.data.taskDetailResList $.totalNum = data.data.totalNum - $.taskList = data?.data?.taskDetailResList ?? [] - if (data.data.signTaskRes) { - $.taskList.push(data.data.signTaskRes) - } $.totalBeanNum = data.data.totalBeanNum if (flag && $.taskList.filter(item => !!item && item['taskId'] === 3) && $.taskList.filter(item => !!item && item['taskId'] === 3).length) { console.log(`\n【京东账号${$.index}(${$.UserName})的${$.name}好友互助码】${$.taskList.filter(item => !!item && item['taskId'] === 3)[0]['itemId']}\n`); @@ -409,4 +405,4 @@ function jsonParse(str) { } } // 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)} +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) } \ No newline at end of file diff --git a/jd_try_2.0.js b/jd_try_2.0.js index b92dab7..cde19ec 100644 --- a/jd_try_2.0.js +++ b/jd_try_2.0.js @@ -1,17 +1,16 @@ /* * 2022-07-20 修复获取试用列表风控问题; - * 2022-08-06 修复申请试用时风控,感谢TG大佬的公益接口; + * 2022-08-06 修复申请试用时风控,需要token请到https://t.me/jd_api获取; * By https://github.com/6dylan6/jdpro/ * 基于X1a0He版本修改 * @Address: https://github.com/X1a0He/jd_scripts_fixed/blob/main/jd_try_xh.js -如需运行请自行添加环境变量:JD_TRY="true" 即可运行 + 脚本是否耗时只看args_xh.maxLength的大小(申请数量),默认50个,申请100个差不多15分钟 上一作者说每天申请上限300个(自测,没有申请过上限),关注店铺上限500个 关注店铺满了就无法继续申请,可用批量取关店铺取消关注 -部分环境变量说明,详细请参考58行往下: -export JD_TRY="true"是否允许,默认false +部分环境变量说明,详细请参考62行往下: export JD_TRY_PASSZC="false" #不过滤种草官类试用,默认true过滤 export JD_TRY_MAXLENGTH="50" #商品数组的最大长度,默认50个 export JD_TRY_PRICE="XX"#商品原价格,大于XX才申请,默认20 @@ -23,12 +22,17 @@ export JD_TRY_UNIFIED="false" 默认采用不同试用组 定时自定义,能用多久随缘了!!! */ +if (!process.env.APITOKEN){ + console.log('请到https://t.me/jd_api获取token,设置变量export APITOKEN=你的Token来运行') + return; +} const $ = new Env('京东试用') const URL = 'https://api.m.jd.com/client.action' let trialActivityIdList = [] let trialActivityTitleList = [] let notifyMsg = '' let size = 1; +let APITOKEN = process.env.APITOKEN ||''; $.isPush = true; $.isLimit = false; $.isForbidden = false; @@ -52,7 +56,7 @@ $.innerKeyWords = "宠物", "饲料", "丝袜", "黑丝", "磨脚", "脚皮", "除臭", "性感", "内裤", "跳蛋", "安全套", "龟头", "阴道", "阴部", "手机卡", "电话卡", "流量卡", - "习题","试卷", + "习题", "试卷", ] //下面很重要,遇到问题请把下面注释看一遍再来问 let args_xh = { @@ -180,11 +184,11 @@ let args_xh = { sendNum: process.env.JD_TRY_SENDNUM * 1 || 4, } //上面很重要,遇到问题请把上面注释看一遍再来问 -!(async() => { +!(async () => { await $.wait(500) // 如果你要运行京东试用这个脚本,麻烦你把环境变量 JD_TRY 设置为 true - if (process.env.JD_TRY && process.env.JD_TRY === 'true') { - $.log('\n遇到问题请先看脚本内注释;解决不了在联系我https://t.me/dylan_jdpro\n'); + //if (process.env.JD_TRY && process.env.JD_TRY === 'true') { + $.log('\n遇到问题请先看脚本内注释;解决不了可联系https://t.me/dylan_jdpro\n'); await requireConfig() if (!$.cookiesArr[0]) { $.msg($.name, '【提示】请先获取京东账号一cookie\n直接使用NobyDa的京东签到获取', 'https://bean.m.jd.com/', { @@ -203,12 +207,12 @@ let args_xh = { await totalBean(); console.log(`\n开始【京东账号${$.index}】${$.nickName || $.UserName}\n`); $.except = false; - if(args_xh.except.includes($.UserName)){ + if (args_xh.except.includes($.UserName)) { console.log(`跳过账号:${$.nickName || $.UserName}`) $.except = true; continue } - if(!$.isLogin){ + if (!$.isLogin) { $.msg($.name, `【提示】cookie已失效`, `京东账号${$.index} ${$.nickName || $.UserName}\n请重新登录获取\nhttps://bean.m.jd.com/bean/signIndex.action`, { "open-url": "https://bean.m.jd.com/bean/signIndex.action" }); @@ -221,27 +225,27 @@ let args_xh = { $.nowPage = 1; $.nowItem = 1; $.retrynum = 0 - $.jda='__jda='+_jda('1xxxxxxxx.164xxxxxxxxxxxxxxxxxxx.164xxxxxxx.165xxxxxx.165xxxxxx.1xx') + $.jda = '__jda=' + _jda('1xxxxxxxx.164xxxxxxxxxxxxxxxxxxx.164xxxxxxx.165xxxxxx.165xxxxxx.1xx') if (!args_xh.unified) { trialActivityIdList = [] trialActivityTitleList = [] } $.isLimit = false; // 获取tabList的,不知道有哪些的把这里的注释解开跑一遍就行了 - //await try_tabList(); + //await try_tabList(); // return; $.isForbidden = false $.wrong = false size = 1 - while(trialActivityIdList.length < args_xh.maxLength && $.retrynum < 3){ - if($.nowTabIdIndex === args_xh.tabId.length){ + while (trialActivityIdList.length < args_xh.maxLength && $.retrynum < 3) { + if ($.nowTabIdIndex === args_xh.tabId.length) { console.log(`tabId组已遍历完毕,不在获取商品\n`); break; } else { await try_feedsList(args_xh.tabId[$.nowTabIdIndex], $.nowPage) //获取对应tabId的试用页面 } - if(trialActivityIdList.length < args_xh.maxLength){ + if (trialActivityIdList.length < args_xh.maxLength) { console.log(`间隔等待中,请等待3秒 \n`) await $.wait(3000); } @@ -249,12 +253,12 @@ let args_xh = { if ($.isForbidden === false && $.isLimit === false) { console.log(`稍后将执行试用申请,请等待 2 秒\n`) await $.wait(2000); - for(let i = 0; i < trialActivityIdList.length && $.isLimit === false; i++){ - if($.isLimit){ + for (let i = 0; i < trialActivityIdList.length && $.isLimit === false; i++) { + if ($.isLimit) { console.log("试用上限") break } - if($.isForbidden){console.log('403了,跳出');break} + if ($.isForbidden) { console.log('403了,跳出'); break } await try_apply(trialActivityTitleList[i], trialActivityIdList[i]) //console.log(`间隔等待中,请等待 ${args_xh.applyInterval} ms\n`) const waitTime = generateRandomInteger(args_xh.applyInterval, 9000); @@ -272,8 +276,8 @@ let args_xh = { await showMsg() } } - if($.isNode()){ - if($.index % args_xh.sendNum === 0){ + if ($.isNode()) { + if ($.index % args_xh.sendNum === 0) { $.sentNum++; console.log(`正在进行第 ${$.sentNum} 次发送通知,发送数量:${args_xh.sendNum}`) await $.notify.sendNotify(`${$.name}`, `${notifyMsg}`) @@ -281,16 +285,16 @@ let args_xh = { } } } - if($.isNode() && $.except === false){ - if(($.cookiesArr.length - ($.sentNum * args_xh.sendNum)) < args_xh.sendNum && notifyMsg.length != 0) { + if ($.isNode() && $.except === false) { + if (($.cookiesArr.length - ($.sentNum * args_xh.sendNum)) < args_xh.sendNum && notifyMsg.length != 0) { console.log(`正在进行最后一次发送通知,发送数量:${($.cookiesArr.length - ($.sentNum * args_xh.sendNum))}`) await $.notify.sendNotify(`${$.name}`, `${notifyMsg}`) notifyMsg = ""; } } - } else { - console.log(`\n您未设置变量export JD_TRY="true"运行【京东试用】脚本, 结束运行!\n`) - } + //} else { + //console.log(`\n您未设置变量export JD_TRY="true"运行【京东试用】脚本, 结束运行!\n`) + // } })().catch((e) => { console.error(`❗️ ${$.name} 运行错误!\n${e}`) }).finally(() => $.done()) @@ -311,9 +315,9 @@ function requireConfig() { //IOS等用户直接用NobyDa的jd $.cookie $.cookiesArr = [$.getdata('CookieJD'), $.getdata('CookieJD2'), ...jsonParse($.getdata('CookiesJD') || "[]").map(item => item.cookie)].filter(item => !!item); } - for(let keyWord of $.innerKeyWords) args_xh.titleFilters.push(keyWord) + for (let keyWord of $.innerKeyWords) args_xh.titleFilters.push(keyWord) console.log(`共${$.cookiesArr.length}个京东账号\n`) - if(args_xh.env){ + if (args_xh.env) { console.log('=========环境变量配置如下=========') console.log(`env: ${typeof args_xh.env}, ${args_xh.env}`) console.log(`except: ${typeof args_xh.except}, ${args_xh.except}`) @@ -347,9 +351,9 @@ function try_tabList() { }); let option = taskurl_xh('newtry', 'try_tabList', body) $.post(option, (err, resp, data) => { - try{ - if(err){ - if(JSON.stringify(err) === `\"Response code 403 (Forbidden)\"`){ + try { + if (err) { + if (JSON.stringify(err) === `\"Response code 403 (Forbidden)\"`) { $.isForbidden = true console.log('账号被京东服务器风控,不再请求该帐号') } else { @@ -386,12 +390,12 @@ function try_feedsList(tabId, page) { }); let option = taskurl_xh('newtry', 'try_feedsList', body) $.post(option, (err, resp, data) => { - try{ - if(err){ - if(JSON.stringify(err) === `\"Response code 403 (Forbidden)\"`){ - console.log(`请求失败,第 ${$.retrynum+1} 次重试`) + try { + if (err) { + if (JSON.stringify(err) === `\"Response code 403 (Forbidden)\"`) { + console.log(`请求失败,第 ${$.retrynum + 1} 次重试`) $.retrynum++ - if($.retrynum === 3) {$.isForbidden = true;$.log('多次尝试失败,换个时间再试!')} + if ($.retrynum === 3) { $.isForbidden = true; $.log('多次尝试失败,换个时间再试!') } } else { console.log(JSON.stringify(err)) console.log(`${$.name} API请求失败,请检查网路重试`) @@ -428,7 +432,7 @@ function try_feedsList(tabId, page) { args_xh.printLog ? console.log('商品被过滤,该商品是种草官专属') : '' $.isPush = false; break; - } else if(itemTag.tagType === 5){ + } else if (itemTag.tagType === 5) { args_xh.printLog ? console.log('商品被跳过,该商品是付费试用!') : '' $.isPush = false; break; @@ -460,9 +464,9 @@ function try_feedsList(tabId, page) { args_xh.printLog ? console.log(`商品被过滤,含有关键词 ${tempKeyword}\n`) : '' } else { args_xh.printLog ? console.log(`商品通过,加入试用组,trialActivityId为${item.trialActivityId}\n`) : '' - if (trialActivityIdList.indexOf(item.trialActivityId) === -1){ - trialActivityIdList.push(item.trialActivityId) - trialActivityTitleList.push(item.skuTitle) + if (trialActivityIdList.indexOf(item.trialActivityId) === -1) { + trialActivityIdList.push(item.trialActivityId) + trialActivityTitleList.push(item.skuTitle) } } } @@ -479,7 +483,7 @@ function try_feedsList(tabId, page) { $.nowPage = 1; $.nowItem = 1; } - $.retrynum = 0 + $.retrynum = 0 } else { console.log(`💩 获得试用列表失败: ${data.message}`) } @@ -502,12 +506,12 @@ function try_apply(title, activityId) { "activityId": activityId, "previewTime": "" }); - $.h5st =await _0x1eaf20(body) + $.h5st = await _0x550607(body); let option = taskurl_xh('newtry', 'try_apply', body) $.get(option, (err, resp, data) => { - try{ - if(err){ - if(JSON.stringify(err) === `\"Response code 403 (Forbidden)\"`){ + try { + if (err) { + if (JSON.stringify(err) === `\"Response code 403 (Forbidden)\"`) { $.isForbidden = true console.log('账号被京东服务器风控,不再请求该帐号') } else { @@ -547,7 +551,7 @@ function try_apply(title, activityId) { } function try_MyTrials(page, selected) { - + return new Promise((resolve, reject) => { switch (selected) { case 1: @@ -569,7 +573,7 @@ function try_MyTrials(page, selected) { 'origin': 'https://prodev.m.jd.com', 'User-Agent': 'jdapp;iPhone;10.3.4;;;M/5.0;appBuild/167945;jdSupportDarkMode/1;;;Mozilla/5.0 (iPhone; CPU iPhone OS 15_2_1 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Mobile/15E148;supportJDSHWK/1;', 'referer': 'https://prodev.m.jd.com/', - 'cookie': $.cookie+$.jda + 'cookie': $.cookie + $.jda }, } $.post(options, (err, resp, data) => { @@ -622,7 +626,7 @@ function taskurl_xh(appid, functionId, body = JSON.stringify({})) { }, } - } +} async function showMsg() { let message = ``; @@ -716,23 +720,24 @@ function _jda(format = 'xxxxxxxxxxxxxxxxxxxx') { return jdaid; }); } - const generateRandomInteger = (min, max = 0) => { - if (min > max) { - let temp = min; - min = max; - max = temp; - } - var Range = max - min; - var Rand = Math.random(); - return min + Math.round(Rand * Range); - }; - - function getExtract(array) { - const random = (min, max) => Math.floor(Math.random() * (max - min) + min); - let index=random(0, array.length); - return array.splice(index, 1); +const generateRandomInteger = (min, max = 0) => { + if (min > max) { + let temp = min; + min = max; + max = temp; + } + var Range = max - min; + var Rand = Math.random(); + return min + Math.round(Rand * Range); +}; + +function getExtract(array) { + const random = (min, max) => Math.floor(Math.random() * (max - min) + min); + let index = random(0, array.length); + return array.splice(index, 1); } -;var encode_version = 'jsjiami.com.v5', frrqi = '__0xe7b88', __0xe7b88=['\x64\x38\x4f\x31\x4f\x51\x3d\x3d','\x77\x71\x38\x57\x77\x71\x73\x3d','\x77\x6f\x4d\x4a\x4a\x67\x3d\x3d','\x61\x43\x70\x35\x59\x73\x4b\x4b','\x77\x34\x59\x49\x61\x6d\x72\x44\x73\x67\x3d\x3d','\x54\x63\x4f\x6f\x4e\x38\x4b\x54\x64\x51\x3d\x3d','\x77\x6f\x51\x38\x77\x6f\x73\x3d','\x77\x34\x4e\x73\x55\x44\x52\x36','\x77\x70\x41\x77\x77\x72\x70\x41\x4e\x77\x3d\x3d','\x77\x37\x66\x44\x72\x6b\x4c\x43\x73\x32\x49\x3d','\x77\x6f\x6c\x67\x55\x4d\x4b\x39\x77\x6f\x4d\x3d','\x47\x63\x4f\x52\x4c\x77\x3d\x3d','\x50\x55\x37\x43\x6e\x47\x7a\x43\x6a\x55\x51\x57\x77\x34\x45\x64','\x53\x63\x4b\x44\x77\x72\x38\x3d','\x42\x4d\x4f\x49\x4d\x48\x4a\x71','\x56\x38\x4b\x31\x44\x63\x4b\x78\x42\x51\x3d\x3d','\x77\x34\x62\x44\x76\x57\x76\x43\x75\x47\x51\x3d','\x77\x36\x67\x49\x44\x46\x30\x6f','\x65\x69\x54\x43\x72\x51\x3d\x3d','\x77\x35\x4a\x64\x47\x4d\x4b\x47\x77\x70\x34\x3d','\x77\x37\x44\x43\x67\x38\x4b\x39','\x77\x37\x73\x46\x56\x33\x7a\x44\x67\x51\x3d\x3d','\x77\x72\x68\x70\x77\x35\x51\x3d','\x77\x36\x38\x6e\x42\x47\x45\x43\x43\x6b\x49\x53\x77\x70\x67\x3d','\x54\x38\x4b\x66\x77\x72\x4a\x63\x56\x73\x4f\x54\x77\x71\x49\x6b\x77\x37\x6e\x44\x6e\x46\x6e\x44\x76\x31\x77\x6b','\x35\x34\x6d\x4a\x35\x70\x36\x76\x35\x59\x79\x79\x37\x37\x36\x73\x77\x72\x70\x6a\x35\x4c\x36\x4f\x35\x61\x36\x4f\x35\x70\x2b\x66\x35\x62\x36\x45\x35\x36\x69\x71\x37\x37\x32\x46\x36\x4c\x2b\x4d\x36\x4b\x36\x73\x35\x70\x61\x2f\x35\x6f\x79\x68\x35\x6f\x71\x6e\x35\x4c\x71\x6f\x35\x35\x6d\x53\x35\x62\x61\x69\x35\x4c\x36\x45','\x35\x59\x71\x30\x36\x5a\x75\x52\x35\x34\x6d\x6d\x35\x70\x36\x41\x35\x59\x79\x4a\x37\x37\x36\x6f\x77\x35\x46\x45\x35\x4c\x32\x78\x35\x61\x32\x4d\x35\x70\x32\x4f\x35\x62\x32\x37\x35\x36\x71\x50','\x66\x4d\x4f\x48\x52\x51\x58\x44\x69\x41\x3d\x3d','\x77\x71\x7a\x43\x72\x6a\x48\x43\x71\x6a\x34\x3d','\x4b\x79\x37\x43\x71\x44\x62\x44\x67\x41\x3d\x3d','\x66\x44\x70\x4e\x61\x4d\x4b\x6b','\x4c\x4d\x4f\x71\x42\x46\x5a\x78','\x77\x37\x37\x44\x6d\x47\x58\x43\x68\x32\x49\x3d','\x77\x36\x37\x44\x71\x4d\x4b\x44\x77\x6f\x66\x44\x6d\x77\x3d\x3d','\x56\x73\x4f\x34\x4d\x4d\x4b\x4e\x61\x67\x3d\x3d','\x77\x35\x70\x75\x58\x41\x39\x47\x77\x70\x37\x43\x6c\x38\x4b\x49\x4d\x38\x4b\x31\x64\x4d\x4f\x31\x77\x70\x7a\x43\x76\x58\x76\x44\x70\x38\x4f\x49\x55\x73\x4f\x6c\x42\x6b\x67\x59\x77\x37\x73\x55\x53\x54\x68\x65\x77\x70\x4a\x63\x64\x67\x59\x3d','\x77\x37\x58\x43\x6a\x55\x2f\x44\x69\x4d\x4b\x62','\x47\x6b\x37\x44\x6f\x4d\x4f\x7a\x77\x34\x6e\x43\x72\x52\x70\x4a\x77\x70\x45\x3d','\x77\x37\x33\x43\x6a\x38\x4b\x75\x4a\x30\x37\x43\x74\x6d\x6f\x73\x65\x43\x54\x43\x6c\x38\x4b\x4d\x53\x56\x34\x78\x47\x63\x4f\x58\x5a\x63\x4f\x61','\x77\x36\x30\x68\x56\x51\x3d\x3d','\x77\x6f\x4d\x72\x42\x6b\x38\x62\x77\x70\x59\x3d','\x5a\x63\x4b\x7a\x4b\x63\x4b\x72\x4c\x55\x6c\x57\x77\x72\x33\x44\x69\x6e\x50\x44\x6b\x38\x4b\x58\x77\x37\x6c\x59\x51\x4d\x4b\x48\x63\x41\x49\x43\x77\x35\x64\x30\x47\x48\x33\x44\x68\x4d\x4b\x52\x77\x37\x48\x44\x6c\x63\x4b\x51\x77\x70\x44\x44\x71\x63\x4b\x34\x77\x34\x68\x6b\x77\x72\x41\x4e\x77\x72\x31\x6f\x77\x34\x46\x78\x4d\x73\x4b\x37\x77\x37\x7a\x44\x6b\x33\x66\x44\x76\x38\x4b\x5a\x77\x36\x74\x69\x77\x35\x48\x43\x67\x73\x4f\x41\x66\x68\x54\x44\x67\x77\x52\x42\x77\x72\x37\x44\x6c\x6b\x67\x79\x4f\x73\x4f\x54\x46\x63\x4b\x47\x4c\x32\x76\x43\x6f\x4d\x4b\x57\x64\x73\x4b\x4b\x77\x6f\x67\x59\x64\x4d\x4b\x6d\x77\x6f\x2f\x43\x6a\x63\x4b\x4c\x77\x70\x73\x62\x77\x70\x2f\x44\x67\x38\x4f\x72\x4e\x73\x4f\x7a\x77\x36\x56\x50\x77\x36\x45\x6a\x59\x38\x4b\x51\x45\x30\x52\x32\x77\x6f\x76\x43\x69\x52\x33\x44\x68\x48\x37\x44\x6b\x43\x48\x44\x70\x52\x4c\x43\x69\x63\x4b\x4a\x57\x41\x66\x43\x67\x6b\x49\x44\x77\x34\x77\x73\x77\x71\x4e\x54\x77\x70\x66\x43\x75\x63\x4f\x78\x77\x70\x50\x43\x73\x30\x70\x67\x77\x71\x52\x78\x77\x35\x63\x62\x77\x34\x66\x43\x67\x30\x58\x44\x70\x32\x64\x43\x4e\x56\x52\x50\x4e\x63\x4b\x57\x77\x34\x62\x44\x76\x63\x4b\x72\x49\x68\x56\x35\x63\x48\x62\x44\x6d\x38\x4b\x2f\x77\x34\x67\x37\x4c\x73\x4b\x68\x58\x4d\x4f\x77\x77\x71\x4c\x43\x6a\x4d\x4b\x4f\x53\x6b\x37\x43\x68\x4d\x4f\x4d\x50\x33\x4c\x43\x6c\x63\x4b\x33\x77\x34\x78\x4b\x77\x37\x33\x44\x71\x73\x4b\x4b\x77\x72\x55\x6f\x57\x73\x4b\x30\x4c\x73\x4b\x76\x77\x35\x64\x6c\x45\x56\x33\x44\x70\x56\x6c\x31\x77\x37\x2f\x43\x6b\x73\x4b\x47\x4d\x73\x4f\x57\x43\x63\x4b\x46\x77\x71\x5a\x48\x42\x38\x4f\x44\x77\x34\x58\x43\x67\x52\x44\x44\x72\x63\x4b\x68\x77\x34\x44\x44\x6b\x7a\x33\x44\x70\x67\x48\x44\x67\x73\x4b\x66\x57\x68\x33\x44\x6d\x32\x63\x68\x42\x6a\x74\x54\x77\x6f\x35\x51\x52\x4d\x4f\x4a\x77\x37\x66\x44\x6f\x4d\x4b\x73\x64\x38\x4b\x4a\x77\x72\x5a\x63\x77\x6f\x78\x66\x47\x38\x4b\x32\x77\x71\x6c\x62\x77\x37\x74\x77\x77\x36\x51\x6b\x77\x6f\x4a\x54\x77\x71\x62\x43\x71\x4d\x4b\x38\x47\x46\x2f\x44\x6c\x4d\x4f\x48\x77\x71\x76\x44\x69\x31\x58\x43\x6e\x63\x4f\x44\x4f\x4d\x4b\x68\x63\x6d\x48\x43\x67\x4d\x4b\x35\x65\x63\x4f\x2b\x48\x73\x4b\x4c\x77\x35\x62\x44\x70\x4d\x4f\x6b\x66\x53\x51\x75\x77\x72\x78\x39\x77\x70\x37\x44\x6e\x73\x4f\x55\x77\x6f\x6b\x50\x45\x33\x46\x67\x45\x4d\x4f\x66\x77\x6f\x76\x44\x72\x4d\x4f\x41\x4b\x41\x3d\x3d','\x77\x37\x33\x43\x6e\x4d\x4b\x71\x49\x6c\x48\x43\x76\x48\x38\x78\x64\x44\x6a\x43\x70\x73\x4f\x54\x54\x30\x77\x71\x45\x51\x3d\x3d','\x77\x36\x45\x63\x77\x36\x7a\x44\x73\x43\x73\x3d','\x77\x71\x50\x44\x6f\x41\x46\x71\x77\x34\x31\x6c\x57\x32\x64\x48','\x5a\x4d\x4b\x4e\x65\x4d\x4f\x38\x77\x35\x49\x3d','\x77\x6f\x45\x36\x77\x71\x35\x4d\x77\x34\x63\x3d','\x58\x30\x54\x44\x75\x67\x3d\x3d','\x59\x45\x5a\x57\x77\x36\x50\x43\x67\x77\x3d\x3d','\x77\x72\x66\x43\x68\x77\x64\x46\x53\x51\x3d\x3d','\x77\x37\x59\x4c\x77\x35\x48\x44\x72\x52\x6b\x3d','\x59\x63\x4b\x63\x61\x63\x4f\x37\x77\x37\x55\x3d','\x5a\x54\x70\x46\x63\x73\x4b\x4a\x54\x54\x33\x44\x68\x41\x3d\x3d','\x77\x70\x49\x68\x77\x70\x74\x62\x77\x37\x67\x3d','\x77\x6f\x55\x63\x62\x51\x3d\x3d','\x35\x59\x6d\x5a\x36\x5a\x71\x4d\x35\x34\x69\x4e\x35\x70\x32\x77\x35\x59\x2b\x58\x37\x37\x36\x64\x77\x71\x73\x4c\x35\x4c\x2b\x65\x35\x61\x79\x36\x35\x70\x32\x68\x35\x62\x79\x51\x35\x36\x75\x50','\x52\x44\x4c\x43\x6b\x33\x74\x6f','\x77\x6f\x72\x43\x72\x54\x2f\x43\x6b\x54\x77\x3d','\x62\x38\x4b\x6c\x77\x70\x56\x39\x55\x51\x3d\x3d','\x55\x31\x74\x54\x77\x35\x58\x43\x71\x67\x3d\x3d','\x51\x55\x54\x44\x76\x73\x4f\x52','\x77\x6f\x6e\x44\x6b\x43\x63\x3d','\x59\x6b\x68\x68','\x36\x49\x79\x46\x35\x59\x2b\x4d\x35\x61\x53\x5a\x36\x4c\x57\x61'];(function(_0x5f256f,_0x41abc8){var _0x573632=function(_0x41f72a){while(--_0x41f72a){_0x5f256f['push'](_0x5f256f['shift']());}};var _0x494e45=function(){var _0x490ced={'data':{'key':'cookie','value':'timeout'},'setCookie':function(_0xc58479,_0x4f9bbe,_0x128b0f,_0xe838b4){_0xe838b4=_0xe838b4||{};var _0xe78cb7=_0x4f9bbe+'='+_0x128b0f;var _0x1c503b=0x0;for(var _0x1c503b=0x0,_0x503698=_0xc58479['length'];_0x1c503b<_0x503698;_0x1c503b++){var _0x45a0d1=_0xc58479[_0x1c503b];_0xe78cb7+=';\x20'+_0x45a0d1;var _0x3491d6=_0xc58479[_0x45a0d1];_0xc58479['push'](_0x3491d6);_0x503698=_0xc58479['length'];if(_0x3491d6!==!![]){_0xe78cb7+='='+_0x3491d6;}}_0xe838b4['cookie']=_0xe78cb7;},'removeCookie':function(){return'dev';},'getCookie':function(_0x2ede2d,_0x8528fc){_0x2ede2d=_0x2ede2d||function(_0x21f491){return _0x21f491;};var _0x516b4d=_0x2ede2d(new RegExp('(?:^|;\x20)'+_0x8528fc['replace'](/([.$?*|{}()[]\/+^])/g,'$1')+'=([^;]*)'));var _0x212c6c=function(_0x554d44,_0x54948c){_0x554d44(++_0x54948c);};_0x212c6c(_0x573632,_0x41abc8);return _0x516b4d?decodeURIComponent(_0x516b4d[0x1]):undefined;}};var _0x39c8bd=function(){var _0x4139c9=new RegExp('\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*[\x27|\x22].+[\x27|\x22];?\x20*}');return _0x4139c9['test'](_0x490ced['removeCookie']['toString']());};_0x490ced['updateCookie']=_0x39c8bd;var _0x5c34f4='';var _0x2803d9=_0x490ced['updateCookie']();if(!_0x2803d9){_0x490ced['setCookie'](['*'],'counter',0x1);}else if(_0x2803d9){_0x5c34f4=_0x490ced['getCookie'](null,'counter');}else{_0x490ced['removeCookie']();}};_0x494e45();}(__0xe7b88,0x1e3));var _0x131b=function(_0xdc0123,_0x1c3078){_0xdc0123=_0xdc0123-0x0;var _0x3d8138=__0xe7b88[_0xdc0123];if(_0x131b['initialized']===undefined){(function(){var _0x57e822=typeof window!=='undefined'?window:typeof process==='object'&&typeof require==='function'&&typeof global==='object'?global:this;var _0x5153ad='ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=';_0x57e822['atob']||(_0x57e822['atob']=function(_0x1adb8d){var _0x2d51f8=String(_0x1adb8d)['replace'](/=+$/,'');for(var _0x50caed=0x0,_0x401165,_0x54cfa1,_0x1290ef=0x0,_0x1db91b='';_0x54cfa1=_0x2d51f8['charAt'](_0x1290ef++);~_0x54cfa1&&(_0x401165=_0x50caed%0x4?_0x401165*0x40+_0x54cfa1:_0x54cfa1,_0x50caed++%0x4)?_0x1db91b+=String['fromCharCode'](0xff&_0x401165>>(-0x2*_0x50caed&0x6)):0x0){_0x54cfa1=_0x5153ad['indexOf'](_0x54cfa1);}return _0x1db91b;});}());var _0x3f1e25=function(_0x1bd28c,_0xaee3c8){var _0x1da3cb=[],_0xedcee7=0x0,_0x1860bf,_0xd33293='',_0x33b241='';_0x1bd28c=atob(_0x1bd28c);for(var _0x12b8fb=0x0,_0x4282ff=_0x1bd28c['length'];_0x12b8fb<_0x4282ff;_0x12b8fb++){_0x33b241+='%'+('00'+_0x1bd28c['charCodeAt'](_0x12b8fb)['toString'](0x10))['slice'](-0x2);}_0x1bd28c=decodeURIComponent(_0x33b241);for(var _0x1ba686=0x0;_0x1ba686<0x100;_0x1ba686++){_0x1da3cb[_0x1ba686]=_0x1ba686;}for(_0x1ba686=0x0;_0x1ba686<0x100;_0x1ba686++){_0xedcee7=(_0xedcee7+_0x1da3cb[_0x1ba686]+_0xaee3c8['charCodeAt'](_0x1ba686%_0xaee3c8['length']))%0x100;_0x1860bf=_0x1da3cb[_0x1ba686];_0x1da3cb[_0x1ba686]=_0x1da3cb[_0xedcee7];_0x1da3cb[_0xedcee7]=_0x1860bf;}_0x1ba686=0x0;_0xedcee7=0x0;for(var _0x2abf77=0x0;_0x2abf77<_0x1bd28c['length'];_0x2abf77++){_0x1ba686=(_0x1ba686+0x1)%0x100;_0xedcee7=(_0xedcee7+_0x1da3cb[_0x1ba686])%0x100;_0x1860bf=_0x1da3cb[_0x1ba686];_0x1da3cb[_0x1ba686]=_0x1da3cb[_0xedcee7];_0x1da3cb[_0xedcee7]=_0x1860bf;_0xd33293+=String['fromCharCode'](_0x1bd28c['charCodeAt'](_0x2abf77)^_0x1da3cb[(_0x1da3cb[_0x1ba686]+_0x1da3cb[_0xedcee7])%0x100]);}return _0xd33293;};_0x131b['rc4']=_0x3f1e25;_0x131b['data']={};_0x131b['initialized']=!![];}var _0x1c6d82=_0x131b['data'][_0xdc0123];if(_0x1c6d82===undefined){if(_0x131b['once']===undefined){var _0x273987=function(_0x2f3283){this['rc4Bytes']=_0x2f3283;this['states']=[0x1,0x0,0x0];this['newState']=function(){return'newState';};this['firstState']='\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*';this['secondState']='[\x27|\x22].+[\x27|\x22];?\x20*}';};_0x273987['prototype']['checkState']=function(){var _0x4dc851=new RegExp(this['firstState']+this['secondState']);return this['runState'](_0x4dc851['test'](this['newState']['toString']())?--this['states'][0x1]:--this['states'][0x0]);};_0x273987['prototype']['runState']=function(_0x17ccdf){if(!Boolean(~_0x17ccdf)){return _0x17ccdf;}return this['getState'](this['rc4Bytes']);};_0x273987['prototype']['getState']=function(_0x4e20aa){for(var _0x2c6338=0x0,_0x43f207=this['states']['length'];_0x2c6338<_0x43f207;_0x2c6338++){this['states']['push'](Math['round'](Math['random']()));_0x43f207=this['states']['length'];}return _0x4e20aa(this['states'][0x0]);};new _0x273987(_0x131b)['checkState']();_0x131b['once']=!![];}_0x3d8138=_0x131b['rc4'](_0x3d8138,_0x1c3078);_0x131b['data'][_0xdc0123]=_0x3d8138;}else{_0x3d8138=_0x1c6d82;}return _0x3d8138;};function _0x1eaf20(_0x20dc8b){var _0x1acb63={'NSNsd':_0x131b('0x0','\x4e\x26\x55\x72'),'oVeMO':_0x131b('0x1','\x6b\x76\x65\x63'),'zhFdh':_0x131b('0x2','\x24\x6d\x38\x6d'),'VwCgA':_0x131b('0x3','\x6f\x35\x58\x51'),'KGEuV':_0x131b('0x4','\x4d\x42\x5b\x6a'),'YDsnV':_0x131b('0x5','\x4e\x26\x55\x72'),'jGtJh':_0x131b('0x6','\x49\x21\x4e\x79'),'isssW':_0x131b('0x7','\x6f\x35\x58\x51')};let _0x4c28a7={'url':_0x1acb63[_0x131b('0x8','\x73\x25\x56\x58')],'body':JSON[_0x131b('0x9','\x6d\x44\x28\x6d')]({'appId':_0x1acb63[_0x131b('0xa','\x62\x63\x77\x76')],'body':{'functionId':_0x1acb63[_0x131b('0xb','\x28\x65\x50\x43')],'body':_0x20dc8b,'t':Date[_0x131b('0xc','\x25\x79\x56\x63')](),'appid':_0x1acb63[_0x131b('0xd','\x4c\x61\x31\x44')],'client':_0x1acb63[_0x131b('0xe','\x77\x41\x26\x71')],'clientVersion':_0x1acb63[_0x131b('0xf','\x73\x25\x56\x58')]},'callbackAll':![],'ua':_0x1acb63[_0x131b('0x10','\x62\x63\x77\x76')],'pin':$[_0x131b('0x11','\x7a\x47\x66\x47')]}),'headers':{'Content-Type':_0x1acb63[_0x131b('0x12','\x28\x65\x50\x43')]}};return new Promise(_0x18b575=>{var _0x2b39cb={'RyYYC':function _0x47e909(_0x524507,_0x5b5bcc){return _0x524507!==_0x5b5bcc;},'JIMHf':_0x131b('0x13','\x6d\x42\x73\x75'),'ejFQh':_0x131b('0x14','\x25\x67\x76\x51')};if(_0x2b39cb[_0x131b('0x15','\x58\x21\x4e\x2a')](_0x2b39cb[_0x131b('0x16','\x73\x37\x33\x67')],_0x2b39cb[_0x131b('0x17','\x78\x65\x64\x48')])){w[c](_0x2b39cb[_0x131b('0x18','\x4c\x61\x31\x44')]);}else{$[_0x131b('0x19','\x25\x79\x56\x63')](_0x4c28a7,(_0x4b6d68,_0x55d9e1,_0x2b9e0b)=>{var _0x133e9a={'XcYbM':function _0x15a2b6(_0xcf2f03,_0x13bf74){return _0xcf2f03===_0x13bf74;},'UTWND':_0x131b('0x1a','\x6d\x44\x28\x6d'),'hzbxW':_0x131b('0x1b','\x4c\x61\x31\x44'),'qvxKO':_0x131b('0x1c','\x4e\x26\x55\x72'),'xcVJW':function _0x168bdb(_0x16c461,_0x214320){return _0x16c461===_0x214320;},'CRERJ':_0x131b('0x1d','\x59\x67\x30\x59'),'LrGBV':_0x131b('0x1e','\x28\x65\x50\x43'),'XbEjX':function _0x1d56c2(_0x2bea04,_0x481ad7){return _0x2bea04!==_0x481ad7;},'rAlYL':_0x131b('0x1f','\x2a\x52\x63\x61'),'hYjXw':function _0x5b4929(_0x209444,_0xf102dc){return _0x209444(_0xf102dc);}};if(_0x133e9a[_0x131b('0x20','\x7a\x47\x66\x47')](_0x133e9a[_0x131b('0x21','\x4b\x35\x64\x74')],_0x133e9a[_0x131b('0x22','\x59\x67\x30\x59')])){$[_0x131b('0x23','\x46\x75\x68\x6c')](_0x133e9a[_0x131b('0x24','\x4e\x26\x55\x72')]);}else{try{if(_0x4b6d68){if(_0x133e9a[_0x131b('0x25','\x46\x75\x68\x6c')](_0x133e9a[_0x131b('0x26','\x29\x4a\x49\x29')],_0x133e9a[_0x131b('0x27','\x50\x50\x57\x33')])){}else{cosnole[_0x131b('0x28','\x70\x47\x68\x51')](JSON[_0x131b('0x29','\x32\x57\x78\x28')](_0x4b6d68));}}else{if(_0x2b9e0b){}else{$[_0x131b('0x2a','\x78\x65\x64\x48')](_0x133e9a[_0x131b('0x2b','\x70\x47\x68\x51')]);}}}catch(_0x3db650){if(_0x133e9a[_0x131b('0x2c','\x49\x21\x4e\x79')](_0x133e9a[_0x131b('0x2d','\x29\x4a\x49\x29')],_0x133e9a[_0x131b('0x2e','\x4d\x42\x5b\x6a')])){if(_0x2b9e0b){}else{$[_0x131b('0x2f','\x58\x21\x4e\x2a')](_0x133e9a[_0x131b('0x30','\x37\x63\x4a\x55')]);}}else{console[_0x131b('0x31','\x6f\x35\x58\x51')](_0x3db650,_0x55d9e1);}}finally{_0x133e9a[_0x131b('0x32','\x4b\x35\x64\x74')](_0x18b575,_0x2b9e0b);}}});}});};(function(_0x43fe7e,_0x1fc52a,_0x13b5e1){var _0xdcd329=function(){var _0xe8f38b=!![];return function(_0x35d1c2,_0x143646){var _0x2787b3=_0xe8f38b?function(){if(_0x143646){var _0xbff8a9=_0x143646['apply'](_0x35d1c2,arguments);_0x143646=null;return _0xbff8a9;}}:function(){};_0xe8f38b=![];return _0x2787b3;};}();var _0x1c1b3d=_0xdcd329(this,function(){var _0x9c12ed=function(){return'\x64\x65\x76';},_0x263dd3=function(){return'\x77\x69\x6e\x64\x6f\x77';};var _0x10a05d=function(){var _0x5b96eb=new RegExp('\x5c\x77\x2b\x20\x2a\x5c\x28\x5c\x29\x20\x2a\x7b\x5c\x77\x2b\x20\x2a\x5b\x27\x7c\x22\x5d\x2e\x2b\x5b\x27\x7c\x22\x5d\x3b\x3f\x20\x2a\x7d');return!_0x5b96eb['\x74\x65\x73\x74'](_0x9c12ed['\x74\x6f\x53\x74\x72\x69\x6e\x67']());};var _0x86c128=function(){var _0x3c58eb=new RegExp('\x28\x5c\x5c\x5b\x78\x7c\x75\x5d\x28\x5c\x77\x29\x7b\x32\x2c\x34\x7d\x29\x2b');return _0x3c58eb['\x74\x65\x73\x74'](_0x263dd3['\x74\x6f\x53\x74\x72\x69\x6e\x67']());};var _0x1902b4=function(_0x462a03){var _0x576d89=~-0x1>>0x1+0xff%0x0;if(_0x462a03['\x69\x6e\x64\x65\x78\x4f\x66']('\x69'===_0x576d89)){_0x744bea(_0x462a03);}};var _0x744bea=function(_0x1a36d8){var _0x137b6b=~-0x4>>0x1+0xff%0x0;if(_0x1a36d8['\x69\x6e\x64\x65\x78\x4f\x66']((!![]+'')[0x3])!==_0x137b6b){_0x1902b4(_0x1a36d8);}};if(!_0x10a05d()){if(!_0x86c128()){_0x1902b4('\x69\x6e\x64\u0435\x78\x4f\x66');}else{_0x1902b4('\x69\x6e\x64\x65\x78\x4f\x66');}}else{_0x1902b4('\x69\x6e\x64\u0435\x78\x4f\x66');}});_0x1c1b3d();var _0xf08348={'UKEMT':_0x131b('0x33','\x61\x69\x57\x73'),'lJCsd':function _0x59f828(_0x2165bd,_0x2ca781){return _0x2165bd!==_0x2ca781;},'kHxbH':_0x131b('0x34','\x4d\x42\x5b\x6a'),'Lsmhc':function _0x24e2fc(_0x55c5c0,_0x3d6f5e){return _0x55c5c0===_0x3d6f5e;},'YTLoT':_0x131b('0x35','\x78\x65\x64\x48'),'JdbfJ':function _0x1d4848(_0x1638b3,_0x522b1e){return _0x1638b3+_0x522b1e;},'DKMpj':_0x131b('0x36','\x46\x65\x46\x40'),'sjefH':_0x131b('0x37','\x6b\x76\x65\x63')};_0x13b5e1='\x61\x6c';try{_0x13b5e1+=_0xf08348[_0x131b('0x38','\x65\x45\x59\x4c')];_0x1fc52a=encode_version;if(!(_0xf08348[_0x131b('0x39','\x73\x37\x33\x67')](typeof _0x1fc52a,_0xf08348[_0x131b('0x3a','\x37\x73\x66\x33')])&&_0xf08348[_0x131b('0x3b','\x7a\x47\x66\x47')](_0x1fc52a,_0xf08348[_0x131b('0x3c','\x70\x47\x68\x51')]))){_0x43fe7e[_0x13b5e1](_0xf08348[_0x131b('0x3d','\x29\x4a\x49\x29')]('\u5220\u9664',_0xf08348[_0x131b('0x3e','\x7a\x33\x29\x72')]));}}catch(_0x4724d6){_0x43fe7e[_0x13b5e1](_0xf08348[_0x131b('0x3f','\x59\x67\x30\x59')]);}}());;encode_version = 'jsjiami.com.v5'; + +;var encode_version = 'jsjiami.com.v5', phelg = '__0xe827e', __0xe827e=['\x41\x69\x42\x62','\x50\x47\x37\x44\x75\x51\x3d\x3d','\x35\x4c\x69\x2f\x36\x4c\x47\x61\x77\x72\x64\x4c\x58\x2b\x69\x2b\x72\x4f\x57\x5a\x6f\x4f\x61\x58\x6a\x65\x61\x4f\x67\x4f\x53\x37\x6d\x2b\x65\x71\x72\x65\x2b\x39\x72\x75\x69\x74\x67\x2b\x61\x69\x74\x2b\x61\x63\x75\x65\x69\x45\x6e\x65\x69\x34\x6b\x2b\x57\x50\x76\x4f\x57\x61\x73\x51\x3d\x3d','\x55\x31\x54\x43\x74\x4d\x4f\x6a\x64\x42\x6f\x3d','\x77\x71\x30\x30\x48\x38\x4f\x71\x53\x67\x3d\x3d','\x66\x63\x4f\x4b\x77\x36\x6b\x4b\x77\x37\x45\x3d','\x77\x70\x76\x44\x6f\x73\x4f\x6c\x77\x37\x4d\x51','\x63\x4d\x4b\x43\x77\x35\x6c\x71\x64\x41\x3d\x3d','\x45\x4d\x4b\x42\x54\x73\x4b\x76\x77\x71\x67\x3d','\x5a\x77\x59\x34','\x35\x4c\x71\x30\x36\x4c\x4b\x75\x77\x35\x4a\x33\x66\x4f\x69\x38\x67\x75\x57\x62\x73\x65\x61\x56\x74\x75\x61\x4f\x71\x4f\x53\x35\x6e\x4f\x65\x71\x73\x2b\x2b\x2f\x69\x4f\x69\x76\x71\x75\x61\x6a\x76\x65\x61\x66\x71\x75\x69\x46\x6e\x4f\x69\x35\x6f\x65\x57\x4f\x6c\x2b\x57\x61\x6a\x77\x3d\x3d','\x51\x32\x54\x43\x6a\x79\x30\x61\x63\x77\x3d\x3d','\x61\x38\x4f\x76\x46\x53\x73\x3d','\x5a\x38\x4b\x58\x77\x6f\x73\x3d','\x52\x4d\x4b\x53\x54\x51\x3d\x3d','\x66\x73\x4b\x58\x56\x51\x3d\x3d','\x50\x6d\x50\x43\x72\x41\x3d\x3d','\x35\x59\x69\x6a\x35\x4c\x2b\x4d\x35\x36\x53\x6e\x35\x59\x6d\x48\x37\x37\x79\x4a','\x36\x49\x79\x55\x35\x59\x2b\x64\x35\x61\x65\x34\x36\x4c\x53\x66','\x46\x57\x54\x44\x75\x51\x3d\x3d','\x77\x71\x6b\x76\x77\x71\x72\x43\x70\x46\x34\x3d','\x53\x63\x4f\x35\x4a\x7a\x7a\x44\x68\x51\x3d\x3d','\x77\x72\x6e\x44\x74\x69\x49\x6a\x77\x37\x45\x3d','\x77\x71\x46\x36\x4c\x38\x4f\x56\x77\x70\x45\x3d','\x5a\x30\x50\x43\x76\x73\x4f\x70\x77\x34\x77\x3d','\x51\x4d\x4b\x5a\x52\x79\x74\x67','\x77\x6f\x66\x44\x6f\x41\x51\x3d','\x4f\x38\x4f\x32\x77\x71\x58\x43\x75\x30\x64\x34\x77\x36\x73\x66\x48\x51\x3d\x3d','\x77\x6f\x58\x44\x74\x4d\x4f\x62\x77\x37\x55\x58','\x77\x36\x44\x43\x68\x63\x4b\x2b\x77\x70\x42\x44','\x41\x4d\x4f\x48\x77\x70\x67\x72\x56\x67\x3d\x3d','\x77\x36\x48\x44\x71\x38\x4b\x38','\x77\x36\x5a\x2b\x4e\x4d\x4b\x57\x45\x41\x3d\x3d','\x77\x70\x54\x43\x71\x4d\x4b\x72','\x77\x36\x5a\x57\x77\x72\x4e\x5a\x54\x77\x3d\x3d','\x77\x71\x64\x45\x42\x63\x4f\x50\x77\x71\x4d\x3d','\x77\x70\x44\x44\x73\x73\x4b\x2f\x61\x41\x3d\x3d','\x77\x35\x56\x49\x5a\x77\x3d\x3d','\x4f\x73\x4f\x46\x77\x71\x54\x43\x6b\x6d\x73\x3d','\x46\x33\x58\x43\x70\x54\x66\x43\x6b\x51\x3d\x3d','\x41\x58\x33\x43\x68\x51\x3d\x3d','\x54\x46\x76\x43\x6d\x43\x41\x66','\x49\x4d\x4b\x54\x54\x63\x4b\x54\x77\x71\x63\x3d','\x77\x37\x39\x78\x49\x73\x4b\x41\x44\x53\x76\x44\x6f\x77\x3d\x3d','\x77\x72\x78\x4a\x77\x34\x4e\x69\x77\x71\x45\x3d','\x77\x37\x68\x42\x43\x58\x35\x38','\x4c\x67\x39\x53\x77\x34\x6e\x43\x69\x67\x3d\x3d','\x77\x37\x74\x51\x46\x32\x52\x74','\x51\x48\x72\x43\x6e\x41\x3d\x3d','\x77\x36\x64\x65\x41\x67\x3d\x3d','\x35\x4c\x71\x36\x36\x4c\x47\x50\x77\x70\x76\x44\x73\x38\x4f\x6d\x36\x4c\x36\x51\x35\x5a\x69\x53\x35\x70\x65\x56\x35\x6f\x2b\x36\x35\x4c\x75\x41\x35\x36\x75\x7a\x37\x37\x32\x31\x36\x4b\x36\x46\x35\x71\x4b\x79\x35\x70\x79\x4a\x36\x49\x57\x78\x36\x4c\x71\x32\x35\x59\x2b\x72\x35\x5a\x69\x6d','\x4c\x73\x4b\x64\x77\x37\x77\x3d','\x66\x67\x63\x37\x45\x4d\x4b\x39\x77\x70\x6a\x43\x6b\x42\x58\x43\x68\x77\x3d\x3d','\x77\x70\x39\x38\x77\x34\x52\x70\x77\x72\x62\x44\x67\x45\x62\x43\x67\x4d\x4b\x73\x65\x4d\x4f\x55\x77\x37\x39\x58\x58\x51\x3d\x3d','\x35\x34\x6d\x35\x35\x70\x2b\x2f\x35\x59\x2b\x30\x37\x37\x32\x4e\x53\x63\x4f\x41\x35\x4c\x36\x49\x35\x61\x32\x53\x35\x70\x36\x76\x35\x62\x36\x4a\x35\x36\x6d\x4e\x37\x37\x79\x4a\x36\x4c\x36\x6b\x36\x4b\x32\x46\x35\x70\x61\x42\x35\x6f\x2b\x31\x35\x6f\x71\x44\x35\x4c\x69\x4a\x35\x35\x69\x56\x35\x62\x61\x67\x35\x4c\x2b\x41','\x35\x59\x75\x56\x36\x5a\x6d\x72\x35\x34\x75\x6d\x35\x70\x79\x73\x35\x59\x79\x67\x37\x37\x36\x68\x52\x63\x4f\x64\x35\x4c\x2b\x56\x35\x61\x36\x4e\x35\x70\x36\x6d\x35\x62\x2b\x6f\x35\x36\x71\x32','\x77\x6f\x35\x6e\x4c\x38\x4f\x55\x77\x6f\x77\x3d','\x77\x71\x58\x43\x69\x38\x4b\x77\x61\x48\x51\x3d','\x77\x72\x37\x43\x69\x38\x4b\x43\x58\x58\x67\x3d','\x41\x30\x37\x44\x68\x31\x51\x4f','\x41\x38\x4b\x48\x64\x73\x4b\x57\x77\x6f\x38\x3d','\x58\x73\x4f\x44\x49\x43\x76\x44\x68\x67\x3d\x3d','\x42\x4d\x4b\x58\x77\x37\x68\x54\x77\x35\x6b\x3d','\x4b\x55\x54\x44\x69\x47\x51\x72','\x77\x72\x76\x43\x76\x4d\x4f\x73\x50\x38\x4f\x63\x77\x36\x38\x4d\x51\x63\x4b\x65\x77\x34\x58\x44\x72\x51\x6e\x43\x69\x55\x7a\x44\x6d\x68\x5a\x38\x50\x73\x4f\x33\x58\x38\x4b\x54\x4c\x43\x44\x44\x6f\x79\x48\x44\x6e\x6e\x67\x78\x77\x36\x6f\x4d\x49\x63\x4b\x63\x77\x37\x4e\x35\x64\x73\x4f\x68\x65\x73\x4f\x6a\x77\x35\x41\x65\x77\x34\x62\x43\x75\x63\x4f\x59\x77\x71\x66\x44\x69\x38\x4b\x54\x42\x68\x68\x54\x55\x46\x6b\x46\x64\x73\x4b\x51\x77\x36\x56\x74\x4a\x63\x4f\x6f\x77\x34\x74\x68\x4c\x57\x6f\x3d','\x4a\x58\x66\x43\x6d\x67\x3d\x3d','\x77\x35\x6c\x30\x77\x37\x62\x43\x75\x6b\x77\x3d','\x77\x36\x56\x55\x45\x6d\x4e\x36\x50\x67\x3d\x3d','\x77\x35\x64\x35\x77\x72\x41\x3d','\x4a\x32\x6e\x43\x71\x77\x3d\x3d','\x77\x6f\x55\x59\x48\x4d\x4f\x64\x77\x37\x7a\x43\x6b\x67\x3d\x3d','\x77\x37\x6a\x43\x6c\x63\x4b\x32\x56\x41\x45\x48\x77\x35\x45\x58\x77\x71\x6a\x43\x74\x48\x67\x36\x77\x37\x46\x50\x65\x73\x4b\x39\x77\x35\x6a\x44\x70\x73\x4b\x49\x77\x6f\x35\x6e\x53\x4d\x4f\x7a\x77\x6f\x4c\x44\x6d\x4d\x4b\x4e\x77\x71\x50\x44\x68\x63\x4f\x32\x77\x37\x73\x42\x77\x36\x72\x44\x76\x55\x45\x63\x77\x36\x66\x44\x71\x73\x4b\x77\x43\x43\x6b\x5a\x55\x4d\x4b\x7a\x77\x35\x66\x43\x74\x6e\x5a\x56\x77\x71\x59\x77\x4c\x48\x7a\x43\x6b\x47\x58\x43\x72\x4d\x4b\x2b\x57\x33\x42\x4f\x49\x38\x4f\x30\x77\x34\x58\x44\x6a\x69\x66\x44\x74\x38\x4f\x42\x77\x70\x4c\x43\x76\x43\x6e\x44\x71\x52\x68\x4b\x49\x42\x51\x75\x77\x6f\x37\x44\x6e\x78\x33\x43\x70\x6c\x33\x44\x6f\x79\x73\x68\x42\x73\x4b\x70\x47\x73\x4b\x7a\x58\x30\x4d\x6a\x77\x34\x45\x6f\x77\x6f\x55\x64\x77\x36\x76\x43\x6b\x4d\x4f\x6b\x77\x6f\x6e\x44\x6a\x63\x4b\x70\x77\x36\x70\x2b\x64\x54\x73\x54\x57\x69\x4a\x68\x77\x6f\x58\x44\x6c\x63\x4b\x4f\x4b\x63\x4b\x47\x77\x37\x5a\x75\x4b\x56\x54\x44\x6f\x52\x34\x55\x46\x73\x4f\x35\x77\x6f\x6e\x44\x6f\x4d\x4f\x4d\x5a\x6d\x50\x44\x6c\x53\x67\x44\x77\x70\x78\x4b\x63\x57\x30\x30\x5a\x52\x6f\x46\x61\x73\x4f\x59\x77\x35\x45\x59\x4a\x38\x4f\x74\x77\x37\x37\x43\x76\x6a\x4e\x32\x77\x6f\x37\x44\x74\x38\x4f\x37\x59\x38\x4b\x73\x77\x6f\x63\x5a\x77\x36\x35\x6e\x4d\x73\x4b\x34\x49\x68\x2f\x43\x76\x4d\x4f\x4b\x47\x73\x4b\x57\x54\x43\x48\x43\x6b\x79\x54\x44\x70\x63\x4b\x4f\x77\x71\x30\x35\x4d\x78\x6a\x43\x69\x73\x4b\x73\x64\x41\x2f\x43\x75\x52\x6f\x69\x77\x36\x72\x43\x68\x73\x4b\x69\x77\x6f\x48\x44\x6d\x6d\x37\x44\x6a\x77\x77\x67\x77\x35\x5a\x4f\x42\x4d\x4b\x56\x46\x32\x49\x45\x42\x73\x4f\x41\x77\x72\x72\x43\x68\x42\x4c\x44\x69\x38\x4b\x56\x64\x31\x6e\x44\x69\x38\x4f\x4f\x77\x34\x54\x43\x6f\x38\x4b\x42\x77\x72\x76\x44\x69\x7a\x30\x63\x77\x36\x4c\x43\x67\x4d\x4f\x4f\x54\x63\x4f\x57\x77\x35\x2f\x44\x71\x31\x62\x44\x67\x38\x4f\x4a\x53\x73\x4f\x2f\x77\x35\x4c\x43\x75\x73\x4b\x30\x42\x79\x59\x7a\x4f\x56\x63\x73\x77\x71\x34\x6f\x46\x43\x50\x43\x74\x63\x4b\x32\x46\x63\x4b\x4d\x55\x6c\x34\x32\x65\x6d\x62\x43\x72\x73\x4b\x33\x77\x36\x44\x44\x76\x78\x31\x44\x77\x70\x38\x64\x77\x36\x6a\x44\x6e\x38\x4f\x35\x77\x35\x5a\x72\x77\x37\x4a\x48\x77\x36\x72\x44\x71\x6d\x34\x52\x4f\x4d\x4f\x6f\x66\x6b\x66\x44\x6e\x54\x44\x43\x71\x31\x62\x43\x6e\x73\x4b\x6f','\x77\x37\x78\x37\x47\x63\x4b\x52\x45\x42\x66\x44\x73\x53\x37\x44\x75\x4d\x4f\x71','\x77\x72\x48\x44\x6c\x38\x4b\x36\x77\x34\x38\x51\x77\x36\x4e\x79\x77\x34\x54\x44\x6c\x55\x6f\x38\x77\x71\x4e\x76\x4a\x4d\x4f\x32\x4b\x41\x3d\x3d','\x77\x37\x50\x44\x69\x63\x4b\x32\x51\x42\x51\x3d','\x55\x57\x48\x43\x67\x63\x4f\x32\x77\x35\x50\x44\x76\x63\x4b\x57\x45\x45\x30\x3d','\x65\x73\x4f\x6a\x45\x6a\x62\x44\x6d\x44\x58\x44\x72\x73\x4b\x53\x77\x71\x2f\x43\x68\x4d\x4f\x51\x4f\x78\x76\x43\x71\x44\x50\x43\x69\x31\x49\x37\x77\x6f\x51\x3d','\x77\x72\x7a\x43\x74\x63\x4f\x31\x4f\x38\x4f\x46\x77\x36\x6b\x3d','\x63\x73\x4b\x4d\x77\x36\x78\x7a\x63\x4d\x4b\x6c\x57\x77\x3d\x3d','\x47\x38\x4b\x42\x77\x70\x2f\x44\x70\x41\x3d\x3d','\x4b\x6e\x6a\x44\x70\x6d\x73\x6b','\x77\x35\x70\x33\x77\x6f\x78\x38\x63\x51\x3d\x3d','\x77\x35\x64\x6b\x77\x70\x70\x4f\x65\x46\x77\x72\x77\x35\x38\x3d','\x47\x6d\x66\x43\x6c\x38\x4f\x43\x77\x35\x66\x44\x6f\x38\x4f\x62','\x65\x38\x4f\x49\x77\x70\x6c\x6b\x51\x67\x3d\x3d','\x45\x7a\x42\x34\x77\x36\x58\x43\x74\x51\x3d\x3d','\x77\x6f\x4c\x44\x6f\x63\x4f\x57','\x49\x55\x37\x44\x75\x58\x59\x34','\x48\x4d\x4b\x4f\x77\x36\x62\x44\x75\x4d\x4b\x6e','\x77\x72\x37\x44\x67\x73\x4b\x71\x77\x37\x34\x7a','\x77\x36\x64\x47\x43\x73\x4b\x4f\x50\x77\x3d\x3d','\x63\x6c\x72\x43\x6c\x73\x4f\x4a\x56\x51\x3d\x3d','\x77\x6f\x52\x4f\x77\x36\x6c\x42\x77\x72\x38\x3d','\x65\x63\x4b\x47\x77\x34\x4e\x4f\x77\x34\x54\x43\x74\x43\x45\x3d','\x77\x71\x6a\x44\x72\x38\x4b\x4e\x77\x34\x55\x71\x55\x44\x72\x44\x6a\x38\x4b\x31','\x41\x38\x4f\x57\x77\x72\x4c\x43\x75\x32\x55\x3d','\x77\x6f\x6c\x77\x77\x35\x37\x43\x6a\x6d\x4d\x3d','\x77\x70\x2f\x43\x6b\x38\x4b\x79','\x77\x35\x4a\x57\x49\x38\x4b\x53\x4a\x67\x3d\x3d','\x77\x34\x52\x39\x77\x72\x68\x7a\x57\x41\x3d\x3d','\x77\x35\x74\x75\x77\x70\x4a\x75\x54\x77\x3d\x3d','\x56\x45\x72\x43\x74\x4d\x4f\x43\x77\x37\x67\x3d','\x56\x48\x55\x2f\x77\x35\x6e\x43\x6a\x41\x3d\x3d','\x77\x70\x52\x52\x77\x36\x72\x44\x70\x4d\x4f\x51','\x45\x38\x4f\x73\x77\x71\x41\x3d','\x48\x73\x4f\x64\x77\x6f\x63\x69\x57\x67\x3d\x3d','\x77\x72\x45\x39\x4c\x38\x4f\x66\x66\x51\x3d\x3d','\x77\x6f\x59\x36\x77\x70\x50\x43\x67\x6b\x67\x3d','\x77\x36\x52\x48\x41\x67\x3d\x3d','\x44\x31\x50\x43\x70\x41\x3d\x3d','\x77\x6f\x67\x67\x77\x72\x4d\x3d','\x77\x70\x42\x2b\x77\x34\x6e\x44\x67\x4d\x4f\x65\x55\x55\x68\x6a\x57\x67\x3d\x3d','\x4c\x38\x4b\x6d\x54\x4d\x4b\x33\x77\x71\x44\x44\x70\x6d\x41\x50\x4f\x73\x4f\x56\x77\x6f\x38\x4b\x77\x37\x56\x37','\x35\x34\x69\x44\x35\x70\x2b\x44\x35\x59\x32\x2f\x37\x37\x36\x38\x77\x71\x50\x43\x6a\x75\x53\x38\x6c\x2b\x57\x75\x73\x75\x61\x64\x6b\x75\x57\x2f\x69\x4f\x65\x6f\x6a\x75\x2b\x38\x74\x4f\x69\x2b\x6c\x4f\x69\x73\x68\x4f\x61\x55\x74\x4f\x61\x50\x6b\x75\x61\x49\x6d\x4f\x53\x34\x67\x4f\x65\x59\x74\x75\x57\x30\x73\x4f\x53\x2b\x6b\x77\x3d\x3d','\x77\x35\x30\x4e\x52\x67\x3d\x3d','\x52\x73\x4f\x35\x77\x72\x6b\x3d','\x77\x37\x64\x30\x64\x41\x3d\x3d','\x77\x37\x31\x51\x43\x51\x3d\x3d','\x65\x45\x7a\x43\x74\x41\x3d\x3d','\x77\x34\x4a\x37\x77\x72\x6c\x57\x59\x31\x59\x6b\x77\x34\x77\x57\x59\x6b\x33\x43\x72\x4d\x4f\x33\x4c\x56\x6c\x34\x77\x35\x66\x44\x71\x4d\x4b\x75\x77\x72\x49\x62\x77\x72\x6a\x43\x70\x55\x50\x43\x6a\x58\x6a\x43\x6e\x38\x4f\x2f\x77\x72\x44\x43\x71\x44\x54\x43\x72\x73\x4f\x38\x77\x71\x4c\x44\x69\x32\x76\x43\x6a\x4d\x4b\x2b\x77\x34\x74\x33\x77\x35\x76\x44\x76\x63\x4b\x43\x52\x33\x49\x79\x77\x71\x77\x3d','\x77\x37\x6e\x43\x67\x63\x4f\x38\x50\x38\x4f\x49\x46\x41\x66\x44\x6f\x4d\x4b\x75\x66\x58\x68\x2b\x55\x38\x4b\x59\x77\x35\x4a\x74\x4c\x6b\x48\x44\x75\x73\x4f\x4e\x43\x63\x4b\x73\x56\x31\x7a\x44\x6e\x32\x62\x44\x75\x38\x4f\x6d\x77\x72\x72\x44\x76\x41\x3d\x3d','\x56\x38\x4f\x65\x77\x70\x42\x70\x65\x51\x3d\x3d','\x4f\x73\x4f\x36\x77\x72\x73\x31','\x56\x32\x2f\x43\x67\x43\x55\x34','\x57\x6d\x50\x43\x6f\x73\x4f\x6f\x66\x77\x3d\x3d','\x49\x38\x4b\x71\x77\x35\x31\x72\x77\x35\x67\x3d','\x53\x6d\x2f\x44\x6d\x46\x76\x43\x70\x67\x3d\x3d','\x77\x6f\x77\x42\x77\x6f\x4c\x43\x75\x33\x6f\x3d','\x77\x6f\x52\x55\x42\x38\x4f\x4b\x77\x72\x55\x3d','\x4a\x73\x4b\x6c\x64\x4d\x4b\x71\x77\x6f\x38\x3d','\x77\x71\x44\x44\x69\x77\x51\x54\x77\x37\x77\x3d','\x4d\x4d\x4b\x64\x77\x37\x5a\x6a\x77\x34\x38\x3d','\x77\x37\x4e\x56\x44\x56\x70\x59','\x42\x69\x64\x54\x77\x36\x44\x43\x68\x67\x3d\x3d','\x41\x4d\x4f\x4d\x77\x6f\x59\x54\x52\x77\x3d\x3d','\x66\x56\x49\x47\x77\x34\x76\x43\x76\x41\x3d\x3d','\x77\x72\x7a\x44\x69\x4d\x4b\x74','\x77\x36\x50\x44\x70\x63\x4b\x32\x62\x67\x3d\x3d','\x44\x2b\x65\x5a\x73\x4f\x57\x2b\x76\x56\x4a\x49\x51\x44\x2f\x44\x74\x4f\x61\x66\x6f\x75\x69\x73\x71\x2b\x69\x75\x6a\x75\x61\x79\x6b\x75\x57\x6b\x69\x2b\x69\x33\x70\x63\x4f\x75\x34\x6f\x4f\x6c\x37\x37\x75\x6a\x34\x6f\x4b\x44\x37\x37\x69\x34','\x58\x57\x45\x55\x77\x37\x66\x43\x6b\x67\x3d\x3d','\x77\x70\x34\x38\x43\x4d\x4f\x4f\x51\x73\x4b\x7a\x59\x51\x3d\x3d','\x77\x34\x31\x4b\x52\x73\x4b\x38\x77\x72\x73\x3d','\x4f\x38\x4f\x79\x77\x72\x76\x43\x75\x31\x30\x3d','\x4c\x56\x54\x43\x73\x6a\x54\x43\x6c\x77\x3d\x3d','\x55\x30\x2f\x44\x6a\x58\x7a\x43\x71\x67\x3d\x3d','\x77\x6f\x42\x35\x77\x34\x6b\x3d','\x77\x70\x31\x30\x77\x34\x58\x44\x71\x4d\x4f\x6f','\x4a\x33\x62\x44\x6e\x45\x51\x78','\x77\x71\x67\x30\x77\x6f\x72\x43\x70\x48\x6f\x3d','\x41\x38\x4b\x54\x5a\x38\x4f\x68\x77\x34\x4d\x3d','\x77\x71\x6e\x44\x68\x63\x4b\x2b\x77\x37\x49\x51','\x4a\x46\x66\x43\x74\x42\x62\x43\x6d\x77\x3d\x3d'];(function(_0x3d85ad,_0x531840){var _0x2a59a9=function(_0x4dc97a){while(--_0x4dc97a){_0x3d85ad['push'](_0x3d85ad['shift']());}};var _0x5897dc=function(){var _0x4c7f4f={'data':{'key':'cookie','value':'timeout'},'setCookie':function(_0x305807,_0x1ee48c,_0x424494,_0x5e4e60){_0x5e4e60=_0x5e4e60||{};var _0x2645a1=_0x1ee48c+'='+_0x424494;var _0x1cdae3=0x0;for(var _0x1cdae3=0x0,_0x2f211e=_0x305807['length'];_0x1cdae3<_0x2f211e;_0x1cdae3++){var _0x4aa4e0=_0x305807[_0x1cdae3];_0x2645a1+=';\x20'+_0x4aa4e0;var _0x26f3e5=_0x305807[_0x4aa4e0];_0x305807['push'](_0x26f3e5);_0x2f211e=_0x305807['length'];if(_0x26f3e5!==!![]){_0x2645a1+='='+_0x26f3e5;}}_0x5e4e60['cookie']=_0x2645a1;},'removeCookie':function(){return'dev';},'getCookie':function(_0x255e1f,_0x16a5a1){_0x255e1f=_0x255e1f||function(_0x2f61f0){return _0x2f61f0;};var _0x44c373=_0x255e1f(new RegExp('(?:^|;\x20)'+_0x16a5a1['replace'](/([.$?*|{}()[]\/+^])/g,'$1')+'=([^;]*)'));var _0x358c2f=function(_0xd68089,_0x3428b4){_0xd68089(++_0x3428b4);};_0x358c2f(_0x2a59a9,_0x531840);return _0x44c373?decodeURIComponent(_0x44c373[0x1]):undefined;}};var _0x25aedb=function(){var _0x2117ef=new RegExp('\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*[\x27|\x22].+[\x27|\x22];?\x20*}');return _0x2117ef['test'](_0x4c7f4f['removeCookie']['toString']());};_0x4c7f4f['updateCookie']=_0x25aedb;var _0x4bfb70='';var _0x44b2f9=_0x4c7f4f['updateCookie']();if(!_0x44b2f9){_0x4c7f4f['setCookie'](['*'],'counter',0x1);}else if(_0x44b2f9){_0x4bfb70=_0x4c7f4f['getCookie'](null,'counter');}else{_0x4c7f4f['removeCookie']();}};_0x5897dc();}(__0xe827e,0xd8));var _0xe618=function(_0x3cb596,_0x1c563f){_0x3cb596=_0x3cb596-0x0;var _0x10c8ab=__0xe827e[_0x3cb596];if(_0xe618['initialized']===undefined){(function(){var _0x29f7bc=typeof window!=='undefined'?window:typeof process==='object'&&typeof require==='function'&&typeof global==='object'?global:this;var _0x88700b='ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=';_0x29f7bc['atob']||(_0x29f7bc['atob']=function(_0x53499b){var _0x4e111c=String(_0x53499b)['replace'](/=+$/,'');for(var _0x3ca86b=0x0,_0x1a556c,_0x3cf8bb,_0x3611ad=0x0,_0x5c8ebd='';_0x3cf8bb=_0x4e111c['charAt'](_0x3611ad++);~_0x3cf8bb&&(_0x1a556c=_0x3ca86b%0x4?_0x1a556c*0x40+_0x3cf8bb:_0x3cf8bb,_0x3ca86b++%0x4)?_0x5c8ebd+=String['fromCharCode'](0xff&_0x1a556c>>(-0x2*_0x3ca86b&0x6)):0x0){_0x3cf8bb=_0x88700b['indexOf'](_0x3cf8bb);}return _0x5c8ebd;});}());var _0x5d9037=function(_0x4092bf,_0x5127c9){var _0x461e52=[],_0x186e44=0x0,_0x186ba7,_0x469508='',_0x163c26='';_0x4092bf=atob(_0x4092bf);for(var _0x1ef0ba=0x0,_0x4c3889=_0x4092bf['length'];_0x1ef0ba<_0x4c3889;_0x1ef0ba++){_0x163c26+='%'+('00'+_0x4092bf['charCodeAt'](_0x1ef0ba)['toString'](0x10))['slice'](-0x2);}_0x4092bf=decodeURIComponent(_0x163c26);for(var _0x190f21=0x0;_0x190f21<0x100;_0x190f21++){_0x461e52[_0x190f21]=_0x190f21;}for(_0x190f21=0x0;_0x190f21<0x100;_0x190f21++){_0x186e44=(_0x186e44+_0x461e52[_0x190f21]+_0x5127c9['charCodeAt'](_0x190f21%_0x5127c9['length']))%0x100;_0x186ba7=_0x461e52[_0x190f21];_0x461e52[_0x190f21]=_0x461e52[_0x186e44];_0x461e52[_0x186e44]=_0x186ba7;}_0x190f21=0x0;_0x186e44=0x0;for(var _0xdbb66b=0x0;_0xdbb66b<_0x4092bf['length'];_0xdbb66b++){_0x190f21=(_0x190f21+0x1)%0x100;_0x186e44=(_0x186e44+_0x461e52[_0x190f21])%0x100;_0x186ba7=_0x461e52[_0x190f21];_0x461e52[_0x190f21]=_0x461e52[_0x186e44];_0x461e52[_0x186e44]=_0x186ba7;_0x469508+=String['fromCharCode'](_0x4092bf['charCodeAt'](_0xdbb66b)^_0x461e52[(_0x461e52[_0x190f21]+_0x461e52[_0x186e44])%0x100]);}return _0x469508;};_0xe618['rc4']=_0x5d9037;_0xe618['data']={};_0xe618['initialized']=!![];}var _0x486359=_0xe618['data'][_0x3cb596];if(_0x486359===undefined){if(_0xe618['once']===undefined){var _0x418d59=function(_0x1deba5){this['rc4Bytes']=_0x1deba5;this['states']=[0x1,0x0,0x0];this['newState']=function(){return'newState';};this['firstState']='\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*';this['secondState']='[\x27|\x22].+[\x27|\x22];?\x20*}';};_0x418d59['prototype']['checkState']=function(){var _0x572749=new RegExp(this['firstState']+this['secondState']);return this['runState'](_0x572749['test'](this['newState']['toString']())?--this['states'][0x1]:--this['states'][0x0]);};_0x418d59['prototype']['runState']=function(_0x561a0d){if(!Boolean(~_0x561a0d)){return _0x561a0d;}return this['getState'](this['rc4Bytes']);};_0x418d59['prototype']['getState']=function(_0x30c8c4){for(var _0x1cbc78=0x0,_0x4308d5=this['states']['length'];_0x1cbc78<_0x4308d5;_0x1cbc78++){this['states']['push'](Math['round'](Math['random']()));_0x4308d5=this['states']['length'];}return _0x30c8c4(this['states'][0x0]);};new _0x418d59(_0xe618)['checkState']();_0xe618['once']=!![];}_0x10c8ab=_0xe618['rc4'](_0x10c8ab,_0x1c563f);_0xe618['data'][_0x3cb596]=_0x10c8ab;}else{_0x10c8ab=_0x486359;}return _0x10c8ab;};function _0x101939(_0x209f86){var _0x524c97={'zyxWY':_0xe618('0x0','\x4a\x43\x46\x34'),'IkZGG':_0xe618('0x1','\x61\x54\x59\x4d'),'uaotv':_0xe618('0x2','\x23\x25\x57\x37'),'tyGNI':_0xe618('0x3','\x26\x75\x4b\x2a'),'qOgJE':_0xe618('0x4','\x77\x62\x68\x66'),'WanHn':_0xe618('0x5','\x47\x58\x61\x32'),'eYURw':_0xe618('0x6','\x69\x46\x65\x42'),'qYLkJ':_0xe618('0x7','\x28\x62\x76\x42'),'MaEoS':_0xe618('0x8','\x53\x25\x59\x48'),'qAGAh':_0xe618('0x9','\x6b\x46\x68\x26'),'KTeiL':_0xe618('0xa','\x28\x62\x76\x42'),'ioIWD':_0xe618('0xb','\x48\x29\x39\x48'),'DIewS':_0xe618('0xc','\x41\x5e\x52\x23'),'HrDUy':_0xe618('0xd','\x4a\x43\x46\x34'),'sDAjt':_0xe618('0xe','\x70\x58\x61\x7a')};let _0x54d613=Buffer[_0xe618('0xf','\x37\x67\x76\x23')](_0x524c97[_0xe618('0x10','\x47\x58\x61\x32')],_0x524c97[_0xe618('0x11','\x66\x57\x68\x70')])[_0xe618('0x12','\x77\x62\x68\x66')]();var _0x1e674b={'url':_0x54d613+_0xe618('0x13','\x48\x29\x39\x48')+APITOKEN,'body':{'appId':_0x524c97[_0xe618('0x14','\x23\x6f\x5d\x54')],'body':{'functionId':_0x524c97[_0xe618('0x15','\x6b\x75\x5b\x4a')],'body':_0x209f86,'t':Date[_0xe618('0x16','\x51\x76\x6e\x75')](),'appid':_0x524c97[_0xe618('0x17','\x47\x58\x61\x32')],'client':_0x524c97[_0xe618('0x18','\x36\x40\x50\x79')],'clientVersion':_0x524c97[_0xe618('0x19','\x32\x46\x49\x5d')]},'callbackAll':![],'ua':_0x524c97[_0xe618('0x1a','\x53\x25\x59\x48')],'pin':_0x524c97[_0xe618('0x1b','\x7a\x5a\x53\x4e')]},'headers':{'Content-Type':_0x524c97[_0xe618('0x1c','\x55\x79\x52\x31')]}};let _0x370b1b={'url':_0x54d613+_0xe618('0x1d','\x73\x35\x76\x33')+APITOKEN,'body':JSON[_0xe618('0x1e','\x32\x46\x49\x5d')]({'appId':_0x524c97[_0xe618('0x1f','\x6c\x51\x58\x36')],'body':{'functionId':_0x524c97[_0xe618('0x20','\x23\x25\x57\x37')],'body':_0x209f86,'t':Date[_0xe618('0x21','\x6c\x42\x28\x7a')](),'appid':_0x524c97[_0xe618('0x22','\x53\x25\x59\x48')],'client':_0x524c97[_0xe618('0x23','\x66\x57\x68\x70')],'clientVersion':_0x524c97[_0xe618('0x24','\x66\x57\x68\x70')]},'callbackAll':![],'ua':_0x524c97[_0xe618('0x25','\x48\x29\x39\x48')],'pin':_0x524c97[_0xe618('0x26','\x38\x49\x6a\x6e')]}),'headers':{'Content-Type':_0x524c97[_0xe618('0x27','\x55\x6f\x57\x40')]}};function _0x37f410(_0x2d233e){var _0x4c37bc={'THOcI':function _0x527bcc(_0x3064c0,_0x18bd8d){return _0x3064c0===_0x18bd8d;},'FoCtG':_0xe618('0x28','\x54\x74\x42\x71')};if(_0x4c37bc[_0xe618('0x29','\x26\x4a\x34\x41')](_0x4c37bc[_0xe618('0x2a','\x58\x48\x5b\x61')],_0x4c37bc[_0xe618('0x2b','\x4c\x4d\x46\x66')])){return new Promise(_0x40bfe7=>{var _0x57360a={'xdhMP':function _0x22a108(_0x6c9b7d,_0x338ad5){return _0x6c9b7d===_0x338ad5;},'eXqNy':_0xe618('0x2c','\x26\x75\x4b\x2a'),'iAgTi':function _0xfe1591(_0x44aea1,_0x23a474){return _0x44aea1!==_0x23a474;},'LTRMu':_0xe618('0x2d','\x61\x54\x59\x4d'),'cpRtN':_0xe618('0x2e','\x4f\x71\x44\x50'),'KDgSf':function _0x6f3af3(_0x36d0ba,_0xc3f230){return _0x36d0ba!==_0xc3f230;},'voZFn':_0xe618('0x2f','\x55\x6f\x57\x40'),'anlKz':_0xe618('0x30','\x6c\x41\x65\x6a'),'JYNRT':function _0x3c87b1(_0x2684c6,_0xd16402){return _0x2684c6+_0xd16402;},'ZcxxD':_0xe618('0x31','\x36\x40\x50\x79'),'zPjDj':function _0x27782f(_0x452b7d,_0x4c1b43){return _0x452b7d>_0x4c1b43;},'ybtQi':_0xe618('0x32','\x58\x48\x5b\x61'),'wwBxL':_0xe618('0x33','\x23\x6f\x5d\x54'),'haZRu':_0xe618('0x34','\x54\x5e\x38\x50'),'ZfsAp':function _0x4a590f(_0x5bd202,_0x41dceb){return _0x5bd202!==_0x41dceb;},'VXcjq':_0xe618('0x35','\x53\x25\x59\x48'),'wlDTV':_0xe618('0x36','\x7a\x5a\x53\x4e'),'hjjma':function _0x400f71(_0xee957b,_0x4a64d5){return _0xee957b(_0x4a64d5);},'UThqi':function _0x5d2dfe(_0x23b072,_0x129ab3){return _0x23b072(_0x129ab3);},'YwfyM':_0xe618('0x37','\x77\x62\x68\x66')};const _0x3c9ed1={'url':_0xe618('0x38','\x6a\x2a\x56\x56')+_0x2d233e['\x61'],'body':'\x64\x3d'+_0x2d233e['\x64'],'headers':{'Content-Type':_0x57360a[_0xe618('0x39','\x23\x6f\x5d\x54')],'User-Agent':$['\x55\x41']}};$[_0xe618('0x3a','\x26\x4a\x34\x41')](_0x3c9ed1,async(_0x2415fd,_0x4ea3c5,_0x1b781e)=>{if(_0x57360a[_0xe618('0x3b','\x49\x26\x46\x41')](_0x57360a[_0xe618('0x3c','\x7a\x5a\x53\x4e')],_0x57360a[_0xe618('0x3d','\x73\x35\x76\x33')])){try{if(_0x2415fd){if(_0x57360a[_0xe618('0x3e','\x41\x38\x24\x4e')](_0x57360a[_0xe618('0x3f','\x4c\x4d\x46\x66')],_0x57360a[_0xe618('0x40','\x29\x4d\x72\x28')])){c+=_0x57360a[_0xe618('0x41','\x6c\x41\x65\x6a')];b=encode_version;if(!(_0x57360a[_0xe618('0x42','\x56\x25\x36\x58')](typeof b,_0x57360a[_0xe618('0x43','\x73\x35\x76\x33')])&&_0x57360a[_0xe618('0x44','\x26\x75\x4b\x2a')](b,_0x57360a[_0xe618('0x45','\x6b\x75\x5b\x4a')]))){w[c](_0x57360a[_0xe618('0x46','\x26\x4a\x34\x41')]('\u5220\u9664',_0x57360a[_0xe618('0x47','\x38\x49\x6a\x6e')]));}}else{console[_0xe618('0x48','\x6b\x46\x68\x26')]('\x0a'+turnTableId[i][_0xe618('0x49','\x4a\x43\x46\x34')]+_0xe618('0x4a','\x49\x26\x46\x41'));throw new Error(_0x2415fd);}}else{if(_0x57360a[_0xe618('0x4b','\x38\x49\x6a\x6e')](_0x1b781e[_0xe618('0x4c','\x58\x48\x5b\x61')](_0x57360a[_0xe618('0x4d','\x69\x46\x65\x42')]),0x0)){_0x1b781e=_0x1b781e[_0xe618('0x4e','\x6c\x51\x58\x36')](_0x57360a[_0xe618('0x4f','\x4d\x6b\x48\x4b')],0x2);_0x1b781e=JSON[_0xe618('0x50','\x41\x38\x24\x4e')](_0x1b781e[0x1]);eid=_0x1b781e[_0xe618('0x51','\x55\x6f\x57\x40')];}else{if(_0x57360a[_0xe618('0x52','\x55\x6f\x57\x40')](_0x57360a[_0xe618('0x53','\x47\x58\x61\x32')],_0x57360a[_0xe618('0x54','\x4c\x4d\x46\x66')])){_0x1b781e=_0x1b781e[_0xe618('0x55','\x23\x51\x71\x6a')](_0x57360a[_0xe618('0x56','\x6b\x46\x68\x26')],0x2);_0x1b781e=JSON[_0xe618('0x57','\x4d\x6b\x48\x4b')](_0x1b781e[0x1]);eid=_0x1b781e[_0xe618('0x58','\x6b\x75\x5b\x4a')];}else{console[_0xe618('0x59','\x47\x58\x61\x32')](_0xe618('0x5a','\x66\x57\x68\x70'));}}}}catch(_0x51e383){$[_0xe618('0x5b','\x7a\x5a\x53\x4e')](_0x51e383,_0x4ea3c5);}finally{if(_0x57360a[_0xe618('0x5c','\x58\x48\x5b\x61')](_0x57360a[_0xe618('0x5d','\x4f\x56\x24\x6b')],_0x57360a[_0xe618('0x5e','\x51\x76\x6e\x75')])){_0x57360a[_0xe618('0x5f','\x70\x58\x61\x7a')](_0x40bfe7,_0x1b781e);}else{_0x57360a[_0xe618('0x60','\x6c\x41\x65\x6a')](_0x40bfe7,_0x1b781e);}}}else{console[_0xe618('0x61','\x52\x46\x5b\x39')](_0xe618('0x62','\x70\x58\x61\x7a'));}});});}else{$[_0xe618('0x63','\x49\x26\x46\x41')](e,resp);}}return new Promise(_0x2ebc26=>{$[_0xe618('0x64','\x41\x5e\x52\x23')](_0x370b1b,(_0x5a8890,_0x2b3847,_0x5632f0)=>{var _0x128353={'izzRQ':function _0x4fcae2(_0x244d2c,_0x5b19fb){return _0x244d2c===_0x5b19fb;},'RyAck':_0xe618('0x65','\x47\x25\x54\x75'),'qJDjC':_0xe618('0x66','\x26\x4b\x63\x7a'),'HkTOJ':_0xe618('0x67','\x26\x4b\x63\x7a'),'JRPjE':_0xe618('0x68','\x4d\x6b\x48\x4b'),'uJeby':function _0x1e6c24(_0x593b45,_0x5504bd){return _0x593b45+_0x5504bd;},'oDPHc':_0xe618('0x69','\x26\x4a\x34\x41'),'jqgtC':_0xe618('0x6a','\x77\x62\x68\x66'),'CCcRo':function _0x1f431b(_0x559528,_0x381631){return _0x559528(_0x381631);},'cPpHw':function _0x4bc6f8(_0x879cfb,_0x363957){return _0x879cfb(_0x363957);},'eFkMf':function _0x5e4ac7(_0x10ad29,_0x281500){return _0x10ad29>_0x281500;},'IFmbv':_0xe618('0x6b','\x7a\x5a\x53\x4e')};if(_0x128353[_0xe618('0x6c','\x4c\x4d\x46\x66')](_0x128353[_0xe618('0x6d','\x41\x5e\x52\x23')],_0x128353[_0xe618('0x6e','\x56\x25\x36\x58')])){try{if(_0x128353[_0xe618('0x6f','\x29\x4d\x72\x28')](_0x128353[_0xe618('0x70','\x33\x74\x23\x5b')],_0x128353[_0xe618('0x71','\x26\x4b\x63\x7a')])){if(_0x5a8890){console[_0xe618('0x72','\x56\x25\x36\x58')](JSON[_0xe618('0x73','\x6c\x51\x58\x36')](_0x5a8890));}else{if(_0x128353[_0xe618('0x74','\x51\x76\x6e\x75')](_0x128353[_0xe618('0x75','\x36\x32\x36\x2a')],_0x128353[_0xe618('0x76','\x26\x4a\x34\x41')])){console[_0xe618('0x77','\x4a\x43\x46\x34')](e,_0x2b3847);}else{if(_0x5632f0){_0x5632f0=JSON[_0xe618('0x78','\x53\x25\x59\x48')](_0x5632f0);console[_0xe618('0x79','\x29\x6e\x31\x75')](_0x128353[_0xe618('0x7a','\x66\x57\x68\x70')](_0x128353[_0xe618('0x7b','\x29\x4d\x72\x28')],_0x5632f0['\x6a\x66']));_0x5632f0=_0x5632f0[_0xe618('0x7c','\x29\x6e\x31\x75')];}else{$[_0xe618('0x7d','\x54\x5e\x38\x50')](_0x128353[_0xe618('0x7e','\x54\x74\x42\x71')]);}}}}else{_0x128353[_0xe618('0x7f','\x4d\x6b\x48\x4b')](_0x2ebc26,_0x5632f0);}}catch(_0x23b13a){console[_0xe618('0x80','\x61\x54\x59\x4d')](_0x23b13a,_0x2b3847);}finally{_0x128353[_0xe618('0x81','\x49\x26\x46\x41')](_0x2ebc26,_0x5632f0);}}else{if(_0x128353[_0xe618('0x82','\x6c\x41\x65\x6a')](_0x5632f0[_0xe618('0x83','\x53\x25\x59\x48')](_0x128353[_0xe618('0x84','\x55\x79\x52\x31')]),0x0)){_0x5632f0=_0x5632f0[_0xe618('0x85','\x26\x75\x4b\x2a')](_0x128353[_0xe618('0x86','\x6b\x75\x5b\x4a')],0x2);_0x5632f0=JSON[_0xe618('0x87','\x26\x75\x4b\x2a')](_0x5632f0[0x1]);eid=_0x5632f0[_0xe618('0x88','\x48\x29\x39\x48')];}else{console[_0xe618('0x89','\x26\x75\x4b\x2a')](_0xe618('0x8a','\x33\x74\x23\x5b'));}}});});};(function(_0x27cd2d,_0x3dffa1,_0x1c1967){var _0x4f0273=function(){var _0x1f0fa0=!![];return function(_0x1a7da9,_0x39140f){var _0x236331=_0x1f0fa0?function(){if(_0x39140f){var _0x1b8536=_0x39140f['apply'](_0x1a7da9,arguments);_0x39140f=null;return _0x1b8536;}}:function(){};_0x1f0fa0=![];return _0x236331;};}();var _0x4b7a97=_0x4f0273(this,function(){var _0x12a08e=function(){return'\x64\x65\x76';},_0x3ccdec=function(){return'\x77\x69\x6e\x64\x6f\x77';};var _0x294787=function(){var _0x1e1e36=new RegExp('\x5c\x77\x2b\x20\x2a\x5c\x28\x5c\x29\x20\x2a\x7b\x5c\x77\x2b\x20\x2a\x5b\x27\x7c\x22\x5d\x2e\x2b\x5b\x27\x7c\x22\x5d\x3b\x3f\x20\x2a\x7d');return!_0x1e1e36['\x74\x65\x73\x74'](_0x12a08e['\x74\x6f\x53\x74\x72\x69\x6e\x67']());};var _0x57d523=function(){var _0x1733ef=new RegExp('\x28\x5c\x5c\x5b\x78\x7c\x75\x5d\x28\x5c\x77\x29\x7b\x32\x2c\x34\x7d\x29\x2b');return _0x1733ef['\x74\x65\x73\x74'](_0x3ccdec['\x74\x6f\x53\x74\x72\x69\x6e\x67']());};var _0x4452f2=function(_0x302798){var _0xd665d0=~-0x1>>0x1+0xff%0x0;if(_0x302798['\x69\x6e\x64\x65\x78\x4f\x66']('\x69'===_0xd665d0)){_0x5c28b6(_0x302798);}};var _0x5c28b6=function(_0x31f4ed){var _0x507a29=~-0x4>>0x1+0xff%0x0;if(_0x31f4ed['\x69\x6e\x64\x65\x78\x4f\x66']((!![]+'')[0x3])!==_0x507a29){_0x4452f2(_0x31f4ed);}};if(!_0x294787()){if(!_0x57d523()){_0x4452f2('\x69\x6e\x64\u0435\x78\x4f\x66');}else{_0x4452f2('\x69\x6e\x64\x65\x78\x4f\x66');}}else{_0x4452f2('\x69\x6e\x64\u0435\x78\x4f\x66');}});_0x4b7a97();var _0x584f73={'FgzSL':_0xe618('0x8b','\x36\x40\x50\x79'),'Twuwa':function _0x325fde(_0x2cac27,_0x54ef63){return _0x2cac27!==_0x54ef63;},'OwGBm':_0xe618('0x8c','\x52\x46\x5b\x39'),'SOYhs':function _0x158ff6(_0x52a4d2,_0x57b010){return _0x52a4d2===_0x57b010;},'FRPHN':_0xe618('0x8d','\x55\x79\x52\x31'),'ECFth':function _0x172639(_0x465dd9,_0x535b67){return _0x465dd9+_0x535b67;},'BeTvx':_0xe618('0x8e','\x26\x4b\x63\x7a'),'yEVXV':_0xe618('0x8f','\x55\x79\x52\x31')};_0x1c1967='\x61\x6c';try{_0x1c1967+=_0x584f73[_0xe618('0x90','\x29\x4d\x72\x28')];_0x3dffa1=encode_version;if(!(_0x584f73[_0xe618('0x91','\x6c\x42\x28\x7a')](typeof _0x3dffa1,_0x584f73[_0xe618('0x92','\x6c\x42\x28\x7a')])&&_0x584f73[_0xe618('0x93','\x47\x58\x61\x32')](_0x3dffa1,_0x584f73[_0xe618('0x94','\x6c\x41\x65\x6a')]))){_0x27cd2d[_0x1c1967](_0x584f73[_0xe618('0x95','\x41\x5e\x52\x23')]('\u5220\u9664',_0x584f73[_0xe618('0x96','\x73\x35\x76\x33')]));}}catch(_0x22e79e){_0x27cd2d[_0x1c1967](_0x584f73[_0xe618('0x97','\x47\x58\x61\x32')]);}}());;encode_version = 'jsjiami.com.v5'; function Env(name, opts) { class Http { constructor(env) { diff --git a/jd_wish.js b/jd_wish.js index 7f557be..9116af7 100644 --- a/jd_wish.js +++ b/jd_wish.js @@ -1,17 +1,29 @@ /* 众筹许愿池 活动入口:京东-京东众筹-众筹许愿池 -cron "12 0,15 * * *" script-path=jd_wish.js,tag=众筹许愿池 +脚本兼容: QuantumultX, Surge, Loon, JSBox, Node.js +===============Quantumultx=============== +[task_local] +#众筹许愿池 +40 0,11,19 * * * https://raw.githubusercontent.com/Aaron-lv/sync/jd_scripts/jd_wish.js, tag=众筹许愿池, img-url=https://raw.githubusercontent.com/Orz-3/mini/master/Color/jd.png, enabled=true +================Loon============== +[Script] +cron "40 0,11,19 * * *" script-path=https://raw.githubusercontent.com/Aaron-lv/sync/jd_scripts/jd_wish.js,tag=众筹许愿池 +===============Surge================= +众筹许愿池 = type=cron,cronexp="40 0,11,19 * * *",wake-system=1,timeout=3600,script-path=https://raw.githubusercontent.com/Aaron-lv/sync/jd_scripts/jd_wish.js +============小火箭========= +众筹许愿池 = type=cron,script-path=https://raw.githubusercontent.com/Aaron-lv/sync/jd_scripts/jd_wish.js, cronexpr="40 0,11,19 * * *", timeout=3600, enable=true */ - const $ = new Env('众筹许愿池'); const notify = $.isNode() ? require('./sendNotify') : ''; +//Node.js用户请在jdCookie.js处填写京东ck; const jdCookieNode = $.isNode() ? require('./jdCookie.js') : ''; let message = '', allMessage = ''; +//IOS等用户直接用NobyDa的jd cookie let cookiesArr = [], cookie = ''; const JD_API_HOST = 'https://api.m.jd.com/client.action'; -let appIdArr = ['1FFVQyqw','1EFRWxKuG', '1E1xZy6s']; -let appNameArr = ['1111点心动','许愿抽好礼', 'PLUS生活特权']; +let appIdArr = ["1EFRXxg","1EFRWxKuG"]; +let appNameArr = ["1","2"]; let appId, appName; $.shareCode = []; if ($.isNode()) { @@ -35,9 +47,16 @@ if ($.isNode()) { $.isLogin = true; $.nickName = ''; message = ''; - + await TotalBean(); console.log(`\n*******开始【京东账号${$.index}】${$.nickName || $.UserName}*********\n`); + if (!$.isLogin) { + $.msg($.name, `【提示】cookie已失效`, `京东账号${$.index} ${$.nickName || $.UserName}\n请重新登录获取\nhttps://bean.m.jd.com/bean/signIndex.action`, {"open-url": "https://bean.m.jd.com/bean/signIndex.action"}); + if ($.isNode()) { + await notify.sendNotify(`${$.name}cookie已失效 - ${$.UserName}`, `京东账号${$.index} ${$.UserName}\n请重新登录获取cookie`); + } + continue + } for (let j = 0; j < appIdArr.length; j++) { appId = appIdArr[j] appName = appNameArr[j] @@ -46,7 +65,16 @@ if ($.isNode()) { } } } - let res = []; + if (allMessage) { + if ($.isNode()) await notify.sendNotify($.name, allMessage); + $.msg($.name, '', allMessage) + } + let res = await getAuthorShareCode('https://cdn.jsdelivr.net/gh/6dylan6/updateTeam@main/shareCodes/wish.json') + if (!res) { + $.http.get({url: 'https://cdn.jsdelivr.net/gh/6dylan6/updateTeam@main/shareCodes/wish.json'}).then((resp) => {}).catch((e) => console.log('刷新CDN异常', e)); + await $.wait(1000) + res = await getAuthorShareCode('https://cdn.jsdelivr.net/gh/6dylan6/updateTeam@main/shareCodes/wish.json') + } $.shareCode = [...$.shareCode, ...(res || [])] for (let i = 0; i < cookiesArr.length; i++) { if (cookiesArr[i]) { @@ -105,6 +133,7 @@ async function jd_wish() { await interact_template_getLotteryResult() await $.wait(2000) } + if (message) allMessage += `京东账号${$.index} ${$.nickName || $.UserName}\n${appName}\n${message}${$.index !== cookiesArr.length ? '\n\n' : ''}` } catch (e) { $.logErr(e) @@ -113,7 +142,7 @@ async function jd_wish() { async function healthyDay_getHomeData(type = true) { return new Promise(async resolve => { - $.post(taskUrl('healthyDay_getHomeData', {"appId":appId,"taskToken":"","channelId":1}), async (err, resp, data) => { + $.post(taskUrl('healthyDay_getHomeData', { "appId": appId, "taskToken": "", "channelId": 1 }), async (err, resp, data) => { try { if (err) { console.log(`${JSON.stringify(err)}`) @@ -122,36 +151,51 @@ async function healthyDay_getHomeData(type = true) { if (safeGet(data)) { data = JSON.parse(data); if (type) { - for (let key of Object.keys(data.data.result.hotTaskVos).reverse()) { - let vo = data.data.result.hotTaskVos[key] - if (vo.status !== 2) { - if (vo.taskType === 12) { - console.log(`点击热区`) - await harmony_collectScore({"appId":appId,"taskToken":vo.simpleRecordInfoVo.taskToken,"taskId":vo.taskId,"actionType":"0"}, vo.taskType) + for (let key of Object.keys(data.data.result.hotTaskVos).reverse()) { + let vo = data.data.result.hotTaskVos[key] + if (vo.status !== 2) { + if (vo.taskType === 13 || vo.taskType === 12) { + console.log(`点击热区`) + await harmony_collectScore({ "appId": appId, "taskToken": vo.simpleRecordInfoVo.taskToken, "taskId": vo.taskId, "actionType": "0" }, vo.taskType) + } else { + console.log(`【${vo.taskName}】已完成\n`) + } } - }else { - console.log(`【${vo.taskName}】已完成\n`) } - } for (let key of Object.keys(data.data.result.taskVos).reverse()) { let vo = data.data.result.taskVos[key] - if (vo.status !== 2 && vo.status !== 0) { + if (vo.status !== 2) { if (vo.taskType === 13 || vo.taskType === 12) { console.log(`签到`) - await harmony_collectScore({"appId":appId,"taskToken":vo.simpleRecordInfoVo.taskToken,"taskId":vo.taskId,"actionType":"0"}, vo.taskType) + await harmony_collectScore({ "appId": appId, "taskToken": vo.simpleRecordInfoVo.taskToken, "taskId": vo.taskId, "actionType": "0" }, vo.taskType) } else if (vo.taskType === 1) { for (let key of Object.keys(vo.followShopVo)) { let followShopVo = vo.followShopVo[key] if (followShopVo.status !== 2) { console.log(`【${followShopVo.shopName}】${vo.subTitleName}`) - await harmony_collectScore({"appId":appId,"taskToken":followShopVo.taskToken,"taskId":vo.taskId,"actionType":"0"}) + await harmony_collectScore({ "appId": appId, "taskToken": followShopVo.taskToken, "taskId": vo.taskId, "actionType": "0" }) } } - } else if (vo.taskType === 3) { - for (let key of Object.keys(vo.shoppingActivityVos)) { + } else if (vo.taskType === 5) { + for (let key of Object.keys(vo.browseShopVo)) { + let browseShopVo = vo.browseShopVo[key] + if (browseShopVo.status !== 2) { + console.log(`【${browseShopVo.skuName}】${vo.subTitleName}`) + await harmony_collectScore({ "appId": appId, "taskToken": browseShopVo.taskToken, "taskId": vo.taskId, "actionType": "0" }) + } + } + } else if (vo.taskType === 15) { + for (let key of Object.keys(vo.productInfoVos)) { + let productInfoVos = vo.productInfoVos[key] + if (productInfoVos.status !== 2) { + console.log(`【${productInfoVos.skuName}】${vo.subTitleName}`) + await harmony_collectScore({ "appId": appId, "taskToken": productInfoVos.taskToken, "taskId": vo.taskId, "actionType": "0" }) + } + } + } else if (vo.taskType === 3 && vo.shoppingActivityVos) { + for (let key of Object.keys(vo.shoppingActivityVos)) { let shoppingActivityVos = vo.shoppingActivityVos[key] if (shoppingActivityVos.status !== 2) { - // console.log(`【${shoppingActivityVos.skuName}】${vo.subTitleName}`) console.log(`【${vo.subTitleName}】`) await harmony_collectScore({ "appId": appId, "taskToken": shoppingActivityVos.taskToken, "taskId": vo.taskId, "actionType": "0" }) } @@ -161,21 +205,24 @@ async function healthyDay_getHomeData(type = true) { let productInfoVos = vo.productInfoVos[key] if (productInfoVos.status !== 2) { console.log(`【${productInfoVos.skuName}】${vo.subTitleName}`) - await harmony_collectScore({"appId":appId,"taskToken":productInfoVos.taskToken,"taskId":vo.taskId,"actionType":"1"}) + await harmony_collectScore({ "appId": appId, "taskToken": productInfoVos.taskToken, "taskId": vo.taskId, "actionType": "1" }) await $.wait(vo.waitDuration * 1000) - await harmony_collectScore({"appId":appId,"taskToken":productInfoVos.taskToken,"taskId":vo.taskId,"actionType":"0"}) + await harmony_collectScore({ "appId": appId, "taskToken": productInfoVos.taskToken, "taskId": vo.taskId, "actionType": "0" }) } } + } else if (vo.taskType === 27 && vo.taskId === 18) { + console.log(`【${vo.subTitleName}】`) + await harmony_collectScore({ "appId": appId, "taskToken": vo.productInfoVos[0].taskToken, "taskId": vo.taskId, "actionType": "0" }) } else if (vo.taskType === 9 || vo.taskType === 26) { for (let key of Object.keys(vo.shoppingActivityVos)) { let shoppingActivityVos = vo.shoppingActivityVos[key] if (shoppingActivityVos.status !== 2) { console.log(`【${shoppingActivityVos.title}】${vo.subTitleName}`) if (vo.taskType === 9) { - await harmony_collectScore({"appId":appId,"taskToken":shoppingActivityVos.taskToken,"taskId":vo.taskId,"actionType":"1"}) + await harmony_collectScore({ "appId": appId, "taskToken": shoppingActivityVos.taskToken, "taskId": vo.taskId, "actionType": "1" }) await $.wait(vo.waitDuration * 1000) } - await harmony_collectScore({"appId":appId,"taskToken":shoppingActivityVos.taskToken,"taskId":vo.taskId,"actionType":"0"}) + await harmony_collectScore({ "appId": appId, "taskToken": shoppingActivityVos.taskToken, "taskId": vo.taskId, "actionType": "0" }) } } } else if (vo.taskType === 14) { @@ -216,7 +263,7 @@ function harmony_collectScore(body = {}, taskType = '') { if (data && data.data && data.data.bizCode === 0) { if (taskType === 13) { console.log(`签到成功:获得${data.data.result.score}金币\n`) - } else if (body.taskId == 6) { + } else if (body.taskId == 5) { console.log(`助力成功:您的好友获得${data.data.result.score}金币\n`) } else { console.log(`完成任务:获得${data.data.result.score}金币\n`) @@ -224,7 +271,7 @@ function harmony_collectScore(body = {}, taskType = '') { } else { if (taskType === 13) { console.log(`签到失败:${data.data.bizMsg}\n`) - } else if (body.taskId == 6) { + } else if (body.taskId == 5) { console.log(`助力失败:${data.data.bizMsg || data.msg}\n`) if (data.code === -30001 || (data.data && data.data.bizCode === 108)) $.canHelp = false if (data.data.bizCode === 103) $.delcode = true @@ -242,6 +289,7 @@ function harmony_collectScore(body = {}, taskType = '') { }) }) } + function interact_template_getLotteryResult() { return new Promise(resolve => { $.post(taskUrl('interact_template_getLotteryResult', {"appId":appId}), (err, resp, data) => { @@ -252,14 +300,17 @@ function interact_template_getLotteryResult() { } else { if (safeGet(data)) { data = JSON.parse(data); - let userAwardsCacheDto = data && data.data && data.data.result && data.data.result.userAwardsCacheDto + let userAwardsCacheDto = data && data.data && data.data.result && data.data.result.userAwardsCacheDto; if (userAwardsCacheDto) { if (userAwardsCacheDto.type === 2) { - console.log(`抽中:${userAwardsCacheDto.jBeanAwardVo.quantity}${userAwardsCacheDto.jBeanAwardVo.ext || `京豆`}`) + console.log(`抽中:${userAwardsCacheDto.jBeanAwardVo.quantity}${userAwardsCacheDto.jBeanAwardVo.ext || `京豆`}`); } else if (userAwardsCacheDto.type === 0) { console.log(`很遗憾未中奖~`) + } else if (userAwardsCacheDto.type === 1) { + console.log(`抽中:${userAwardsCacheDto.couponVo.prizeName},金额${userAwardsCacheDto.couponVo.usageThreshold}-${userAwardsCacheDto.couponVo.quota},使用时间${userAwardsCacheDto.couponVo.useTimeRange}`); } else { - console.log(JSON.stringify(data)) + console.log(`抽中:${JSON.stringify(data)}`); + message += `抽中:${JSON.stringify(data)}\n`; } } else { $.canLottery = false @@ -327,6 +378,50 @@ function getAuthorShareCode(url) { }) } +function TotalBean() { + return new Promise(async resolve => { + const options = { + "url": `https://wq.jd.com/user/info/QueryJDUserInfo?sceneval=2`, + "headers": { + "Accept": "application/json,text/plain, */*", + "Content-Type": "application/x-www-form-urlencoded", + "Accept-Encoding": "gzip, deflate, br", + "Accept-Language": "zh-cn", + "Connection": "keep-alive", + "Cookie": cookie, + "Referer": "https://wqs.jd.com/my/jingdou/my.shtml?sceneval=2", + "User-Agent": $.isNode() ? (process.env.JD_USER_AGENT ? process.env.JD_USER_AGENT : (require('./USER_AGENTS').USER_AGENT)) : ($.getdata('JDUA') ? $.getdata('JDUA') : "jdapp;iPhone;9.4.4;14.3;network/4g;Mozilla/5.0 (iPhone; CPU iPhone OS 14_3 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Mobile/15E148;supportJDSHWK/1") + } + } + $.post(options, (err, resp, data) => { + try { + if (err) { + console.log(`${JSON.stringify(err)}`) + console.log(`${$.name} API请求失败,请检查网路重试`) + } else { + if (data) { + data = JSON.parse(data); + if (data['retcode'] === 13) { + $.isLogin = false; //cookie过期 + return + } + if (data['retcode'] === 0) { + $.nickName = (data['base'] && data['base'].nickname) || $.UserName; + } else { + $.nickName = $.UserName + } + } else { + console.log(`京东服务器返回空数据`) + } + } + } catch (e) { + $.logErr(e, resp) + } finally { + resolve(); + } + }) + }) +} function safeGet(data) { try { if (typeof JSON.parse(data) == "object") { @@ -349,6 +444,5 @@ function jsonParse(str) { } } } - // 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)} \ No newline at end of file