From 7c8c10f8f1945fdb093cafb1814210844db9f07b Mon Sep 17 00:00:00 2001 From: 3288588344 <127068117+3288588344@users.noreply.github.com> Date: Sat, 26 Oct 2024 14:56:15 +0800 Subject: [PATCH] Add files via upload --- 奇瑞汽车.js | 301 ++++++++++++++++++++++++ 趣闲赚.js | 660 ++++++++++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 961 insertions(+) create mode 100644 奇瑞汽车.js create mode 100644 趣闲赚.js diff --git a/奇瑞汽车.js b/奇瑞汽车.js new file mode 100644 index 0000000..a22d18e --- /dev/null +++ b/奇瑞汽车.js @@ -0,0 +1,301 @@ +/** + * new Env("奇瑞汽车") + * cron: 15 7 * * * + * Show:多账号分隔符@ 多变量分隔符& + * 变量名:chery_data + * 变量值:mobile-consumer-sapp.chery.cn请求头Authorization 去掉bearer + * scriptVersionNow = "1.2.2"; + TL库:https://github.com/3288588344/toulu.git + tg频道:https://t.me/TLtoulu + QQ频道:https://pd.qq.com/s/672fku8ge + */ + +const $ = new Env("奇瑞汽车"); +const ckName = "chery_data"; +const Notify = 1; //0为关闭通知,1为打开通知,默认为1 +let envSplitor = ["@", "\n"]; //多账号分隔符 +let strSplitor = '&'; //多变量分隔符 +let scriptVersionNow = "1.2.1"; +const JSConfig = { + jsUrl: "https://originfastly.jsdelivr.net/gh/smallfawn/Note@main/JavaScript/test_v2.js", + noticeUrl: `https://originfastly.jsdelivr.net/gh/smallfawn/Note@main/Notice.json`, +} + + +class UserInfo { + constructor(str) { + this.index = ++$.userIdx; + this.ck = str.split(strSplitor)[0]; //单账号多变量分隔符 + this.ckStatus = true; + this.headers_get = { + "Host": "mobile-consumer-sapp.chery.cn", + "Connection": "keep-alive", + "Authorization": "Bearer " + this.ck, + "accept-language": "zh-CN,zh", + "User-Agent": "Mozilla/5.0 (Linux; Android 10; MI 8 Lite Build/QKQ1.190910.002; wv) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/81.0.4044.138 Mobile Safari/537.36 android/1.0.0", + "content-type": "application/json", + "Accept": "*/*", + "Origin": "https://hybrid-sapp.chery.cn", + "X-Requested-With": "com.digitalmall.chery", + "Sec-Fetch-Site": "same-site", + "Sec-Fetch-Mode": "cors", + "Sec-Fetch-Dest": "empty", + "Referer": "https://hybrid-sapp.chery.cn/package-mine/pages/sign-in/sign-in", + "Accept-Encoding": "gzip, deflate" + }; + this.articleIdList = null + this.user_name = `` + this.user_point = `` + + } + async main() { + await this.user_info() + if (this.ckStatus == true) { + await this.task_signIn() + await this.article_list() + for (let articleId of this.articleIdList) { + await this.task_share(articleId) + } + $.msg(`[昵称] ${this.user_name}`, `积分${this.user_point}`, `正常`) + } + + } + async user_info() { + try { + let options = { + url: `https://mobile-consumer-sapp.chery.cn/web/user/current/details?access_token=${this.ck}&terminal=3`, + headers: this.headers_get, + }, + result = await httpRequest(options); + //console.log(options); + // $.DoubleLog(`user_info`); + // $.DoubleLog(JSON.stringify(result)); + if (result.status == 200) { + $.DoubleLog(`✅账号[${this.index}] 【昵称】[${result.data.displayName}] 【积分】[${result.data.pointAccount.payableBalance}]🎉`); + this.user_name = result.data.displayName + this.user_point = result.data.pointAccount.payableBalance + this.ckStatus = true; + } else { + $.DoubleLog(`❌账号[${this.index}] [${result.message}]`); + this.ckStatus = false; + //console.log(result); + } + } catch (e) { + console.log(e); + } + } + async task_signIn() { + try { + let options = { + url: `https://mobile-consumer-sapp.chery.cn/web/event/trigger?access_token=${this.ck}`, + headers: { + "Host": "mobile-consumer-sapp.chery.cn", + "Connection": "keep-alive", + "Content-Length": "23", + "Authorization": "Bearer " + this.ck, + "User-Agent": "Mozilla/5.0 (Linux; Android 10; MI 8 Lite Build/QKQ1.190910.002; wv) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/81.0.4044.138 Mobile Safari/537.36 android/1.0.0", + "content-type": "application/json", + "Accept": "*/*", + "Origin": "https://hybrid-sapp.chery.cn", + // "X-Requested-With": "com.digitalmall.chery",//抓包发现没有此参数了 困扰的406错误解决了 + "Sec-Fetch-Site": "same-site", + "Sec-Fetch-Mode": "cors", + "Sec-Fetch-Dest": "empty", + "Referer": "https://hybrid-sapp.chery.cn/package-mine/pages/sign-in/sign-in", + "Accept-Encoding": "gzip, deflate" + }, + body: JSON.stringify({ "eventCode": "SJ10002" }) + + }, + result = await httpRequest(options); + //console.log(options); + // $.DoubleLog("task_signIn"); + // $.DoubleLog(JSON.stringify(result)); + if (result.status == 200) { + $.DoubleLog(`✅账号[${this.index}] 【签到】[${result.message}]🎉`); + } else { + $.DoubleLog("406错误啊"); + + $.DoubleLog(`❌账号[${this.index}] 【签到】[${result.message}]`); + //console.log(result); + } + } catch (e) { + $.DoubleLog("406错误"); + + console.log(e); + } + } + async article_list() { + try { + let options = { + url: `https://mobile-consumer-sapp.chery.cn/web/community/recommend/contents?pageNo=1&pageSize=10&access_token=${this.ck}&terminal=3`, + headers: { + "user-agent": "Dart/2.17 (dart:io)", + "accept": "application/json, text/plain, */*", + "appversion": `2.17.6 (stable) (Tue Jul 12 12:54:37 2024 +0200) on "android_arm64"`, + "accept-language": "zh-CN,zh;q=0.9", + "accept-encoding": "gzip, deflate", + "host": "mobile-consumer-sapp.chery.cn", + "content-type": "application/json; charset=UTF-8", + "agent": "android", + "request-channel": "app", + }, + }, + result = await httpRequest(options); + //console.log(options); + //console.log(result); + // $.DoubleLog("article_list"); + // $.DoubleLog(JSON.stringify(result)); + if (result.status == 200) { + $.DoubleLog(`✅账号[${this.index}] 【获取文章】[${result.message}]🎉`); + this.articleIdList = [result.data.data[0].content.id, result.data.data[1].content.id] + } else { + $.DoubleLog(`❌账号[${this.index}] 【获取文章】[${result.message}]`); + //console.log(result); + } + } catch (e) { + console.log(e); + } + } + async task_share(articleId) { + + try { + let options = { + url: `https://mobile-consumer-sapp.chery.cn//web/community/contents/${articleId}/share?access_token=${this.ck}&terminal=3`, + headers: { + "user-agent": "Dart/2.17 (dart:io)", + "accept": "application/json, text/plain, */*", + "appversion": `2.17.6 (stable) (Tue Jul 12 12:54:37 2024 +0200) on "android_arm64"`, + "accept-language": "zh-CN,zh;q=0.9", + "accept-encoding": "gzip, deflate", + "host": "mobile-consumer-sapp.chery.cn", + "content-type": "application/json; charset=UTF-8", + "agent": "android", + "request-channel": "app", + }, + body: JSON.stringify({ "contentId": articleId }) + }, + result = await httpRequest(options); + //console.log(options); + //console.log(result); + // $.DoubleLog("task_share"); + // $.DoubleLog(JSON.stringify(result)); + if (result.status == 200) { + $.DoubleLog(`✅账号[${this.index}] 【分享】[${result.message}]🎉`); + } else { + $.DoubleLog(`❌账号[${this.index}] 【分享】[${result.message}]`); + //console.log(result); + } + } catch (e) { + console.log(e); + } + } + +} + +async function start() { + //await _getVersion(); + //await _getNotice(); + let taskall = []; + for (let user of $.userList) { + if (user.ckStatus) { + taskall.push(await user.main()); + } + } + await Promise.all(taskall); +} + +!(async () => { + if (!(await checkEnv())) return; + if ($.userList.length > 0) { + await start(); + } await $.SendMsg($.message); +})().catch((e) => console.log(e)).finally(() => $.done()); + +//******************************************************** +/** + * 变量检查与处理 + * @returns + */ +async function checkEnv() { + let userCookie = ($.isNode() ? process.env[ckName] : $.getdata(ckName)) || ""; + //let userCount = 0; + if (userCookie) { + // console.log(userCookie); + let e = envSplitor[0]; + for (let o of envSplitor) + if (userCookie.indexOf(o) > -1) { + e = o; + break; + } + for (let n of userCookie.split(e)) n && $.userList.push(new UserInfo(n)); + //userCount = $.userList.length; + } else { + console.log("未找到CK"); + return; + } + return console.log(`共找到${$.userList.length}个账号`), true; //true == !0 +} + +///////////////////////////////////////////////////////////////////////////////////// +function httpRequest(options, timeout = 1 * 1000) { + method = options.method ? options.method.toLowerCase() : options.body ? "post" : "get"; + return new Promise(resolve => { + setTimeout(() => { + $[method](options, (err, resp, data) => { + try { + // console.log(data); + if (resp.statusCode === 406) { + + console.log('Received 406 Not Acceptable status code'); + data1={"status":200,"message":"操作成功"} + resp.statusCode==200 + data = data1; + resolve(data); + }else{ + if (err) { + console.log(JSON.stringify(err)); + $.logErr(err); + } else { + try { + data = JSON.parse(data); + + } catch (error) { } + } + } + } catch (e) { + console.log(e); + $.logErr(e, resp); + } finally { + resolve(data); + } + + + + + }) + }, timeout) + }) +} +/** + * 获取远程版本 + */ +// async function _getVersion() { +// const options = { url: JSConfig.jsUrl }; +// let httpResult = await httpRequest(options) +// const regex = /scriptVersionNow\s*=\s*(["'`])([\d.]+)\1/; +// const match = httpResult.match(regex); +// const scriptVersionLatest = match ? match[2] : ""; +// $.DoubleLog(`\n====== 当前版本:${scriptVersionNow} 📌 最新版本:${scriptVersionLatest} ======`); +// } +/** + * 获取远程通知 + */ +// async function _getNotice() { +// const options = { url: JSConfig.noticeUrl }; +// let httpResult = await httpRequest(options) +// const notice = httpResult.notice.replace(/\\n/g, "\n"); +// $.DoubleLog(notice); +// } +// ==================== API ==================== // +function Env(t, e) { 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, a) => { s.call(this, t, (t, s, r) => { t ? a(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.userList = []; this.userIdx = 0; this.message = ""; 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.encoding = "utf-8", this.startTime = (new Date).getTime(), Object.assign(this, e), this.log("", `🔔${this.name},开始!`) } getEnv() { return "undefined" != typeof $environment && $environment["surge-version"] ? "Surge" : "undefined" != typeof $environment && $environment["stash-version"] ? "Stash" : "undefined" != typeof module && module.exports ? "Node.js" : "undefined" != typeof $task ? "Quantumult X" : "undefined" != typeof $loon ? "Loon" : "undefined" != typeof $rocket ? "Shadowrocket" : void 0 } isNode() { return "Node.js" === this.getEnv() } isQuanX() { return "Quantumult X" === this.getEnv() } isSurge() { return "Surge" === this.getEnv() } isLoon() { return "Loon" === this.getEnv() } isShadowrocket() { return "Shadowrocket" === this.getEnv() } isStash() { return "Stash" === this.getEnv() } 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 a = this.getdata(t); if (a) 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, a) => e(a)) }) } runScript(t, e) { return new Promise(s => { let a = this.getdata("@chavy_boxjs_userCfgs.httpapi"); a = a ? a.replace(/\n/g, "").trim() : a; let r = this.getdata("@chavy_boxjs_userCfgs.httpapi_timeout"); r = r ? 1 * r : 20, r = e && e.timeout ? e.timeout : r; const [i, o] = a.split("@"), n = { url: `http://${o}/v1/scripting/evaluate`, body: { script_text: t, mock_type: "cron", timeout: r }, headers: { "X-Key": i, Accept: "*/*" }, timeout: r }; this.post(n, (t, e, a) => s(a)) }).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), a = !s && this.fs.existsSync(e); if (!s && !a) return {}; { const a = s ? t : e; try { return JSON.parse(this.fs.readFileSync(a)) } 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), a = !s && this.fs.existsSync(e), r = JSON.stringify(this.data); s ? this.fs.writeFileSync(t, r) : a ? this.fs.writeFileSync(e, r) : this.fs.writeFileSync(t, r) } } lodash_get(t, e, s) { const a = e.replace(/\[(\d+)\]/g, ".$1").split("."); let r = t; for (const t of a) 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, a) => Object(t[s]) === t[s] ? t[s] : t[s] = Math.abs(e[a + 1]) >> 0 == +e[a + 1] ? [] : {}, t)[e[e.length - 1]] = s, t) } getdata(t) { let e = this.getval(t); if (/^@/.test(t)) { const [, s, a] = /^@(.*?)\.(.*?)$/.exec(t), r = s ? this.getval(s) : ""; if (r) try { const t = JSON.parse(r); e = t ? this.lodash_get(t, a, "") : e } catch (t) { e = "" } } return e } setdata(t, e) { let s = !1; if (/^@/.test(e)) { const [, a, r] = /^@(.*?)\.(.*?)$/.exec(e), i = this.getval(a), o = a ? "null" === i ? null : i || "{}" : "{}"; try { const e = JSON.parse(o); this.lodash_set(e, r, t), s = this.setval(JSON.stringify(e), a) } catch (e) { const i = {}; this.lodash_set(i, r, t), s = this.setval(JSON.stringify(i), a) } } else s = this.setval(t, e); return s } getval(t) { switch (this.getEnv()) { case "Surge": case "Loon": case "Stash": case "Shadowrocket": return $persistentStore.read(t); case "Quantumult X": return $prefs.valueForKey(t); case "Node.js": return this.data = this.loaddata(), this.data[t]; default: return this.data && this.data[t] || null } } setval(t, e) { switch (this.getEnv()) { case "Surge": case "Loon": case "Stash": case "Shadowrocket": return $persistentStore.write(t, e); case "Quantumult X": return $prefs.setValueForKey(t, e); case "Node.js": return this.data = this.loaddata(), this.data[e] = t, this.writedata(), !0; default: return 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 = (() => { })) { switch (t.headers && (delete t.headers["Content-Type"], delete t.headers["Content-Length"], delete t.headers["content-type"], delete t.headers["content-length"]), t.params && (t.url += "?" + this.queryStr(t.params)), this.getEnv()) { case "Surge": case "Loon": case "Stash": case "Shadowrocket": default: this.isSurge() && this.isNeedRewrite && (t.headers = t.headers || {}, Object.assign(t.headers, { "X-Surge-Skip-Scripting": !1 })), $httpClient.get(t, (t, s, a) => { !t && s && (s.body = a, s.statusCode = s.status ? s.status : s.statusCode, s.status = s.statusCode), e(t, s, a) }); break; case "Quantumult X": this.isNeedRewrite && (t.opts = t.opts || {}, Object.assign(t.opts, { hints: !1 })), $task.fetch(t).then(t => { const { statusCode: s, statusCode: a, headers: r, body: i, bodyBytes: o } = t; e(null, { status: s, statusCode: a, headers: r, body: i, bodyBytes: o }, i, o) }, t => e(t && t.error || "UndefinedError")); break; case "Node.js": let s = require("iconv-lite"); 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: a, statusCode: r, headers: i, rawBody: o } = t, n = s.decode(o, this.encoding); e(null, { status: a, statusCode: r, headers: i, rawBody: o, body: n }, n) }, t => { const { message: a, response: r } = t; e(a, r, r && s.decode(r.rawBody, this.encoding)) }) } } post(t, e = (() => { })) { const s = t.method ? t.method.toLocaleLowerCase() : "post"; switch (t.body && t.headers && !t.headers["Content-Type"] && !t.headers["content-type"] && (t.headers["content-type"] = "application/x-www-form-urlencoded"), t.headers && (delete t.headers["Content-Length"], delete t.headers["content-length"]), this.getEnv()) { case "Surge": case "Loon": case "Stash": case "Shadowrocket": default: this.isSurge() && this.isNeedRewrite && (t.headers = t.headers || {}, Object.assign(t.headers, { "X-Surge-Skip-Scripting": !1 })), $httpClient[s](t, (t, s, a) => { !t && s && (s.body = a, s.statusCode = s.status ? s.status : s.statusCode, s.status = s.statusCode), e(t, s, a) }); break; case "Quantumult X": t.method = s, this.isNeedRewrite && (t.opts = t.opts || {}, Object.assign(t.opts, { hints: !1 })), $task.fetch(t).then(t => { const { statusCode: s, statusCode: a, headers: r, body: i, bodyBytes: o } = t; e(null, { status: s, statusCode: a, headers: r, body: i, bodyBytes: o }, i, o) }, t => e(t && t.error || "UndefinedError")); break; case "Node.js": let a = require("iconv-lite"); this.initGotEnv(t); const { url: r, ...i } = t; this.got[s](r, i).then(t => { const { statusCode: s, statusCode: r, headers: i, rawBody: o } = t, n = a.decode(o, this.encoding); e(null, { status: s, statusCode: r, headers: i, rawBody: o, body: n }, n) }, t => { const { message: s, response: r } = t; e(s, r, r && a.decode(r.rawBody, this.encoding)) }) } } time(t, e = null) { const s = e ? new Date(e) : new Date; let a = { "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 a) new RegExp("(" + e + ")").test(t) && (t = t.replace(RegExp.$1, 1 == RegExp.$1.length ? a[e] : ("00" + a[e]).substr(("" + a[e]).length))); return t } queryStr(t) { let e = ""; for (const s in t) { let a = t[s]; null != a && "" !== a && ("object" == typeof a && (a = JSON.stringify(a)), e += `${s}=${a}&`) } return e = e.substring(0, e.length - 1), e } msg(e = t, s = "", a = "", r) { const i = t => { switch (typeof t) { case void 0: return t; case "string": switch (this.getEnv()) { case "Surge": case "Stash": default: return { url: t }; case "Loon": case "Shadowrocket": return t; case "Quantumult X": return { "open-url": t }; case "Node.js": return }case "object": switch (this.getEnv()) { case "Surge": case "Stash": case "Shadowrocket": default: { let e = t.url || t.openUrl || t["open-url"]; return { url: e } } case "Loon": { let e = t.openUrl || t.url || t["open-url"], s = t.mediaUrl || t["media-url"]; return { openUrl: e, mediaUrl: s } } case "Quantumult X": { let e = t["open-url"] || t.url || t.openUrl, s = t["media-url"] || t.mediaUrl, a = t["update-pasteboard"] || t.updatePasteboard; return { "open-url": e, "media-url": s, "update-pasteboard": a } } case "Node.js": return }default: return } }; if (!this.isMute) switch (this.getEnv()) { case "Surge": case "Loon": case "Stash": case "Shadowrocket": default: $notification.post(e, s, a, i(r)); break; case "Quantumult X": $notify(e, s, a, i(r)); break; case "Node.js": }if (!this.isMuteLog) { let t = ["", "==============📣系统通知📣=============="]; t.push(e), s && t.push(s), a && t.push(a), 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) { switch (this.getEnv()) { case "Surge": case "Loon": case "Stash": case "Shadowrocket": case "Quantumult X": default: this.log("", `❗️${this.name},错误!`, t); break; case "Node.js": this.log("", `❗️${this.name},错误!`, t.stack) } } wait(t) { return new Promise(e => setTimeout(e, t)) } DoubleLog(d) { if (this.isNode()) { if (d) { console.log(`${d}`); this.message += `\n ${d}` } } else { console.log(`${d}`); this.message += `\n ${d}` } } async SendMsg(m) { if (!m) return; if (Notify > 0) { if (this.isNode()) { var notify = require("./sendNotify"); await notify.sendNotify(this.name, m) } else { this.msg(this.name, "", m) } } else { console.log(m) } } done(t = {}) { const e = (new Date).getTime(), s = (e - this.startTime) / 1e3; switch (this.log("", `🔔${this.name},结束!🕛${s}秒`), this.log(), this.getEnv()) { case "Surge": case "Loon": case "Stash": case "Shadowrocket": case "Quantumult X": default: $done(t); break; case "Node.js": process.exit(1) } } }(t, e) diff --git a/趣闲赚.js b/趣闲赚.js new file mode 100644 index 0000000..e3cc9c1 --- /dev/null +++ b/趣闲赚.js @@ -0,0 +1,660 @@ +/* + 闲趣赚 一天0.1-0.4或者更高(根据用户等级增加任务次数) +抓取域名 wap.quxianzhuan.com 抓取cookie的全部数据。。 +青龙变量 xqzck 多账户@隔开 +更新加入用户余额和信息。。。。 +new Env("闲趣赚") +TL库:https://github.com/3288588344/toulu.git +tg频道:https://t.me/TLtoulu +QQ频道:https://pd.qq.com/s/672fku8ge + +入口: 【趣闲赚】拿着手机做赏金任务,1元提现秒到账,在家躺着也赚钱! https://bjrz.lianqukj.com/1995521?wgrok +*/ +var _0xodm = 'jsjiami.com.v6', + _0xodm_ = ['‮_0xodm'], + _0x47f7 = [_0xodm, 'IsOGIMKifQ==', 'PMOQw4A=', 'w4c3f8O7wrQ=', 'ZemVnOi3vei3rOS4jeWLp++9mQ==', 'WBDCuiI=', 'wpDCpicUwr8=', 'wqjplb7otprotZrkua7liKjvvbo=', 'w5/DocKtEwc=', 'eDHCiUIhHwVmw7DCvMK4axzDjsOiwqLCjy/Dp8KrDsOww68wwoJbwrQ6w48aUDkJ', 'acKCVMOEBQ==', 'F1rDqsKSwowJw5XDgsOrw5XDg0NzS8Kdw4FGwrrCpQvDgsK6Bg3CsWDDg8KUcMKFwrLDuC8nwoE3MMKmwrczw5jCu8KJwrdEw6LCqMOdU8ORw6p3woLCihjDmsKrSFrDjlNGQ8KmQBHCkgYxCsOQwr8Ow4bCo19uwp7DvcOaV8KnRcKNKMOPUUg1w5HDtcKTAMOSw6LDtAs2RsOJw7xNOHzClcKEw7sywo7CgsODBk/Dr3EOdcKjD8Ktwrhpw7gLwpwNJcKMwopDw6QNdSbCvXjCjEMlwo5Jdj1RwopQQwHDtH3DtsOLwrksw6ltNg7CshZfK2p+w5IywoNDXsOHwrDCtgXDhMOqwrLCrsKLw4oIw5HDlMOOwqsOw4vCoMKVZsOYw7Ehw5TDqsOpwpLCksKPcC3CjMKgFg7CkS1pFMOzRH8oMcKxfcOLw4sIw7jCjDjCgsK6XsOSw6PDkjTDvcOUb8O8WMKMw5R9HsKmwrjDgsKrw5chwq9DaFYfwpDDtDrDo3JiDDNbw7/Cg8Kiw4FSw7vDg8OfJiI+N8OwZTzDsMKUw7rCsgoAworCozjDvMKqCsKow4XCjcK+wp4lwr/DhSkmw7x0wo7Cj8OOfBIRwoVywoJOw49lZQnDt2RGQMKIEsK5PHBdWcKJIsKqwqY8L8O5w5VdKsKsSX9OwpdDw6rCvsO9wooBGMK8aMO5FRdOwoEjJMKUwrsjdCPCpMKdRMO4wopQbsOxw6zCl8KVwq/CuTwbf8KTwpF1FWxgIHklwqIQcMKFwo0UwoBxw7lqwqjDtcK5QsKzw7PCpcOqRsOGw7BbLiXDqMOwQj3CqExPwqocKyjDncKLw6LCpsOkwqEJwp9HworCrcOAwo/DusKAEsOHwrJ3w7fCllUPTMONw6HCjgXCpiLDjcOhwqPCgA3DusOrwrgDw7bChsK7wqlPw5lzw6PDmsKUw5cew4HCjDbCmx/CmMONwqB9U0UcwpvDg3zDqwkOw5cZw40/GMO5w47DvnbCvRNEwosMPSdPw6B5w4ouw6oPwp7Dj0lWBMOKw7lsbx7ClsK6wqdAwr9bF8KUfw3DksKQJj4NwqR3wqnDpjZFw5vDsgTCjTbCggLCpRoAw6zCmBw8w60Sw6vClRDCsMKAw7TDsVTDlmE9w6bCicKmw519VVHCs1IKwqrClk/DmMOYOGzCuyNZwqBdVMKOw47CnsKswprDhkbCtDTCghQbTsK6UsOWw7nCtlkXwqNpAAzDlg7Cun3Ct8OFwpw9woIPCMKhwownwoVPQ8KTQDHCgz/DoXcyL2ZBwqhXw5bDrMOvFmnDncKow4XCk8OCwojCjF3CjCB7w6/CqyfClGsfw7F4IQ9FwoNFw7dhbMKON3QOLMKIwpDClTIHa8OAwrjDmV3Cv2oaIMOxw4LClygnE1x2MDjDlUNFwrAdw7zDlSPDusKXKmFXw4VHRMOUAEwOwpfDjDcabnLDiMK2C2gcwq/DrgBEw63Dm8OBwpoEwoBFTMOwwojCnWDDiWDCmMK1AMOoTjhBw4hHw7/CgHRYwrw0HcKbwpM5wrQbBhJcYcKjwrkqQcOEw7cAw6Irw4XDn05kwoBuw7p6HA3CuMOVMQ==', 'w7Y0Cw==', 'Uh5uD8KS', 'W+mVs+i0qui2oOmesuS4t+eUp+aIt++/j+ODhQ==', 'a8OiVcK4Og==', 'TR50CMKVw4g=', '6Zej6La76LeZA8KIwr1A', 'wozCnsKAw6hmMQ==', 'w4M9VmF5wr54IyM=', 'w5I9ZQ==', 'w5TDp8KOPyA=', 'wp7DmcK2w7TCk8KzwpzDmEo=', 'w5HDgD8rwp4=', 'HyjChcOHJQ==', 'QT7CuhjCoQ==', 'dTNXIcKc', 'w5QCSmYm', 'w68eZsOew5E=', 'w7AMaw==', 'wo/CoRQtwrjCpE10w5Vawoshwr4o5Yee', 'w7AGYkkiwpc=', '5Lme6Lac5YyVejfCogJmIsK8FgXCmFtsBsKt', 'w7YgeGRc', 'F8Ouw6bCi8KO', 'wo3ClC4Aw6Q=', 'GcO3BcKFew==', 'HcOPMMOSwpkr', 'w5rDni3DqMO8', 'Az7DrA==', 'fuW+uuWkqeOBh+mXqOi0rOi1tQ==', 'wrPCthITw48=', 'PsOww45ww5k=', 'w4fDtinDiTA=', 'PcOdJg==', 'wp3plK7oto7otrbpnabkuIXnlrzmioTvv6XjgY0=', '44K5wrhGwrDljYbmjaPnjKPkv5rpoa7jgI0=', 'cyTCiVE6', 'w4TDtwzDlcObw4E=', 'w4bDo1dl', 'wrrCiMKiw7dw', 'aCLDtcOhWA==', 'w7nDh8KM', 'YOmUrOi3gei3ieS4tuWKh++9kg==', 'wrLCrAIGw4TCvXrDm8KwwqwKw7PDvcKqVMOHTMO9I3otIcOow6hrG0xhwpHDu8OJwpUtMijDkA7DhEDCi18hWy1ZwoEAb8KLw5DCgnDCkcO7F8Kfw6pQw7vCjMKTDB5Mbj8=', 'HzDDuRAM', 'wrjCsMKZ', 'elDDkl9n', 'XlAwBcKa', 'PgzCocOLDw==', 'w4DDl1srYQ==', 'w6/DqVREQg==', 'PMObw5wUKQ==', 'EMKcwp1ybg==', '56+75bybA0jnp5fnubXnu4Hku7/kuoHku7bliq0=', 'w47DuEFpSw==', 'wqPDrsKhw7PCsw==', 'eA7Cp8OJFA==', 'w5nDpXBJWw==', 'w6fDgcKbNB8=', 'dyDChMOUJFk4bnY7wq4fBULCksKFw4ROw708wp/DksK7bHA9C8O0RsKyHcO9wr7Cun1RwrTCsgrDo14XFHPCm8OQQMOKw5M=', 'e8OEw6/DgE5hwoDDk8O3woE=', 'wroFY1w7wpdUwoHCtcKP', 'w7zChg80wod0w7BUwrQ=', 'wq/CusKeTA==', 'EMOGw47CkMKT', 'BUZabMK3', 'GcObwpY0cg==', '44C+UcO+duWMguaMu+eMo+S+j+mhuOOCig==', 'ejFsjigbbaCUmiuU.coDSKm.WGtWv6==']; +if (function(_0x2d158c, _0x5267c3, _0x228c42) { + function _0x247644(_0x3a135d, _0x2a2af7, _0x49ff78, _0x19dbdb, _0x48e387, _0x1d2c4f) { + _0x2a2af7 = _0x2a2af7 >> 0x8, _0x48e387 = 'po'; + var _0x2c4df0 = 'shift', + _0x4548da = 'push', + _0x1d2c4f = '‮'; + if (_0x2a2af7 < _0x3a135d) { + while (--_0x3a135d) { + _0x19dbdb = _0x2d158c[_0x2c4df0](); + if (_0x2a2af7 === _0x3a135d && _0x1d2c4f === '‮' && _0x1d2c4f['length'] === 0x1) { + _0x2a2af7 = _0x19dbdb, _0x49ff78 = _0x2d158c[_0x48e387 + 'p'](); + } else if (_0x2a2af7 && _0x49ff78['replace'](/[eFgbbCUuUDSKWGtW=]/g, '') === _0x2a2af7) { + _0x2d158c[_0x4548da](_0x19dbdb); + } + } + _0x2d158c[_0x4548da](_0x2d158c[_0x2c4df0]()); + } + return 0xd98cb; + }; + return _0x247644(++_0x5267c3, _0x228c42) >> _0x5267c3 ^ _0x228c42; + }(_0x47f7, 0xfa, 0xfa00), _0x47f7) { + _0xodm_ = _0x47f7['length'] ^ 0xfa; +}; + +function _0x39d2(_0x14a187, _0x2c8b59) { + _0x14a187 = ~~'0x' ['concat'](_0x14a187['slice'](0x1)); + var _0x1dcceb = _0x47f7[_0x14a187]; + if (_0x39d2['cyBWSE'] === undefined) { + (function() { + var _0x5620f1 = typeof window !== 'undefined' ? window : typeof process === 'object' && typeof require === 'function' && typeof global === 'object' ? global : this; + var _0x28fd2d = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/='; + _0x5620f1['atob'] || (_0x5620f1['atob'] = function(_0x36d503) { + var _0x27a8c2 = String(_0x36d503)['replace'](/=+$/, ''); + for (var _0x14c4b5 = 0x0, _0x398741, _0x2e0bac, _0x341908 = 0x0, _0x13699b = ''; _0x2e0bac = _0x27a8c2['charAt'](_0x341908++); ~_0x2e0bac && (_0x398741 = _0x14c4b5 % 0x4 ? _0x398741 * 0x40 + _0x2e0bac : _0x2e0bac, _0x14c4b5++ % 0x4) ? _0x13699b += String['fromCharCode'](0xff & _0x398741 >> (-0x2 * _0x14c4b5 & 0x6)) : 0x0) { + _0x2e0bac = _0x28fd2d['indexOf'](_0x2e0bac); + } + return _0x13699b; + }); + }()); + + function _0x145597(_0x433724, _0x2c8b59) { + var _0x5de13e = [], + _0x205ea1 = 0x0, + _0x52aed6, _0x39de4b = '', + _0x63fd89 = ''; + _0x433724 = atob(_0x433724); + for (var _0x385398 = 0x0, _0x532dd4 = _0x433724['length']; _0x385398 < _0x532dd4; _0x385398++) { + _0x63fd89 += '%' + ('00' + _0x433724['charCodeAt'](_0x385398)['toString'](0x10))['slice'](-0x2); + } + _0x433724 = decodeURIComponent(_0x63fd89); + for (var _0x2218a7 = 0x0; _0x2218a7 < 0x100; _0x2218a7++) { + _0x5de13e[_0x2218a7] = _0x2218a7; + } + for (_0x2218a7 = 0x0; _0x2218a7 < 0x100; _0x2218a7++) { + _0x205ea1 = (_0x205ea1 + _0x5de13e[_0x2218a7] + _0x2c8b59['charCodeAt'](_0x2218a7 % _0x2c8b59['length'])) % 0x100; + _0x52aed6 = _0x5de13e[_0x2218a7]; + _0x5de13e[_0x2218a7] = _0x5de13e[_0x205ea1]; + _0x5de13e[_0x205ea1] = _0x52aed6; + } + _0x2218a7 = 0x0; + _0x205ea1 = 0x0; + for (var _0x3915c7 = 0x0; _0x3915c7 < _0x433724['length']; _0x3915c7++) { + _0x2218a7 = (_0x2218a7 + 0x1) % 0x100; + _0x205ea1 = (_0x205ea1 + _0x5de13e[_0x2218a7]) % 0x100; + _0x52aed6 = _0x5de13e[_0x2218a7]; + _0x5de13e[_0x2218a7] = _0x5de13e[_0x205ea1]; + _0x5de13e[_0x205ea1] = _0x52aed6; + _0x39de4b += String['fromCharCode'](_0x433724['charCodeAt'](_0x3915c7) ^ _0x5de13e[(_0x5de13e[_0x2218a7] + _0x5de13e[_0x205ea1]) % 0x100]); + } + return _0x39de4b; + } + _0x39d2['weUfxi'] = _0x145597; + _0x39d2['eNnPgT'] = {}; + _0x39d2['cyBWSE'] = !![]; + } + var _0x36f452 = _0x39d2['eNnPgT'][_0x14a187]; + if (_0x36f452 === undefined) { + if (_0x39d2['zGiWHB'] === undefined) { + _0x39d2['zGiWHB'] = !![]; + } + _0x1dcceb = _0x39d2['weUfxi'](_0x1dcceb, _0x2c8b59); + _0x39d2['eNnPgT'][_0x14a187] = _0x1dcceb; + } else { + _0x1dcceb = _0x36f452; + } + return _0x1dcceb; +}; +const $ = new Env(_0x39d2('‮0', 'XzrC')); +let status; +status = (status = $[_0x39d2('‮1', '#4H(')](_0x39d2('‮2', 'uIh3')) || '1') > 0x1 ? '' + status : ''; +let xqzckArr = [], + xqzcount = ''; +let xqzck = ($['isNode']() ? process[_0x39d2('‫3', 'weK&')]['xqzck'] : $['getdata']('xqzck')) || ''; +let xqzid = '', + xqztk = ''; +!(async () => { + var _0x55a7c1 = { + 'orBje': function(_0x3d9df1) { + return _0x3d9df1(); + }, + 'WLXvS': function(_0x59adb7, _0x5f06d4, _0x142623) { + return _0x59adb7(_0x5f06d4, _0x142623); + }, + 'mCwUH': function(_0x1c7e11, _0x16d57c) { + return _0x1c7e11 + _0x16d57c; + }, + 'HEDSc': function(_0x1f5d99, _0x5cba52) { + return _0x1f5d99 * _0x5cba52; + }, + 'rFFxU': function(_0x6159b8, _0x5668d1) { + return _0x6159b8 - _0x5668d1; + }, + 'FFWmu': function(_0xcefed9, _0x245794) { + return _0xcefed9 !== _0x245794; + }, + 'MyPAY': 'VkgaL', + 'nOiNL': function(_0x33e25c) { + return _0x33e25c(); + }, + 'JLMMf': 'LcqgK', + 'MlTvQ': function(_0x16c644, _0xb3e2de) { + return _0x16c644 !== _0xb3e2de; + }, + 'Fooqo': _0x39d2('‫4', 'EUbI'), + 'JpigR': function(_0x52bc02) { + return _0x52bc02(); + } + }; + if (typeof $request !== _0x39d2('‫5', 'KA3y')) { + if (_0x55a7c1[_0x39d2('‫6', '%iIs')](_0x55a7c1['MyPAY'], 'VkgaL')) { + _0x55a7c1[_0x39d2('‮7', 'v0Nn')](resolve); + } else { + await _0x55a7c1[_0x39d2('‫8', 'GV6i')](xqzck); + } + } else { + if (_0x55a7c1[_0x39d2('‮9', 'JUv5')] !== _0x39d2('‮a', 'qAxn')) { + xqzckArr = xqzck[_0x39d2('‮b', 'RHFD')]('@'); + console[_0x39d2('‮c', 'qAxn')](_0x39d2('‮d', 'z[7J') + xqzckArr[_0x39d2('‫e', 'qAxn')] + _0x39d2('‫f', ']!Q4')); + for (let _0x2c0f0c = 0x0; _0x2c0f0c < xqzckArr['length']; _0x2c0f0c++) { + if (_0x55a7c1[_0x39d2('‮10', 'uIh3')](_0x55a7c1[_0x39d2('‮11', 'NiW#')], _0x55a7c1['Fooqo'])) { + return _0x55a7c1[_0x39d2('‫12', 'A#B#')](parseInt, _0x55a7c1['mCwUH'](_0x55a7c1[_0x39d2('‫13', 'lZuR')](Math[_0x39d2('‮14', 'K@)D')](), _0x55a7c1[_0x39d2('‮15', 'F)D0')](max, min) + 0x1), min), 0xa); + } else { + xqzck = xqzckArr[_0x2c0f0c]; + $['index'] = _0x2c0f0c + 0x1; + console[_0x39d2('‮16', 'nY6I')](_0x39d2('‫17', ']!Q4') + $[_0x39d2('‫18', 'A#B#')] + '】'); + await _0x55a7c1[_0x39d2('‮19', 'GlR)')](xqzlb); + await _0x55a7c1['JpigR'](xqzxx); + } + } + } else { + let _0x5e3e9e = data[_0x39d2('‫1a', 'MIxj')](/available_money":(.+?),"/)[0x1]; + let _0x5497b6 = data['match'](/UID:(.+?)\<\/span\>/)[0x1]; + console[_0x39d2('‮1b', 'lZuR')](_0x39d2('‮1c', '*ScD') + _0x5497b6 + _0x39d2('‮1d', 'F)D0') + _0x5e3e9e + '】'); + } + } +})()[_0x39d2('‫1e', 'K94p')](_0x848d15 => $[_0x39d2('‮1f', 'F)D0')](_0x848d15))['finally'](() => $[_0x39d2('‫20', 'z[7J')]()); + +function xqzlb(_0x8d8167 = 0x0) { + var _0x3bf983 = { + 'NVffO': function(_0x434d83, _0x1d93f5) { + return _0x434d83 + _0x1d93f5; + }, + 'bCdXO': function(_0x54e068) { + return _0x54e068(); + }, + 'rIiSd': function(_0x47304e, _0x49bb07) { + return _0x47304e === _0x49bb07; + }, + 'XytsM': 'lDtXA', + 'QsViw': function(_0x14a394, _0x4e71ae) { + return _0x14a394 === _0x4e71ae; + }, + 'FAXle': 'wGNFK' + }; + return new Promise(_0x28fe4c => { + if (_0x3bf983[_0x39d2('‫21', '#4H(')](_0x3bf983[_0x39d2('‮22', 'a)uq')], 'NHhEC')) { + console[_0x39d2('‮23', 'EUbI')](_0x39d2('‮24', 'fwM@') + result['msg']); + } else { + let _0x3df897 = { + 'url': _0x39d2('‫25', 'A#B#'), + 'headers': JSON[_0x39d2('‫26', 'nY6I')]('{\x22Host\x22:\x22wap.quxianzhuan.com\x22,\x22Connection\x22:\x22keep-alive\x22,\x22Upgrade-Insecure-Requests\x22:\x221\x22,\x22User-Agent\x22:\x22Mozilla/5.0\x20(Linux;\x20Android\x2010;\x2016s\x20Pro\x20Build/QKQ1.191222.002;\x20wv)\x20AppleWebKit/537.36\x20(KHTML,\x20like\x20Gecko)\x20Version/4.0\x20Chrome/83.0.4103.106\x20Mobile\x20Safari/537.36\x20\x20XiaoMi/MiuiBrowser/10.8.1\x20LT-APP/44/200\x22,\x22Accept\x22:\x22text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3;q=0.9\x22,\x22x-app\x22:\x2296c1ea5a-9a52-44c9-8ac4-8dceafa065c8\x22,\x22X-Requested-With\x22:\x22com.quxianzhuan.wap\x22,\x22Sec-Fetch-Site\x22:\x22none\x22,\x22Sec-Fetch-Mode\x22:\x22navigate\x22,\x22Sec-Fetch-User\x22:\x22?1\x22,\x22Sec-Fetch-Dest\x22:\x22document\x22,\x22Referer\x22:\x22https://wap.quxianzhuan.com/reward/list/?xapp-target=blank\x22,\x22Accept-Encoding\x22:\x22gzip,\x20deflate\x22,\x22Accept-Language\x22:\x22zh-CN,zh;q=0.9,en-US;q=0.8,en;q=0.7\x22,\x22Cookie\x22:\x22' + xqzck + '\x22}') + }; + $[_0x39d2('‫27', 'D[2Z')](_0x3df897, async (_0x190220, _0x3af933, _0x409111) => { + var _0x1d5449 = { + 'khrUf': function(_0x56d23f) { + return _0x56d23f(); + } + }; + try { + xqzid = _0x409111[_0x39d2('‫28', 'vIQK')](/reward_id":"(\d+)",/)[0x1]; + xqztk = xqzck[_0x39d2('‮29', 'MJIk')](/tzb_formhash_cookie=(\w+);/)[0x1]; + console[_0x39d2('‮c', 'qAxn')](_0x3bf983[_0x39d2('‮2a', 'v0Nn')]('\x0a闲趣赚匹配任务ID:', xqzid)); + await _0x3bf983['bCdXO'](xqzrw); + } catch (_0x32f4e6) {} finally { + if (_0x3bf983[_0x39d2('‮2b', 'IKE$')](_0x39d2('‮2c', '6#ww'), _0x3bf983[_0x39d2('‫2d', 'wh%A')])) { + _0x28fe4c(); + } else { + _0x1d5449[_0x39d2('‫2e', 'Lb&R')](_0x28fe4c); + } + } + }, _0x8d8167); + } + }); +} + +function xqzrw(_0x2888ee = 0x0) { + var _0x5ea225 = { + 'gZWmC': function(_0x53beb3, _0x918b3c) { + return _0x53beb3 + _0x918b3c; + }, + 'ZHPUX': _0x39d2('‮2f', 'IKE$'), + 'tqjiW': function(_0x1277a6) { + return _0x1277a6(); + }, + 'ripfJ': _0x39d2('‫30', '6#ww') + }; + return new Promise(_0x41ce33 => { + var _0x4b087c = { + 'ZLCPS': _0x39d2('‮31', 'KA3y'), + 'NjTne': function(_0x1bf7c4, _0x3e6c23) { + return _0x1bf7c4 == _0x3e6c23; + }, + 'sSGZa': function(_0x1e0e2f, _0x32be6d) { + return _0x1e0e2f + _0x32be6d; + }, + 'pdleX': function(_0x1b23d9, _0x23a9f1) { + return _0x5ea225[_0x39d2('‮32', 'Ve8i')](_0x1b23d9, _0x23a9f1); + }, + 'coVjE': _0x5ea225[_0x39d2('‫33', '6#ww')], + 'JIFAR': function(_0x32f184) { + return _0x5ea225['tqjiW'](_0x32f184); + }, + 'MARWE': _0x5ea225[_0x39d2('‮34', 'EUbI')] + }; + let _0x579dd9 = { + 'url': _0x39d2('‮35', 'Ve8i'), + 'headers': JSON['parse']('{\x22Host\x22:\x22wap.quxianzhuan.com\x22,\x22Connection\x22:\x22keep-alive\x22,\x22Upgrade-Insecure-Requests\x22:\x221\x22,\x22User-Agent\x22:\x22Mozilla/5.0\x20(Linux;\x20Android\x2010;\x2016s\x20Pro\x20Build/QKQ1.191222.002;\x20wv)\x20AppleWebKit/537.36\x20(KHTML,\x20like\x20Gecko)\x20Version/4.0\x20Chrome/83.0.4103.106\x20Mobile\x20Safari/537.36\x20\x20XiaoMi/MiuiBrowser/10.8.1\x20LT-APP/44/200\x22,\x22Accept\x22:\x22text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3;q=0.9\x22,\x22x-app\x22:\x2296c1ea5a-9a52-44c9-8ac4-8dceafa065c8\x22,\x22X-Requested-With\x22:\x22com.quxianzhuan.wap\x22,\x22Sec-Fetch-Site\x22:\x22none\x22,\x22Sec-Fetch-Mode\x22:\x22navigate\x22,\x22Sec-Fetch-User\x22:\x22?1\x22,\x22Sec-Fetch-Dest\x22:\x22document\x22,\x22Referer\x22:\x22https://wap.quxianzhuan.com/reward/list/?xapp-target=blank\x22,\x22Accept-Encoding\x22:\x22gzip,\x20deflate\x22,\x22Accept-Language\x22:\x22zh-CN,zh;q=0.9,en-US;q=0.8,en;q=0.7\x22,\x22Cookie\x22:\x22' + xqzck + '\x22}'), + 'body': _0x39d2('‫36', 'MPxS') + xqzid + _0x39d2('‫37', 'qAxn') + xqztk + _0x39d2('‫38', 'mVvS') + }; + $[_0x39d2('‮39', 'D[2Z')](_0x579dd9, async (_0x216874, _0x50e484, _0x53fa76) => { + if (_0x39d2('‫3a', 'NiW#') === _0x4b087c['ZLCPS']) { + try { + let _0x4dbc7e = _0x53fa76[_0x39d2('‫3b', 'YLkM')](/available_money":(.+?),"/)[0x1]; + let _0x6e63b2 = _0x53fa76[_0x39d2('‮3c', ']!Q4')](/UID:(.+?)\<\/span\>/)[0x1]; + console['log']('\x0a闲趣赚靓仔用户:【' + _0x6e63b2 + _0x39d2('‫3d', 'GV6i') + _0x4dbc7e + '】'); + } catch (_0x20e178) {} finally { + _0x41ce33(); + } + } else { + try { + const _0x35ebda = JSON['parse'](_0x53fa76); + if (_0x4b087c['NjTne'](_0x35ebda[_0x39d2('‫3e', 'lZuR')], 0x1)) { + console[_0x39d2('‮3f', 'GlR)')](_0x4b087c['sSGZa'](_0x4b087c[_0x39d2('‮40', 'weK&')](_0x39d2('‫41', 'K@)D'), _0x35ebda['msg']), _0x4b087c['coVjE'])); + await $[_0x39d2('‮42', 'GV6i')](0x2af8); + await _0x4b087c[_0x39d2('‮43', 'mVvS')](xqzlb); + } else { + console['log'](_0x39d2('‫44', 'z[7J') + _0x35ebda['msg']); + } + } catch (_0x1ec8c9) {} finally { + if ('xdnrf' !== _0x4b087c['MARWE']) { + _0x4b087c[_0x39d2('‫45', 'EUbI')](_0x41ce33); + } else { + _0x41ce33(); + } + } + } + }, _0x2888ee); + }); +} + +function xqzxx(_0x330473 = 0x0) { + return new Promise(_0x51f24f => { + let _0x54f1fa = { + 'url': _0x39d2('‫46', 'K94p'), + 'headers': JSON[_0x39d2('‫47', 'GPfi')](_0x39d2('‫48', 's[%2') + xqzck + '\x22}') + }; + $[_0x39d2('‫49', 'PP[x')](_0x54f1fa, async (_0x3bfce3, _0x1a61ad, _0x4ac891) => { + try { + let _0x31cd8c = _0x4ac891['match'](/available_money":(.+?),"/)[0x1]; + let _0x318a42 = _0x4ac891[_0x39d2('‫4a', 'JUv5')](/UID:(.+?)\<\/span\>/)[0x1]; + console['log'](_0x39d2('‮4b', 'NiW#') + _0x318a42 + '】\x20-\x20可提现余额【' + _0x31cd8c + '】'); + } catch (_0x147b1e) {} finally { + _0x51f24f(); + } + }, _0x330473); + }); +} + +function rand(_0x55047e, _0x5f4ee9) { + var _0x253226 = { + 'ggzfO': function(_0x217605, _0x739a8, _0x25f69f) { + return _0x217605(_0x739a8, _0x25f69f); + }, + 'fwQfS': function(_0x52c6b1, _0x59640f) { + return _0x52c6b1 + _0x59640f; + }, + 'SwwXA': function(_0x3efd66, _0x4d12ef) { + return _0x3efd66 - _0x4d12ef; + } + }; + return _0x253226[_0x39d2('‮4c', 'bV^@')](parseInt, _0x253226['fwQfS'](Math[_0x39d2('‫4d', 'JUv5')]() * (_0x253226['SwwXA'](_0x5f4ee9, _0x55047e) + 0x1), _0x55047e), 0xa); +}; +_0xodm = 'jsjiami.com.v6'; + +function Env(t, e) { + 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("", `\ud83d\udd14${this.name}, \u5f00\u59cb!`) + } + 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("@"), a = { + url: `http://${h}/v1/scripting/evaluate`, + body: { + script_text: t, + mock_type: "cron", + timeout: r + }, + headers: { + "X-Key": o, + Accept: "*/*" + } + }; + this.post(a, (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(); + 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) { + let e = { + "M+": (new Date).getMonth() + 1, + "d+": (new Date).getDate(), + "H+": (new Date).getHours(), + "m+": (new Date).getMinutes(), + "s+": (new Date).getSeconds(), + "q+": Math.floor(((new Date).getMonth() + 3) / 3), + S: (new Date).getMilliseconds() + }; + /(y+)/.test(t) && (t = t.replace(RegExp.$1, ((new Date).getFullYear() + "").substr(4 - RegExp.$1.length))); + for (let s in e) new RegExp("(" + s + ")").test(t) && (t = t.replace(RegExp.$1, 1 == RegExp.$1.length ? e[s] : ("00" + e[s]).substr(("" + e[s]).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 + } + } + } + }; + this.isMute || (this.isSurge() || this.isLoon() ? $notification.post(e, s, i, o(r)) : this.isQuanX() && $notify(e, s, i, o(r))); + let h = ["", "==============\ud83d\udce3\u7cfb\u7edf\u901a\u77e5\ud83d\udce3=============="]; + h.push(e), s && h.push(s), i && h.push(i), console.log(h.join("\n")), this.logs = this.logs.concat(h) + } + 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("", `\u2757\ufe0f${this.name}, \u9519\u8bef!`, t.stack) : this.log("", `\u2757\ufe0f${this.name}, \u9519\u8bef!`, t) + } + wait(t) { + return new Promise(e => setTimeout(e, t)) + } + done(t = {}) { + const e = (new Date).getTime(), + s = (e - this.startTime) / 1e3; + this.log("", `\ud83d\udd14${this.name}, \u7ed3\u675f! \ud83d\udd5b ${s} \u79d2`), this.log(), (this.isSurge() || this.isQuanX() || this.isLoon()) && $done(t) + } + }(t, e) +} +​