From eff6a0436f905636873f690acf47e4abbe62dabb Mon Sep 17 00:00:00 2001 From: action Date: Sat, 29 Jun 2024 10:02:34 +0000 Subject: [PATCH] Add decoded output file --- output.js | 4172 ++++++++++++++++++++++++++++++++++++++++++++++++++++- output.py | 66 +- 2 files changed, 4127 insertions(+), 111 deletions(-) diff --git a/output.js b/output.js index 77ad3a291..4ce004aea 100644 --- a/output.js +++ b/output.js @@ -1,55 +1,4135 @@ -//Sat Jun 29 2024 05:11:35 GMT+0000 (Coordinated Universal Time) +//Sat Jun 29 2024 10:02:34 GMT+0000 (Coordinated Universal Time) //Base:https://github.com/echo094/decode-js //Modify:https://github.com/smallfawn/decode_action -$("#submitBTN").click(function () { - loadingdata = "程序正在运行中……"; - compact = $("#compact").is(":checked"); - $("#compiler-textarea-result").val(loadingdata); - code = editor1.getValue(); - if (code) { - var _0xa70145 = JavaScriptObfuscator.obfuscate(code, { - compact: compact, - controlFlowFlattening: true, - controlFlowFlatteningThreshold: 1, - numbersToExpressions: true, - simplify: true, - stringArrayShuffle: true, - splitStrings: true, - stringArrayThreshold: 1 +console.log("=>=>=>=>____来自 By 幼稚园小妹妹 (顶级插件售后服务951584089)丨Autman订阅源:Lxg-021002丨期待为您服务<=<=<=<="); +console.log("=>=>=>=>____来自 By 幼稚园小妹妹 (顶级插件售后服务951584089)丨Autman订阅源:Lxg-021002丨期待为您服务<=<=<=<="); +console.log("=>=>=>=>____来自 By 幼稚园小妹妹 (顶级插件售后服务951584089)丨Autman订阅源:Lxg-021002丨期待为您服务<=<=<=<="); +console.log("=>=>=>=>____来自 By 幼稚园小妹妹 (顶级插件售后服务951584089)丨Autman订阅源:Lxg-021002丨期待为您服务<=<=<=<="); +console.log("=>=>=>=>____来自 By 幼稚园小妹妹 (顶级插件售后服务951584089)丨Autman订阅源:Lxg-021002丨期待为您服务<=<=<=<="); +console.log("=>=>=>=>____来自 By 幼稚园小妹妹 (顶级插件售后服务951584089)丨Autman订阅源:Lxg-021002丨期待为您服务<=<=<=<="); +console.log("=>=>=>=>____来自 By 幼稚园小妹妹 (顶级插件售后服务951584089)丨Autman订阅源:Lxg-021002丨期待为您服务<=<=<=<="); +console.log("=>=>=>=>____来自 By 幼稚园小妹妹 (顶级插件售后服务951584089)丨Autman订阅源:Lxg-021002丨期待为您服务<=<=<=<="); +console.log("=>=>=>=>____来自 By 幼稚园小妹妹 (顶级插件售后服务951584089)丨Autman订阅源:Lxg-021002丨期待为您服务<=<=<=<="); +console.log("=>=>=>=>____来自 By 幼稚园小妹妹 (顶级插件售后服务951584089)丨Autman订阅源:Lxg-021002丨期待为您服务<=<=<=<="); +const _0x4c672b = _0x4a9430("中国联通"), + _0x2bba68 = require("got"), + _0x2bbc1d = require("path"), + { + exec: _0x526718 + } = require("child_process"), + _0x368aa5 = require("crypto-js"), + { + CookieJar: _0x4484a5 + } = require("tough-cookie"), + _0x24434b = "chinaUnicom", + _0x55899c = ["\n", "&", "@"], + _0x52f10b = [_0x24434b + "Cookie"], + _0x159493 = process.env[_0x24434b + "Sign"] === "false", + _0xedc529 = process.env[_0x24434b + "Ltzf"] === "false", + _0x148eb1 = 50000, + _0x1cbe1e = 3, + _0x2bad9c = 2.08, + _0x4a2c68 = "chinaUnicom", + _0x2eca5f = "https://leafxcy.coding.net/api/user/leafxcy/project/validcode/shared-depot/validCode/git/blob/master/code.json", + _0x1971e5 = "https://leafxcy.coding.net/api/user/leafxcy/project/validcode/shared-depot/validCode/git/blob/master/" + _0x4a2c68 + ".json", + _0x239ea0 = 5, + _0x469423 = "iphone_c@11.0503", + _0x546817 = "Mozilla/5.0 (iPhone; CPU iPhone OS 16_1_2 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Mobile/15E148 unicom{version:" + _0x469423 + "}", + _0x281cdf = "d82ac3821b50e6f05f6c684d27d252a584517c685da7130a2bd27361afb4f2e300ab1ecc5a701b4d2d4df69e795299dc08c2c5a1129381372a65a1a9a397eb16cec3c3cc0179f01df450042f3469658331cec050c7d5c50b121dc28b3f31ece6", + _0x3d9810 = "10000002", + _0xa01453 = "7k1HcDL8RKvc", + _0x49426e = "woreadst^&*12345", + _0x4872bf = "10000006", + _0x457ac0 = "yQsp9gUqv7qX", + _0x20c0ff = "QzUzOUM2QTQ2MTc4", + _0x18c84f = "16-Bytes--String", + _0x3e622c = "225", + _0x46b3a9 = "225", + _0x127422 = "party", + _0x5b10f9 = "6-WfVldfFrt3zhjHhe6kzwI-XfG5aMCzRTLI_4K7_a0", + _0x460d74 = "73b138fd-250c-4126-94e2-48cbcc8b9cbe", + _0x558192 = "7cb46449-3b11-4414-bb49-cbd15525fb88", + _0x3bb78f = "9", + _0x3db78e = "1", + _0x2f3d25 = "wocareMBHServiceLife1", + _0x12fe67 = "beea1c7edf7c4989b2d3621c4255132f", + _0x5f2a5c = "f4cd4ffeb5554586acf65ba7110534f5", + _0x4e5ad9 = "0123456789", + _0x4192c6 = "qwertyuiopasdfghjklzxcvbnm", + _0x27f1a2 = process.env[_0x24434b + "Uuid"] || _0x4c672b.randomUuid(), + _0x26ccd8 = [9, 10, 11, 12, 13], + _0x123877 = 1000, + _0x5d9e11 = 5000, + _0x392042 = "1001000003", + _0x2a3518 = "100002", + _0x353847 = ""; +let _0x333e1b = [], + _0x1051da = [], + _0x188394 = [], + _0x55391c = null, + _0x5724ea = [6640, 6641]; +const _0x36a6fc = 7, + _0x52ff20 = 5, + _0x4cffb4 = 5, + _0x166d60 = { + "name": "星座配对", + "id": 2 + }, + _0x5a4a00 = { + "name": "大转盘", + "id": 3 + }, + _0x1b5ea0 = { + "name": "盲盒抽奖", + "id": 4 + }, + _0x4376d8 = [_0x166d60, _0x5a4a00, _0x1b5ea0], + _0x1c214d = { + "ZFGJBXXCY1": "空气", + "GJBNZJK19": "[6]", + "GJBNZJK20": "[1]", + "GJBNZJK21": "[8]", + "GJBNZJK22": "[狂]", + "GJBNZJK23": "[欢]" + }, + _0x10ec87 = { + "抽奖": "01", + "首次进入": "02", + "卡片合成": "03", + "瓜分奖励": "04" + }; +function _0x71b805(_0x5dec55, _0x28cd7b, _0x4ddf2e, _0x1884d5, _0x4a53b2, _0x5300bc) { + return _0x368aa5[_0x5dec55].encrypt(_0x368aa5.enc.Utf8.parse(_0x1884d5), _0x368aa5.enc.Utf8.parse(_0x4a53b2), { + "mode": _0x368aa5.mode[_0x28cd7b], + "padding": _0x368aa5.pad[_0x4ddf2e], + "iv": _0x368aa5.enc.Utf8.parse(_0x5300bc) + }).ciphertext.toString(_0x368aa5.enc.Hex); +} +function _0x26715b(_0x4e31c4, _0xc114ff, _0x1abd18, _0x41cb87, _0x180dd9, _0x3c3a87) { + return _0x368aa5[_0x4e31c4].decrypt({ + "ciphertext": _0x368aa5.enc.Hex.parse(_0x41cb87) + }, _0x368aa5.enc.Utf8.parse(_0x180dd9), { + "mode": _0x368aa5.mode[_0xc114ff], + "padding": _0x368aa5.pad[_0x1abd18], + "iv": _0x368aa5.enc.Utf8.parse(_0x3c3a87) + }).toString(_0x368aa5.enc.Utf8); +} +let _0x191c8c = 0, + _0x13c734 = 0; +function _0x169d23() { + _0x13c734 = 1; + process.on("SIGTERM", () => { + _0x13c734 = 2; + process.exit(0); + }); + const _0x1dc6c0 = _0x2bbc1d.basename(process.argv[1]), + _0x426a66 = ["bash", "timeout", "grep"]; + let _0x439e78 = ["ps afx"]; + _0x439e78.push("grep " + _0x1dc6c0); + _0x439e78 = _0x439e78.concat(_0x426a66.map(_0x2fd08b => "grep -v \"" + _0x2fd08b + " \"")); + _0x439e78.push("wc -l"); + const _0x4b0939 = _0x439e78.join("|"), + _0x3d7826 = () => { + _0x526718(_0x4b0939, (_0x3f674a, _0x5608f5, _0x2e463c) => { + if (_0x3f674a || _0x2e463c) return; + _0x191c8c = parseInt(_0x5608f5.trim(), 10); + }); + _0x13c734 == 1 && setTimeout(_0x3d7826, 2000); + }; + _0x3d7826(); +} +class _0x1e60de { + constructor() { + this.index = _0x4c672b.userIdx++; + this.name = ""; + this.valid = false; + const _0x4bb73f = { + "limit": 0 + }, + _0x274170 = { + "Connection": "keep-alive" + }, + _0x4f8396 = { + "retry": _0x4bb73f, + "timeout": _0x148eb1, + "followRedirect": false, + "ignoreInvalidCookies": true, + "headers": _0x274170 + }; + this.got = _0x2bba68.extend(_0x4f8396); + _0x13c734 == 0 && _0x169d23(); + } + ["log"](_0x3cf8f0, _0x315973 = {}) { + var _0x4c41a8 = "", + _0x35dba2 = _0x4c672b.userCount.toString().length; + this.index && (_0x4c41a8 += "账号[" + _0x4c672b.padStr(this.index, _0x35dba2) + "]"); + this.name && (_0x4c41a8 += "[" + this.name + "]"); + _0x4c672b.log(_0x4c41a8 + _0x3cf8f0, _0x315973); + } + ["set_cookie"](_0x197a10, _0x251c06, _0x47105a, _0x2b020d, _0x5e6f43 = {}) { + this.cookieJar.setCookieSync(_0x197a10 + "=" + _0x251c06 + "; Domain=" + _0x47105a + ";", "" + _0x2b020d); + } + async ["request"](_0x230a1e) { + const _0x2a0b45 = ["ECONNRESET", "EADDRINUSE", "ENOTFOUND", "EAI_AGAIN"], + _0x2ac302 = ["TimeoutError"], + _0x5a3fa0 = ["EPROTO"], + _0x54f2f2 = []; + var _0x2ae6f8 = null, + _0x36fb7a = 0, + _0x56023b = _0x230a1e.fn || _0x230a1e.url; + let _0x204503 = _0x4c672b.get(_0x230a1e, "valid_code", _0x54f2f2); + _0x230a1e.method = _0x230a1e?.["method"]?.["toUpperCase"]() || "GET"; + let _0x5d1cb9, _0x566311; + while (_0x36fb7a < _0x1cbe1e) { + try { + _0x36fb7a++; + _0x5d1cb9 = ""; + _0x566311 = ""; + let _0x8c8bd7 = null, + _0x179c9c = _0x230a1e?.["timeout"] || this.got?.["defaults"]?.["options"]?.["timeout"]?.["request"] || _0x148eb1, + _0x29c055 = false, + _0x19e2f5 = Math.max(this.index - 2, 0), + _0x56f81f = Math.min(Math.max(this.index - 2, 1), 4), + _0x19f0c4 = Math.min(Math.max(this.index - 4, 1), 5), + _0x3c2d3e = _0x19e2f5 * _0x56f81f * _0x19f0c4 * _0x19f0c4 * 600, + _0x15438e = _0x19e2f5 * _0x56f81f * _0x19f0c4 * _0x19f0c4 * 4000, + _0x582db9 = _0x3c2d3e + Math.floor(Math.random() * _0x15438e), + _0x4f309c = _0x191c8c * (_0x191c8c - 1) * 3000, + _0x448528 = (_0x191c8c - 1) * (_0x191c8c - 1) * 5000, + _0x5742b9 = _0x4f309c + Math.floor(Math.random() * _0x448528), + _0x57a6c3 = Math.max(_0x4c672b.userCount - 2, 0), + _0x2278ba = Math.max(_0x4c672b.userCount - 3, 0), + _0x537ae0 = _0x57a6c3 * 400, + _0x38b1c1 = _0x2278ba * 1000, + _0x53a0b8 = _0x537ae0 + Math.floor(Math.random() * _0x38b1c1), + _0x2cdaf5 = _0x582db9 + _0x5742b9 + _0x53a0b8; + await _0x4c672b.wait(_0x2cdaf5); + await new Promise(async _0x441c73 => { + setTimeout(() => { + _0x29c055 = true; + _0x441c73(); + }, _0x179c9c); + await this.got(_0x230a1e).then(_0x36089d => { + _0x2ae6f8 = _0x36089d; + }, _0x4fd098 => { + _0x8c8bd7 = _0x4fd098; + _0x2ae6f8 = _0x4fd098.response; + _0x5d1cb9 = _0x8c8bd7?.["code"] || ""; + _0x566311 = _0x8c8bd7?.["name"] || ""; + }); + _0x441c73(); + }); + if (_0x29c055) this.log("[" + _0x56023b + "]请求超时(" + _0x179c9c / 1000 + "秒),重试第" + _0x36fb7a + "次");else { + if (_0x5a3fa0.includes(_0x5d1cb9)) { + this.log("[" + _0x56023b + "]请求错误[" + _0x5d1cb9 + "][" + _0x566311 + "]"); + if (_0x8c8bd7?.["message"]) { + console.log(_0x8c8bd7.message); + } + break; + } else { + if (_0x2ac302.includes(_0x566311)) this.log("[" + _0x56023b + "]请求错误[" + _0x5d1cb9 + "][" + _0x566311 + "],重试第" + _0x36fb7a + "次");else { + if (_0x2a0b45.includes(_0x5d1cb9)) this.log("[" + _0x56023b + "]请求错误[" + _0x5d1cb9 + "][" + _0x566311 + "],重试第" + _0x36fb7a + "次");else { + let _0x13de91 = _0x2ae6f8?.["statusCode"] || "", + _0x507594 = _0x13de91 / 100 | 0; + if (_0x13de91) { + _0x507594 > 3 && !_0x204503.includes(_0x13de91) && (_0x13de91 ? this.log("请求[" + _0x56023b + "]返回[" + _0x13de91 + "]") : this.log("请求[" + _0x56023b + "]错误[" + _0x5d1cb9 + "][" + _0x566311 + "]")); + if (_0x507594 <= 4) break; + } else { + this.log("请求[" + _0x56023b + "]错误[" + _0x5d1cb9 + "][" + _0x566311 + "]"); + } + } + } + } + } + } catch (_0x1c2021) { + _0x1c2021.name == "TimeoutError" ? this.log("[" + _0x56023b + "]请求超时,重试第" + _0x36fb7a + "次") : this.log("[" + _0x56023b + "]请求错误(" + _0x1c2021.message + "),重试第" + _0x36fb7a + "次"); + } + } + if (_0x2ae6f8 == null) return Promise.resolve({ + "statusCode": _0x5d1cb9 || -1, + "headers": null, + "result": null }); - editor2.getDoc().setValue(_0xa70145.getObfuscatedCode()); + let { + statusCode: _0x5f592e, + headers: _0x4b817a, + body: _0x1593b4 + } = _0x2ae6f8; + if (_0x1593b4) try { + _0x1593b4 = JSON.parse(_0x1593b4); + } catch {} + const _0x11f5c5 = { + "statusCode": _0x5f592e, + "headers": _0x4b817a, + "result": _0x1593b4 + }; + return Promise.resolve(_0x11f5c5); } - $("#compact").click(function () { - $("#submitBTN").click(); - }); -}); -new ClipboardJS("#copycode", { - text: function (_0x9feb32) { - return editor2.getDoc().getValue(); - } -}).on("success", function (_0x583f9d) { - $("#copycode").text("已复制"); - selectAll(); - setTimeout(function () { - $("#copycode").html(" 复制代码"); - }, 2000); - _0x583f9d.clearSelection(); -}).on("error", function (_0x2493f4) { - alert("Error!"); -}); -function selectAll() { - editor2 && editor2.execCommand("selectAll"); } -function clearAll() { - editor1 && editor2 && (editor1.setValue(""), editor2.setValue("")); +let _0x24046c = _0x1e60de; +try { + let _0x12396e = require("./LocalBasic"); + _0x24046c = _0x12396e; +} catch {} +let _0x23c014 = new _0x24046c(_0x4c672b); +class _0x333e45 extends _0x24046c { + constructor(_0x524982) { + super(_0x4c672b); + this.cookieJar = new _0x4484a5(); + const _0x8a9e0d = { + "User-Agent": _0x546817 + }; + this.got = this.got.extend({ + "cookieJar": this.cookieJar, + "headers": _0x8a9e0d + }); + let _0xae76b3 = _0x524982.split("#"); + this.token_online = _0xae76b3[0]; + this.unicomTokenId = _0x4c672b.randomString(32); + this.tokenId_cookie = "chinaunicom-" + _0x4c672b.randomString(32, _0x4e5ad9 + _0x4192c6).toUpperCase(); + this.rptId = ""; + this.city = []; + this.t_flmf_task = 0; + this.t_woread_draw = 0; + this.need_read_rabbit = false; + this.moonbox_task_record = {}; + this.moonbox_notified = []; + this.set_cookie("TOKENID_COOKIE", this.tokenId_cookie); + this.set_cookie("UNICOM_TOKENID", this.unicomTokenId); + this.set_cookie("sdkuuid", this.unicomTokenId); + } + ["set_cookie"](_0x534dd0, _0x112097, _0x2bcdad = {}) { + let _0x20190f = _0x2bcdad?.["domain"] || "10010.com", + _0xfb013f = _0x2bcdad?.["currentUrl"] || "https://epay.10010.com"; + super.set_cookie(_0x534dd0, _0x112097, _0x20190f, _0xfb013f, _0x2bcdad); + } + ["get_bizchannelinfo"]() { + const _0x667e29 = { + "bizChannelCode": _0x46b3a9, + "disriBiz": _0x127422, + "unionSessionId": "", + "stType": "", + "stDesmobile": "", + "source": "", + "rptId": this.rptId, + "ticket": "", + "tongdunTokenId": this.tokenId_cookie, + "xindunTokenId": this.sdkuuid + }; + let _0x52f35f = JSON.stringify(_0x667e29); + return _0x52f35f; + } + ["get_epay_authinfo"]() { + const _0x1d05f5 = { + "mobile": "", + "sessionId": this.sessionId, + "tokenId": this.tokenId, + "userId": "" + }; + return JSON.stringify(_0x1d05f5); + } + ["get_flmf_data"](_0x3676dc = "welfareCenter") { + const _0x4e62ec = { + "sid": this.flmf_sid, + "actcode": _0x3676dc + }; + return _0x4e62ec; + } + ["encode_woread"](_0x22dfe7, _0x4286b4 = _0x49426e) { + let _0x565a7e = _0x71b805("AES", "CBC", "Pkcs7", JSON.stringify(_0x22dfe7), _0x4286b4, _0x18c84f); + return Buffer.from(_0x565a7e, "utf-8").toString("base64"); + } + ["get_woread_param"]() { + return { + "timestamp": _0x4c672b.time("yyyyMMddhhmmss"), + "token": this.woread_token, + "userid": this.woread_userid, + "userId": this.woread_userid, + "userIndex": this.woread_userIndex, + "userAccount": this.mobile, + "verifyCode": this.woread_verifycode + }; + } + ["get_woread_m_param"]() { + return { + "timestamp": _0x4c672b.time("yyyyMMddhhmmss"), + "signtimestamp": Date.now(), + "source": _0x3bb78f, + "token": this.woread_token + }; + } + ["get_ltyp_sign_header"](_0xb3a080) { + let _0x2cf265 = Date.now(), + _0x121317 = Math.floor(89999 * Math.random()) + 100000, + _0x58a87c = _0x2a3518, + _0x434c5a = _0x353847, + _0x307026 = _0x368aa5.MD5(_0xb3a080 + _0x2cf265 + _0x121317 + _0x58a87c + _0x434c5a).toString(); + const _0x1538a0 = { + "key": _0xb3a080, + "resTime": _0x2cf265, + "reqSeq": _0x121317, + "channel": _0x58a87c, + "version": _0x434c5a, + "sign": _0x307026 + }; + return _0x1538a0; + } + async ["onLine"](_0x29db01 = {}) { + let _0x61dfe6 = false; + try { + let _0x5bf29f = { + "fn": "onLine", + "method": "post", + "url": "https://m.client.10010.com/mobileService/onLine.htm", + "form": { + "token_online": this.token_online, + "reqtime": _0x4c672b.time("yyyy-MM-dd hh:mm:ss"), + "appId": _0x281cdf, + "version": _0x469423, + "step": "bindlist", + "isFirstInstall": 0, + "deviceModel": "iPhone" + } + }, + { + result: _0x2cc7e2, + statusCode: _0x687875 + } = await this.request(_0x5bf29f), + _0xe761d0 = _0x4c672b.get(_0x2cc7e2, "code", _0x687875); + if (_0xe761d0 == 0) { + _0x61dfe6 = true; + this.valid = true; + this.mobile = _0x2cc7e2?.["desmobile"]; + this.name = _0x2cc7e2?.["desmobile"]; + this.ecs_token = _0x2cc7e2?.["ecs_token"]; + this.city = _0x2cc7e2?.["list"]; + this.log("登录成功"); + } else this.valid = false, this.log("登录失败[" + _0xe761d0 + "]"); + } catch (_0x3a5c58) { + console.log(_0x3a5c58); + } finally { + return _0x61dfe6; + } + } + async ["openPlatLineNew"](_0x34b7cb, _0x271b52 = {}) { + const _0x450445 = { + "ticket": "", + "type": "", + "loc": "" + }; + let _0x297486 = _0x450445; + try { + const _0x16523a = { + "to_url": _0x34b7cb + }, + _0x313e7c = { + "fn": "openPlatLineNew", + "method": "get", + "url": "https://m.client.10010.com/mobileService/openPlatform/openPlatLineNew.htm", + "searchParams": _0x16523a + }; + let { + headers: _0x1af874, + statusCode: _0x29a4b1 + } = await this.request(_0x313e7c); + if (_0x1af874?.["location"]) { + let _0x113a23 = new URL(_0x1af874.location), + _0x4fc2ec = _0x113a23.searchParams.get("type") || "02", + _0x4aefee = _0x113a23.searchParams.get("ticket"); + !_0x4aefee && this.log("获取ticket失败"); + const _0xf28c3f = { + "loc": _0x1af874.location, + "ticket": _0x4aefee, + "type": _0x4fc2ec + }; + _0x297486 = _0xf28c3f; + } else this.log("获取ticket失败[" + _0x29a4b1 + "]"); + } catch (_0x5d368a) { + console.log(_0x5d368a); + } finally { + return _0x297486; + } + } + async ["gettaskip"](_0x25a68d = {}) { + let _0x4bc4e9 = _0x4c672b.randomString(32).toUpperCase(); + try { + const _0x193889 = { + "mobile": this.mobile, + "orderId": _0x4bc4e9 + }, + _0x370afd = { + "fn": "gettaskip", + "method": "post", + "url": "https://m.client.10010.com/taskcallback/topstories/gettaskip", + "form": _0x193889 + }; + await this.request(_0x370afd); + } catch (_0x279850) { + console.log(_0x279850); + } finally { + return _0x4bc4e9; + } + } + async ["draw_28_queryChance"](_0x585ec7 = {}) { + try { + const _0xcb867a = { + "fn": "draw_28_queryChance", + "method": "post", + "url": "https://m.client.10010.com/AppMonthly/appMonth/queryChance" + }; + let { + result: _0x1c707c, + statusCode: _0x66c130 + } = await this.request(_0xcb867a), + _0x5a5cf1 = _0x4c672b.get(_0x1c707c, "status", _0x66c130); + if (_0x5a5cf1 == "0000") { + let _0x22cf0b = parseInt(_0x1c707c?.["data"]?.["allRemainTimes"] || 0), + _0x2dc4f5 = Math.min(_0x4cffb4, _0x22cf0b); + this.log("28日五折日可以抽奖" + _0x22cf0b + "次, 去抽" + _0x2dc4f5 + "次"); + let _0x534d8c = false; + while (_0x2dc4f5-- > 0) { + _0x534d8c && (await _0x4c672b.wait(8000)); + _0x534d8c = true; + await this.draw_28_lottery(); + } + } else { + let _0x35d7bc = _0x1c707c?.["message"] || _0x1c707c?.["msg"] || ""; + this.log("28日五折日查询抽奖次数失败[" + _0x5a5cf1 + "]: " + _0x35d7bc); + } + } catch (_0x149044) { + console.log(_0x149044); + } + } + async ["draw_28_lottery"](_0x36f1b8 = {}) { + try { + const _0x4bde41 = { + "fn": "draw_28_lottery", + "method": "post", + "url": "https://m.client.10010.com/AppMonthly/appMonth/lottery" + }; + let { + result: _0x4fe983, + statusCode: _0x16c918 + } = await this.request(_0x4bde41), + _0x1df7b3 = _0x4c672b.get(_0x4fe983, "status", _0x16c918); + if (_0x1df7b3 == "0000") { + let _0x38d836 = _0x4c672b.get(_0x4fe983?.["data"], "code", -1); + if (_0x4fe983?.["data"]?.["uuid"]) await _0x4c672b.wait(2000), await this.draw_28_winningRecord(_0x4fe983.data.uuid);else { + let _0x482b37 = _0x4fe983?.["data"]?.["message"] || _0x4fe983?.["data"]?.["msg"] || ""; + this.log("28日五折日抽奖失败[" + _0x38d836 + "]: " + _0x482b37); + } + } else { + let _0x47bae2 = _0x4fe983?.["message"] || _0x4fe983?.["msg"] || ""; + this.log("28日五折日抽奖失败[" + _0x1df7b3 + "]: " + _0x47bae2); + } + } catch (_0x2bf145) { + console.log(_0x2bf145); + } + } + async ["draw_28_winningRecord"](_0x51deeb, _0x3b01b9 = {}) { + try { + const _0x287180 = { + "requestId": _0x51deeb + }, + _0x164e4e = { + "fn": "draw_28_winningRecord", + "method": "post", + "url": "https://m.client.10010.com/AppMonthly/appMonth/winningRecord", + "form": _0x287180 + }; + let { + result: _0x118e62, + statusCode: _0x3a4085 + } = await this.request(_0x164e4e), + _0x34d57c = _0x4c672b.get(_0x118e62, "status", _0x3a4085); + if (_0x34d57c == "0000") { + let _0x3d0c4b = _0x4c672b.get(_0x118e62?.["data"], "code", -1); + if (_0x3d0c4b == "0000") { + const _0x379095 = { + "notify": true + }; + this.log("28日五折日抽奖: " + _0x118e62?.["data"]?.["prizeName"]?.["replace"](/\t/g, ""), _0x379095); + } else { + let _0x1e6b79 = _0x118e62?.["data"]?.["message"] || _0x118e62?.["data"]?.["msg"] || ""; + this.log("查询28日五折日抽奖结果失败[" + _0x3d0c4b + "]: " + _0x1e6b79); + } + } else { + let _0x44cb9f = _0x118e62?.["message"] || _0x118e62?.["msg"] || ""; + this.log("查询28日五折日抽奖结果失败[" + _0x34d57c + "]: " + _0x44cb9f); + } + } catch (_0x500f8d) { + console.log(_0x500f8d); + } + } + async ["ttlxj_authorize"](_0x1eab36, _0x4835f1, _0x10a3bc, _0x246d6b = {}) { + try { + let _0x195620 = { + "fn": "ttlxj_authorize", + "method": "post", + "url": "https://epay.10010.com/woauth2/v2/authorize", + "headers": { + "Origin": "https://epay.10010.com", + "Referer": _0x10a3bc + }, + "json": { + "response_type": "rptid", + "client_id": _0x460d74, + "redirect_uri": "https://epay.10010.com/ci-mps-st-web/", + "login_hint": { + "credential_type": "st_ticket", + "credential": _0x1eab36, + "st_type": _0x4835f1, + "force_logout": true, + "source": "app_sjyyt" + }, + "device_info": { + "token_id": "chinaunicom-pro-" + Date.now() + "-" + _0x4c672b.randomString(13), + "trace_id": _0x4c672b.randomString(32) + } + } + }, + { + result: _0xca6386 + } = await this.request(_0x195620), + _0x5d7616 = _0x4c672b.get(_0xca6386, "status", -1); + if (_0x5d7616 == 200) await this.ttlxj_authCheck();else { + let _0x7201da = _0xca6386?.["message"] || _0xca6386?.["msg"] || ""; + this.log("天天领现金获取SESSION失败[" + _0x5d7616 + "]: " + _0x7201da); + } + } catch (_0x316348) { + console.log(_0x316348); + } + } + async ["ttlxj_authCheck"](_0x14962a = {}) { + try { + let _0x8a1b2e = { + "fn": "ttlxj_authCheck", + "method": "post", + "url": "https://epay.10010.com/ps-pafs-auth-front/v1/auth/check", + "headers": { + "bizchannelinfo": this.get_bizchannelinfo() + } + }, + { + result: _0x48d6a5 + } = await this.request(_0x8a1b2e), + _0x3bf8be = _0x4c672b.get(_0x48d6a5, "code", -1); + if (_0x3bf8be == "0000") { + let { + mobile: _0x1052bf, + sessionId: _0x250852, + tokenId: _0x3a5335, + userId: _0x337f6f + } = _0x48d6a5?.["data"]?.["authInfo"]; + const _0x5c4d17 = { + "sessionId": _0x250852, + "tokenId": _0x3a5335, + "userId": _0x337f6f + }; + Object.assign(this, _0x5c4d17); + await this.ttlxj_userDrawInfo(); + await this.ttlxj_queryAvailable(); + } else { + if (_0x3bf8be == "2101000100") { + let _0x46e8a7 = _0x48d6a5?.["data"]?.["woauth_login_url"]; + await this.ttlxj_login(_0x46e8a7); + } else { + let _0x265cc3 = _0x48d6a5?.["msgInside"] || _0x48d6a5?.["msg"] || ""; + this.log("天天领现金获取tokenId失败[" + _0x3bf8be + "]: " + _0x265cc3); + } + } + } catch (_0x185d9c) { + console.log(_0x185d9c); + } + } + async ["ttlxj_login"](_0x32dea5, _0x58d0f5 = {}) { + try { + _0x32dea5 += "https://epay.10010.com/ci-mcss-party-web/clockIn/?bizFrom=" + _0x3e622c + "&bizChannelCode=" + _0x46b3a9; + const _0x4f3d74 = { + "fn": "ttlxj_login", + "method": "get", + "url": _0x32dea5 + }; + let { + headers: _0x573e43, + statusCode: _0x591a6d + } = await this.request(_0x4f3d74); + if (_0x573e43?.["location"]) { + let _0x1828df = new URL(_0x573e43.location); + this.rptId = _0x1828df.searchParams.get("rptid"); + this.rptId ? await this.ttlxj_authCheck() : this.log("天天领现金获取rptid失败"); + } else this.log("天天领现金获取rptid失败[" + _0x591a6d + "]"); + } catch (_0x30d80f) { + console.log(_0x30d80f); + } + } + async ["ttlxj_userDrawInfo"](_0x566a6f = {}) { + try { + let _0x249346 = { + "fn": "ttlxj_userDrawInfo", + "method": "post", + "url": "https://epay.10010.com/ci-mcss-party-front/v1/ttlxj/userDrawInfo", + "headers": { + "bizchannelinfo": this.get_bizchannelinfo(), + "authinfo": this.get_epay_authinfo() + } + }, + { + result: _0x4d856d + } = await this.request(_0x249346), + _0x4b49e0 = _0x4c672b.get(_0x4d856d, "code", -1); + if (_0x4b49e0 == "0000") { + let _0x3f05c7 = _0x4d856d?.["data"]?.["dayOfWeek"], + _0x1e14b3 = "day" + _0x3f05c7, + _0x171cfd = _0x4d856d?.["data"]?.[_0x1e14b3] == "1"; + const _0xc66c51 = { + "notify": true + }; + this.log("天天领现金今天" + (_0x171cfd ? "未" : "已") + "打卡", _0xc66c51); + if (_0x171cfd) { + let _0x4eac43 = new Date().getDay(); + _0x4eac43 % 7 == 0 ? await this.ttlxj_unifyDrawNew("C") : await this.ttlxj_unifyDrawNew("B"); + } + } else { + let _0x42a2db = _0x4d856d?.["msg"] || ""; + this.log("天天领现金查询失败[" + _0x4b49e0 + "]: " + _0x42a2db); + } + } catch (_0x467828) { + console.log(_0x467828); + } + } + async ["ttlxj_unifyDrawNew"](_0x3d746d, _0x409bfd = {}) { + try { + const _0x307441 = { + "drawType": _0x3d746d, + "bizFrom": _0x3e622c, + "activityId": "TTLXJ20210330" + }; + let _0x2b3a9a = { + "fn": "ttlxj_unifyDrawNew", + "method": "post", + "url": "https://epay.10010.com/ci-mcss-party-front/v1/ttlxj/unifyDrawNew", + "headers": { + "bizchannelinfo": this.get_bizchannelinfo(), + "authinfo": this.get_epay_authinfo() + }, + "form": _0x307441 + }, + { + result: _0x35a8d3 + } = await this.request(_0x2b3a9a), + _0x234f64 = _0x4c672b.get(_0x35a8d3, "code", -1); + if (_0x234f64 == "0000" && _0x35a8d3?.["data"]?.["returnCode"] == 0) { + let _0x1e8c30 = _0x35a8d3?.["data"]?.["awardTipContent"]?.["replace"](/xx/, _0x35a8d3?.["data"]?.["amount"]); + const _0x4f98d3 = { + "notify": true + }; + this.log("天天领现金打卡:" + _0x1e8c30, _0x4f98d3); + } else { + let _0x1f372c = _0x35a8d3?.["data"]?.["returnMsg"] || _0x35a8d3?.["msg"] || ""; + this.log("天天领现金打卡失败[" + (_0x35a8d3?.["data"]?.["returnCode"] || _0x234f64) + "]: " + _0x1f372c); + } + } catch (_0x5ed4c9) { + console.log(_0x5ed4c9); + } + } + async ["ttlxj_h"](_0x54e9e3 = {}) { + try { + const _0x1add62 = { + "bizFrom": _0x3e622c, + "activityId": "TTLXJ20210330", + "uid": _0x5b10f9 + }; + let _0x21bfbb = { + "fn": "ttlxj_h", + "method": "post", + "url": "https://epay.10010.com/ci-mcss-party-front/v1/ttlxj/help", + "headers": { + "bizchannelinfo": this.get_bizchannelinfo(), + "authinfo": this.get_epay_authinfo() + }, + "form": _0x1add62 + }; + await this.request(_0x21bfbb); + } catch (_0x238bf2) { + console.log(_0x238bf2); + } + } + async ["ttlxj_queryAvailable"](_0x4fcfeb = {}) { + try { + let _0x2b389a = { + "fn": "ttlxj_queryAvailable", + "method": "post", + "url": "https://epay.10010.com/ci-mcss-party-front/v1/ttlxj/queryAvailable", + "headers": { + "bizchannelinfo": this.get_bizchannelinfo(), + "authinfo": this.get_epay_authinfo() + } + }, + { + result: _0x29f6c0 + } = await this.request(_0x2b389a), + _0x151c9f = _0x4c672b.get(_0x29f6c0, "code", -1); + if (_0x151c9f == "0000" && _0x29f6c0?.["data"]?.["returnCode"] == 0) { + let _0x2ce050 = _0x29f6c0?.["data"]?.["availableAmount"] || 0; + const _0x138b88 = { + "notify": true + }; + this.log("可用立减金: " + (_0x2ce050 / 100).toFixed(2) + "元", _0x138b88); + let _0x570a2c = [], + _0x323a58 = Date.now(); + for (let _0x4049e7 of _0x29f6c0?.["data"]?.["prizeList"]?.["filter"](_0x2f8b51 => _0x2f8b51.status == "A")) { + let _0x32b7f2 = _0x4049e7.endTime, + _0x36be7f = new Date(_0x32b7f2.slice(0, 4) + "-" + _0x32b7f2.slice(4, 6) + "-" + _0x32b7f2.slice(6, 8) + " 00:00:00"), + _0xf8372f = _0x36be7f.getTime(); + if (_0xf8372f - _0x323a58 < _0x36a6fc * 24 * 60 * 60 * 1000) { + let _0x571254 = _0x4c672b.time("yyyy-MM-dd", _0xf8372f); + const _0x49435c = { + "timestamp": _0xf8372f, + "date": _0x571254, + "amount": _0x4049e7.amount + }; + _0x570a2c.push(_0x49435c); + } + } + if (_0x570a2c.length) { + const _0x30e72b = { + "timestamp": 0 + }; + let _0x53a4c6 = _0x30e72b, + _0x5e7e80 = _0x570a2c.reduce(function (_0x49c172, _0x5aa6dc) { + return (_0x53a4c6.timestamp == 0 || _0x5aa6dc.timestamp < _0x53a4c6.timestamp) && (_0x53a4c6 = _0x5aa6dc), _0x49c172 + parseFloat(_0x5aa6dc.amount); + }, 0); + const _0x5b2fe8 = { + "notify": true + }; + this.log(_0x36a6fc + "天内过期立减金: " + _0x5e7e80.toFixed(2) + "元", _0x5b2fe8); + const _0xb1b903 = { + "notify": true + }; + this.log("最早过期立减金: " + _0x53a4c6.amount + "元 -- " + _0x53a4c6.date + "过期", _0xb1b903); + } else { + const _0x553b39 = { + "notify": true + }; + this.log(_0x36a6fc + "天内没有过期的立减金", _0x553b39); + } + } else { + let _0x24db73 = _0x29f6c0?.["data"]?.["returnMsg"] || _0x29f6c0?.["msg"] || ""; + this.log("天天领现金打卡失败[" + (_0x29f6c0?.["data"]?.["returnCode"] || _0x151c9f) + "]: " + _0x24db73); + } + } catch (_0x2dafd8) { + console.log(_0x2dafd8); + } + } + async ["epay_28_authCheck"](_0x169b07 = {}) { + try { + let _0x2e1a44 = { + "fn": "epay_28_authCheck", + "method": "post", + "url": "https://epay.10010.com/ps-pafs-auth-front/v1/auth/check", + "headers": { + "bizchannelinfo": this.get_bizchannelinfo() + } + }, + { + result: _0x3bf283 + } = await this.request(_0x2e1a44), + _0x143676 = _0x4c672b.get(_0x3bf283, "code", -1); + if (_0x143676 == "0000") { + let { + mobile: _0x5416b8, + sessionId: _0x4eab46, + tokenId: _0x225e08, + userId: _0x20a147 + } = _0x3bf283?.["data"]?.["authInfo"]; + const _0x4f57c6 = { + "sessionId": _0x4eab46, + "tokenId": _0x225e08, + "userId": _0x20a147 + }; + Object.assign(this, _0x4f57c6); + await this.epay_28_queryUserPage(); + } else { + if (_0x143676 == "2101000100") { + let _0x192a85 = _0x3bf283?.["data"]?.["woauth_login_url"]; + await this.epay_28_login(_0x192a85); + } else { + let _0x373a6e = _0x3bf283?.["msgInside"] || _0x3bf283?.["msg"] || ""; + this.log("联通支付日获取tokenId失败[" + _0x143676 + "]: " + _0x373a6e); + } + } + } catch (_0x38ad31) { + console.log(_0x38ad31); + } + } + async ["epay_28_login"](_0x9646af, _0x3b61cc = {}) { + try { + let _0x56d001 = _0x4c672b.time("yyyyMM") + "28ZFR"; + _0x9646af += "https://epay.10010.com/ci-mcss-party-web/rainbow/?templateName=" + _0x56d001 + "&bizFrom=225&bizChannelCode=225&channelType=WDQB"; + const _0x1447d6 = { + "fn": "epay_28_login", + "method": "get", + "url": _0x9646af + }; + let { + headers: _0x4d3d33, + statusCode: _0x5bdd5b + } = await this.request(_0x1447d6); + if (_0x4d3d33?.["location"]) { + let _0xd8345c = new URL(_0x4d3d33.location); + this.rptId = _0xd8345c.searchParams.get("rptid"); + this.rptId ? await this.epay_28_authCheck() : this.log("联通支付日获取rptid失败"); + } else this.log("联通支付日获取rptid失败[" + _0x5bdd5b + "]"); + } catch (_0x8c201b) { + console.log(_0x8c201b); + } + } + async ["epay_28_queryUserPage"](_0x5cdcae = {}) { + try { + let _0x8d0c72 = _0x4c672b.time("yyyyMM") + "28ZFR"; + const _0x2f5980 = { + "templateName": _0x8d0c72 + }; + let _0x474605 = { + "fn": "epay_28_queryUserPage", + "method": "post", + "url": "https://epay.10010.com/ci-mcss-party-front/v1/rainbow/queryUserPage", + "headers": { + "bizchannelinfo": this.get_bizchannelinfo(), + "authinfo": this.get_epay_authinfo() + }, + "form": _0x2f5980 + }, + { + result: _0x1c34ea + } = await this.request(_0x474605), + _0x1bc299 = _0x4c672b.get(_0x1c34ea, "code", -1); + if (_0x1bc299 == "0000" && _0x1c34ea?.["data"]?.["returnCode"] == 0) { + for (let _0x12adfb of _0x1c34ea?.["data"]?.["prizeList"]?.["rainbowMouldInfos"] || []) { + _0x12adfb?.["rainbowUnitInfos"]?.[0]?.["unitActivityId"] && (await this.epay_28_unifyDraw(_0x12adfb.rainbowUnitInfos[0])); + if (_0x12adfb?.["day01DrawParam"]) { + await this.epay_28_queryMiddleUnit(_0x8d0c72, _0x12adfb.mouldName); + break; + } + } + } else { + let _0x4a1a93 = _0x1c34ea?.["message"] || _0x1c34ea?.["msg"] || ""; + this.log("联通支付日进入主页失败[" + _0x1bc299 + "]: " + _0x4a1a93); + } + } catch (_0x3d744b) { + console.log(_0x3d744b); + } + } + async ["epay_28_queryMiddleUnit"](_0x3e774f, _0x30d0bd, _0x5d6f2c = {}) { + try { + const _0x20f775 = { + "activityId": _0x3e774f, + "mouldName": _0x30d0bd + }; + let _0x173f9e = { + "fn": "epay_28_queryMiddleUnit", + "method": "post", + "url": "https://epay.10010.com/ci-mcss-party-front/v1/rainbow/queryMiddleUnit", + "headers": { + "bizchannelinfo": this.get_bizchannelinfo(), + "authinfo": this.get_epay_authinfo() + }, + "form": _0x20f775 + }, + { + result: _0x5b246a + } = await this.request(_0x173f9e), + _0x4313af = _0x4c672b.get(_0x5b246a, "code", -1); + if (_0x4313af == "0000") { + let _0x4dae79 = _0x4c672b.time("dd"); + _0x5b246a?.["data"]?.[_0x4dae79] == "1" ? this.log("联通支付日今日(" + _0x4dae79 + "号)已打卡") : await this.epay_28_unifyDrawNew(_0x3e774f, _0x30d0bd); + } else { + let _0x521220 = _0x5b246a?.["message"] || _0x5b246a?.["msg"] || ""; + this.log("联通支付日查询打卡失败[" + _0x4313af + "]: " + _0x521220); + } + } catch (_0x39057a) { + console.log(_0x39057a); + } + } + async ["epay_28_unifyDrawNew"](_0x369157, _0x306bf0, _0x4a12ea = {}) { + try { + const _0x25802c = { + "bizFrom": _0x3e622c, + "activityId": _0x369157, + "mouldName": _0x306bf0 + }; + let _0x285f57 = { + "fn": "epay_28_unifyDrawNew", + "method": "post", + "url": "https://epay.10010.com/ci-mcss-party-front/v1/rainbow/unifyDrawNew", + "headers": { + "bizchannelinfo": this.get_bizchannelinfo(), + "authinfo": this.get_epay_authinfo() + }, + "form": _0x25802c + }, + { + result: _0x4d32a5 + } = await this.request(_0x285f57), + _0x2b3357 = _0x4c672b.get(_0x4d32a5, "code", -1); + if (_0x2b3357 == "0000" && _0x4d32a5?.["data"]?.["returnCode"] == 0) { + let _0x2ce860 = _0x4d32a5?.["data"]?.["awardTipContent"]?.["replace"](/xx/, _0x4d32a5?.["data"]?.["amount"]); + const _0x5333bb = { + "notify": true + }; + this.log("联通支付日打卡:" + _0x2ce860, _0x5333bb); + } else { + let _0x124669 = _0x4d32a5?.["data"]?.["returnMsg"] || _0x4d32a5?.["msg"] || ""; + this.log("联通支付日打卡失败[" + (_0x4d32a5?.["data"]?.["returnCode"] || _0x2b3357) + "]: " + _0x124669); + } + } catch (_0x2cc4f4) { + console.log(_0x2cc4f4); + } + } + async ["epay_28_unifyDraw"](_0x456103, _0x9e054b = {}) { + try { + const _0xf5bb94 = { + "activityId": _0x456103.unitActivityId, + "isBigActivity": _0x456103.isBigActivity, + "bigActivityId": _0x456103.bigActivityId, + "bizFrom": _0x3e622c + }; + let _0x473253 = { + "fn": "epay_28_unifyDraw", + "method": "post", + "url": "https://epay.10010.com/ci-mcss-party-front/v1/rainbow/unifyDraw", + "headers": { + "bizchannelinfo": this.get_bizchannelinfo(), + "authinfo": this.get_epay_authinfo() + }, + "form": _0xf5bb94 + }, + { + result: _0x3d29a2 + } = await this.request(_0x473253), + _0x1c6cf0 = _0x4c672b.get(_0x3d29a2, "code", -1); + if (_0x1c6cf0 == "0000" && _0x3d29a2?.["data"]?.["returnCode"] == 0) { + const _0x303a75 = { + "notify": true + }; + this.log("联通支付日抽奖: " + (_0x3d29a2?.["data"]?.["prizeName"] || ""), _0x303a75); + } else { + let _0xbcc929 = _0x3d29a2?.["data"]?.["returnMsg"] || _0x3d29a2?.["msg"] || ""; + this.log("联通支付日抽奖失败[" + (_0x3d29a2?.["data"]?.["returnCode"] || _0x1c6cf0) + "]: " + _0xbcc929); + } + } catch (_0x52239c) { + console.log(_0x52239c); + } + } + async ["appMonth_28_bind"](_0x18799a, _0x19159c = {}) { + try { + const _0xabb4d4 = { + "shareCode": _0x18799a, + "cl": "WeChat" + }, + _0x160426 = { + "fn": "appMonth_28_bind", + "method": "post", + "url": "https://activity.10010.com/AppMonthly/appMonth/bind", + "form": _0xabb4d4, + "valid_code": [401] + }; + let { + result: _0x162efa + } = await this.request(_0x160426); + } catch (_0x362ccb) { + console.log(_0x362ccb); + } + } + async ["appMonth_28_queryChance"](_0x15762a = {}) { + try { + const _0x325a3c = { + "fn": "appMonth_28_queryChance", + "method": "post", + "url": "https://activity.10010.com/AppMonthly/appMonth/queryChance" + }; + let { + result: _0x8f6119 + } = await this.request(_0x325a3c), + _0x5565fb = _0x4c672b.get(_0x8f6119, "status", -1); + if (_0x5565fb == "0000") { + let { + allRemainTimes: _0x546b33, + isUnicom: _0x23cd0d + } = _0x8f6119?.["data"]; + if (_0x23cd0d) { + let _0x2536cd = Math.min(_0x52ff20, _0x546b33); + this.log("联通支付日可以开宝箱" + _0x546b33 + "次, 去抽" + _0x2536cd + "次"); + while (_0x2536cd-- > 0) { + await this.appMonth_28_lottery(); + } + } + } else { + let _0x42e45c = _0x8f6119?.["msg"] || ""; + this.log("联通支付日查询开宝箱次数失败[" + _0x5565fb + "]: " + _0x42e45c); + } + } catch (_0x4d9133) { + console.log(_0x4d9133); + } + } + async ["appMonth_28_lottery"](_0x357e0a = {}) { + try { + const _0x310c22 = { + "fn": "appMonth_28_lottery", + "method": "post", + "url": "https://activity.10010.com/AppMonthly/appMonth/lottery" + }; + let { + result: _0x3fb11d + } = await this.request(_0x310c22), + _0x3ef61b = _0x4c672b.get(_0x3fb11d, "status", -1); + if (_0x3ef61b == "0000") { + let { + code: _0x2e7765, + uuid: _0x2dafa6 + } = _0x3fb11d?.["data"]; + _0x2dafa6 ? await this.appMonth_28_winningRecord(_0x2dafa6) : this.log("联通支付日开宝箱失败[" + _0x2e7765 + "]"); + } else { + let _0x36c3c1 = _0x3fb11d?.["msg"] || ""; + this.log("联通支付日开宝箱失败[" + _0x3ef61b + "]: " + _0x36c3c1); + } + } catch (_0x3adfc9) { + console.log(_0x3adfc9); + } + } + async ["appMonth_28_winningRecord"](_0xbb4c1b, _0x3d6047 = {}) { + try { + const _0xcc64cc = { + "requestId": _0xbb4c1b + }, + _0x44a872 = { + "fn": "appMonth_28_winningRecord", + "method": "post", + "url": "https://activity.10010.com/AppMonthly/appMonth/winningRecord", + "form": _0xcc64cc + }; + let { + result: _0x321061 + } = await this.request(_0x44a872), + _0x22dc43 = _0x4c672b.get(_0x321061, "status", -1); + if (_0x22dc43 == "0000") { + let { + code: _0x49e36c, + prizeName: _0x4cad6e + } = _0x321061?.["data"]; + if (_0x49e36c == "0000") { + const _0x34b326 = { + "notify": true + }; + this.log("联通支付日开宝箱: " + _0x4cad6e, _0x34b326); + } else { + let _0x3b46e4 = _0x321061?.["data"]?.["message"] || ""; + this.log("联通支付日开宝箱[" + _0x49e36c + "]: " + _0x3b46e4); + } + } else { + let _0x18dd63 = _0x321061?.["msg"] || ""; + this.log("联通支付日查询中奖奖品错误[" + _0x22dc43 + "]: " + _0x18dd63); + } + } catch (_0x5c3119) { + console.log(_0x5c3119); + } + } + async ["sign_getContinuous"](_0x122e3f = {}) { + try { + const _0x5799d6 = { + "fn": "sign_getContinuous", + "method": "post", + "url": "https://act.10010.com/SigninApp/signin/getContinuous", + "form": {} + }; + _0x5799d6.form.taskId = ""; + _0x5799d6.form.channel = "shouye"; + _0x5799d6.form.imei = ""; + let { + result: _0x47dfc9 + } = await this.request(_0x5799d6), + _0xe3f1c3 = _0x4c672b.get(_0x47dfc9, "status", -1); + if (_0xe3f1c3 == "0000") { + let _0x36961f = _0x47dfc9?.["data"]?.["todaySigned"] || 0; + const _0x40a159 = { + "notify": true + }; + this.log("签到区今天" + (_0x36961f == "1" ? "未" : "已") + "签到", _0x40a159); + _0x36961f == "1" && (await _0x4c672b.wait(1000), await this.sign_daySign()); + } else { + let _0x1902dd = _0x47dfc9?.["msg"] || ""; + this.log("签到区查询签到状态失败[" + _0xe3f1c3 + "]: " + _0x1902dd); + } + } catch (_0x1e1bc0) { + console.log(_0x1e1bc0); + } + } + async ["sign_daySign"](_0x20417b = {}) { + try { + const _0x518e49 = { + "shareCl": "", + "shareCode": "" + }, + _0x2de278 = { + "fn": "sign_daySign", + "method": "post", + "url": "https://act.10010.com/SigninApp/signin/daySign", + "form": _0x518e49 + }; + let { + result: _0x3cdad1 + } = await this.request(_0x2de278), + _0x34afd1 = _0x4c672b.get(_0x3cdad1, "status", -1); + if (_0x34afd1 == "0000") { + let { + prizeName: _0x2ca6f7, + redSignMessage: _0x47ac80 + } = _0x3cdad1?.["data"]; + const _0x3d737d = { + "notify": true + }; + this.log("签到区签到成功: [" + _0x2ca6f7 + "]" + _0x47ac80, _0x3d737d); + } else { + let _0x19cdcc = _0x3cdad1?.["msg"] || ""; + this.log("签到区签到失败[" + _0x34afd1 + "]: " + _0x19cdcc); + } + } catch (_0x480c5a) { + console.log(_0x480c5a); + } + } + async ["sign_queryBubbleTask"](_0x1057d3 = {}) { + try { + const _0x2a547d = { + "fn": "sign_queryBubbleTask", + "method": "post", + "url": "https://act.10010.com/SigninApp/bubbleTask/queryBubbleTask" + }; + let { + result: _0x57df53 + } = await this.request(_0x2a547d), + _0x5958fe = _0x4c672b.get(_0x57df53, "status", -1); + if (_0x5958fe == "0000") { + for (let _0x68b9b8 of _0x57df53?.["data"]?.["paramsList"]?.["filter"](_0x4e933a => _0x4e933a.taskState == 1)) { + let _0x9f76ca = await this.gettaskip(); + await this.sign_doTask(_0x68b9b8, _0x9f76ca); + } + } else { + let _0x5be1a2 = _0x57df53?.["msg"] || ""; + this.log("签到区查询气泡任务失败[" + _0x5958fe + "]: " + _0x5be1a2); + } + } catch (_0x396c63) { + console.log(_0x396c63); + } + } + async ["sign_doTask"](_0x20d168, _0x127f80, _0x481e25 = {}) { + try { + const _0x38c95e = { + "id": _0x20d168.id, + "orderId": _0x127f80, + "imei": "BB97982E-3F03-46D3-B904-819D626DF478", + "prizeType": _0x20d168.rewardType, + "positionFlag": 0 + }, + _0x48ab85 = { + "fn": "sign_doTask", + "method": "post", + "url": "https://act.10010.com/SigninApp/task/doTask", + "form": _0x38c95e + }; + let { + result: _0x30787d + } = await this.request(_0x48ab85), + _0x428cbd = _0x4c672b.get(_0x30787d, "status", -1); + if (_0x428cbd == "0000") { + this.log("完成任务[" + _0x20d168.actName + "]获得: " + _0x30787d?.["data"]?.["prizeCount"] + _0x30787d?.["data"]?.["prizeName"]); + } else { + let _0x4ea004 = _0x30787d?.["msg"] || ""; + this.log("完成任务[" + _0x20d168.actName + "]失败[" + _0x428cbd + "]: " + _0x4ea004); + } + } catch (_0x3bd4d0) { + console.log(_0x3bd4d0); + } + } + async ["game_login"](_0x21ea69, _0x2b96b9 = {}) { + try { + const _0x329eda = { + "identityType": "esToken", + "code": this.ecs_token, + "ticket": _0x21ea69, + "uuid": _0x27f1a2 + }, + _0x1e3b5a = { + "fn": "game_login", + "method": "post", + "url": "https://game.wostore.cn/api/app//user/v2/login", + "headers": {}, + "json": _0x329eda + }; + _0x1e3b5a.headers.channelid = "GAMELTAPP_90005"; + let { + result: _0x4aaed9 + } = await this.request(_0x1e3b5a), + _0x148f69 = _0x4c672b.get(_0x4aaed9, "code", -1); + if (_0x148f69 == 200) { + this.game_token = _0x4aaed9?.["data"]?.["access_token"]; + this.got = this.got.extend({ + "headers": { + "Authorization": this.game_token + } + }); + await this.game_getMemberInfo(); + await this.game_signRecord(); + await this.game_lottery(); + await this.game_playSave(); + await this.game_taskList(); + await this.game_getMemberInfo(); + const _0x472847 = { + "notify": true + }; + this.log("联通畅游币: " + this.point, _0x472847); + } else { + let _0x1b5b84 = _0x4aaed9?.["msg"] || ""; + this.log("联通畅游登录失败[" + _0x148f69 + "]: " + _0x1b5b84); + } + } catch (_0x15cfe4) { + console.log(_0x15cfe4); + } + } + async ["game_getMemberInfo"](_0x28adeb = {}) { + try { + const _0xdbbdd5 = { + "fn": "game_getMemberInfo", + "method": "get", + "url": "https://game.wostore.cn/api/app/user/v2/getMemberInfo" + }; + let { + result: _0x1ca18a + } = await this.request(_0xdbbdd5), + _0x2b940d = _0x4c672b.get(_0x1ca18a, "code", -1); + if (_0x2b940d == 200) this.point = _0x1ca18a?.["data"]?.["userIntegral"];else { + let _0x109f7c = _0x1ca18a?.["msg"] || ""; + this.log("联通畅游查询积分失败[" + _0x2b940d + "]: " + _0x109f7c); + } + } catch (_0x43eb71) { + console.log(_0x43eb71); + } + } + async ["game_signRecord"](_0x249829 = {}) { + try { + const _0xe02e7b = { + "fn": "game_signRecord", + "method": "get", + "url": "https://game.wostore.cn/api/app/user/v2/signRecord" + }; + let { + result: _0x442d2e + } = await this.request(_0xe02e7b), + _0x414dc4 = _0x4c672b.get(_0x442d2e, "code", -1); + if (_0x414dc4 == 200) { + for (let _0xac6a0a of _0x442d2e?.["data"]) { + if (_0xac6a0a.now == 0) { + continue; + } + this.log("联通畅游今天" + (_0xac6a0a.signStatus == 2 ? "未" : "已") + "签到"); + _0xac6a0a.signStatus == 2 && (await this.game_signIn()); + } + } else { + let _0x4c2018 = _0x442d2e?.["msg"] || ""; + this.log("联通畅游查询签到失败[" + _0x414dc4 + "]: " + _0x4c2018); + } + } catch (_0x376a54) { + console.log(_0x376a54); + } + } + async ["game_signIn"](_0x303b9b = {}) { + try { + const _0x5beb26 = { + "fn": "game_signIn", + "method": "get", + "url": "https://game.wostore.cn/api/app/user/v2/signIn" + }; + let { + result: _0x8ec08a + } = await this.request(_0x5beb26), + _0x56087a = _0x4c672b.get(_0x8ec08a, "code", -1); + if (_0x56087a == 200) { + this.log("联通畅游签到成功"); + } else { + let _0x591a14 = _0x8ec08a?.["msg"] || ""; + this.log("联通畅游签到失败[" + _0x56087a + "]: " + _0x591a14); + } + } catch (_0x1016ae) { + console.log(_0x1016ae); + } + } + async ["game_checkSlider"](_0x566cd5 = {}) { + let _0x158a38 = false; + try { + const _0x3e5cba = { + "xPos": 234 + }, + _0x1eb094 = { + "fn": "game_checkSlider", + "method": "post", + "url": "https://game.wostore.cn/api/app/common/slider/checkSlider", + "searchParams": _0x3e5cba + }; + let { + result: _0x14d521 + } = await this.request(_0x1eb094), + _0x58928f = _0x4c672b.get(_0x14d521, "code", -1); + if (_0x58928f == 200) this.log("联通畅游滑块验证成功");else { + let _0x729d6c = _0x14d521?.["msg"] || ""; + this.log("联通畅游滑块验证失败[" + _0x58928f + "]: " + _0x729d6c); + } + } catch (_0x89e188) { + console.log(_0x89e188); + } finally { + return _0x158a38; + } + } + async ["game_lottery"](_0x15b6b1 = {}) { + try { + let _0x3ca932 = { + "fn": "game_lottery", + "method": "get", + "url": "https://game.wostore.cn/api/app/user/v2/benefit/lottery", + "searchParams": { + "id": _0x4c672b.get(_0x15b6b1, "id", 1) + } + }, + { + result: _0x3a7c18 + } = await this.request(_0x3ca932), + _0x3fbf3e = _0x4c672b.get(_0x3a7c18, "code", -1); + if (_0x3fbf3e == 200) { + const _0x282e19 = { + "notify": true + }; + this.log("联通畅游抽奖: " + _0x3a7c18?.["data"]?.["productName"], _0x282e19); + } else { + let _0x877565 = _0x3a7c18?.["msg"] || ""; + this.log("联通畅游抽奖失败[" + _0x3fbf3e + "]: " + _0x877565); + } + } catch (_0x1c2c0d) { + console.log(_0x1c2c0d); + } + } + async ["game_taskList"](_0xe2d186 = {}) { + try { + const _0x26690a = { + "fn": "game_taskList", + "method": "get", + "url": "https://game.wostore.cn/api/app/user/v2/task/list" + }; + let { + result: _0x1318ca + } = await this.request(_0x26690a), + _0x290b39 = _0x4c672b.get(_0x1318ca, "code", -1); + if (_0x290b39 == 200) { + for (let _0xc2ed34 of _0x1318ca?.["data"]) { + switch (_0xc2ed34.receiveStatus) { + case 0: + break; + case 1: + await this.game_taskReceive(_0xc2ed34); + break; + case 2: + break; + default: + _0x4c672b.log("任务[" + _0xc2ed34.taskName + "]未知状态[" + _0xc2ed34.receiveStatus + "]"); + break; + } + } + } else { + let _0x55aa8a = _0x1318ca?.["msg"] || ""; + this.log("联通畅游查询任务失败[" + _0x290b39 + "]: " + _0x55aa8a); + } + } catch (_0x581d7b) { + console.log(_0x581d7b); + } + } + async ["game_taskReceive"](_0x40f5d3, _0x38f2e4 = {}) { + try { + const _0x2057bd = { + "productId": _0x40f5d3.productId, + "taskId": _0x40f5d3.id + }, + _0x515b32 = { + "fn": "game_taskReceive", + "method": "get", + "url": "https://game.wostore.cn/api/app/user/v2/task/receive", + "searchParams": _0x2057bd + }; + let { + result: _0x17b3b2 + } = await this.request(_0x515b32), + _0x3d309e = _0x4c672b.get(_0x17b3b2, "code", -1); + if (_0x3d309e == 200) this.log("领取任务[" + _0x40f5d3.taskName + "]奖励成功");else { + let _0x459523 = _0x17b3b2?.["msg"] || ""; + this.log("领取任务[" + _0x40f5d3.taskName + "]奖励失败[" + _0x3d309e + "]: " + _0x459523); + } + } catch (_0x52227c) { + console.log(_0x52227c); + } + } + async ["game_playSave"](_0x3c8aad = {}) { + try { + let _0x40c49b = { + "fn": "game_playSave", + "method": "post", + "url": "https://game.wostore.cn/api/app/user/v2/play/save", + "json": { + "cpGameId": "15000199" + _0x4c672b.randomString(2, "0123456789") + } + }, + { + result: _0x2b1100 + } = await this.request(_0x40c49b), + _0x755c72 = _0x4c672b.get(_0x2b1100, "code", -1); + if (!(_0x755c72 == 200)) { + let _0x18f60d = _0x2b1100?.["msg"] || ""; + this.log("联通畅游玩游戏失败[" + _0x755c72 + "]: " + _0x18f60d); + } + } catch (_0xe85ffb) { + console.log(_0xe85ffb); + } + } + async ["flmf_login"](_0x546171, _0x42aa2d = {}) { + try { + const _0x518fe4 = { + "fn": "flmf_login", + "method": "get", + "url": _0x546171 + }; + let { + headers: _0x24eac5, + statusCode: _0x1b5b82 + } = await this.request(_0x518fe4); + if (_0x24eac5?.["location"]) { + let _0x2cf0f7 = new URL(_0x24eac5.location); + this.flmf_sid = _0x2cf0f7.searchParams.get("sid"); + this.flmf_sid ? (await this.flmf_signInInit(), await this.flmf_taskList(), await this.flmf_scanTask()) : this.log("福利魔方获取sid失败"); + } else this.log("福利魔方获取sid失败[" + _0x1b5b82 + "]"); + } catch (_0x211c43) { + console.log(_0x211c43); + } + } + async ["flmf_signInInit"](_0x375508 = {}) { + try { + let _0x52323b = { + "fn": "flmf_signInInit", + "method": "post", + "url": "https://weixin.linktech.hk/lv-apiaccess/welfareCenter/signInInit", + "form": this.get_flmf_data() + }, + { + result: _0x3f61de + } = await this.request(_0x52323b), + _0x18c2f5 = _0x4c672b.get(_0x3f61de, "resultCode", -1); + if (_0x18c2f5 == "0000") this.log("福利魔方今天" + (_0x3f61de?.["data"]?.["isSigned"] ? "已" : "未") + "签到, 已连续签到" + _0x3f61de?.["data"]?.["consecutiveDays"] + "天"), !_0x3f61de?.["data"]?.["isSigned"] && (await this.flmf_signIn());else { + let _0x145903 = _0x3f61de?.["resultMsg"] || ""; + this.log("福利魔方查询签到失败[" + _0x18c2f5 + "]: " + _0x145903); + } + } catch (_0x23e4fb) { + console.log(_0x23e4fb); + } + } + async ["flmf_signIn"](_0x28b0d1 = {}) { + try { + let _0xb0a98e = { + "fn": "flmf_signIn", + "method": "post", + "url": "https://weixin.linktech.hk/lv-apiaccess/welfareCenter/signIn", + "form": this.get_flmf_data() + }, + { + result: _0x54eac1 + } = await this.request(_0xb0a98e), + _0x429b8a = _0x4c672b.get(_0x54eac1, "resultCode", -1); + if (_0x429b8a == "0000") this.log("福利魔方签到成功");else { + let _0x163955 = _0x54eac1?.["resultMsg"] || ""; + this.log("福利魔方签到失败[" + _0x429b8a + "]: " + _0x163955); + } + } catch (_0xb9d858) { + console.log(_0xb9d858); + } + } + async ["flmf_taskList"](_0x4794e4 = {}) { + try { + let _0x2cc260 = { + "fn": "flmf_taskList", + "method": "post", + "url": "https://weixin.linktech.hk/lv-apiaccess/welfareCenter/taskList", + "form": this.get_flmf_data() + }, + { + result: _0x34ed72 + } = await this.request(_0x2cc260), + _0x26b1da = _0x4c672b.get(_0x34ed72, "resultCode", -1); + if (_0x26b1da == "0000") for (let _0x2b5926 of _0x34ed72?.["data"]?.["taskInfoList"]) { + for (let _0xc9691 of _0x2b5926.taskInfoList.filter(_0x139373 => !_0x139373.done)) { + for (let _0x518fd4 = _0xc9691.hascount; _0x518fd4 < _0xc9691.count; _0x518fd4++) { + await this.flmf_gogLance(_0xc9691.id); + } + } + } else { + let _0x6450e0 = _0x34ed72?.["resultMsg"] || ""; + this.log("福利魔方查询任务失败[" + _0x26b1da + "]: " + _0x6450e0); + } + } catch (_0x6eb920) { + console.log(_0x6eb920); + } + } + async ["flmf_scanTask"]() { + for (let _0x24954a of _0x26ccd8) { + await this.flmf_gogLance(_0x24954a); + } + } + async ["flmf_gogLance"](_0x5df482, _0x172e27 = {}) { + try { + let _0x40ab5a = { + "fn": "flmf_gogLance", + "method": "post", + "url": "https://weixin.linktech.hk/lv-apiaccess/welfareCenter/gogLance", + "form": { + "taskId": _0x5df482, + ...this.get_flmf_data() + } + }, + { + result: _0x371575 + } = await this.request(_0x40ab5a); + await _0x4c672b.wait_gap_interval(this.t_flmf_task, _0x123877); + let _0x116561 = _0x4c672b.get(_0x371575, "resultCode", -1); + this.t_flmf_task = Date.now(); + if (_0x116561 == "0000") this.log("完成任务[" + _0x5df482 + "]成功");else { + let _0x45aec5 = _0x371575?.["resultMsg"] || ""; + this.log("完成任务[" + _0x5df482 + "]失败[" + _0x116561 + "]: " + _0x45aec5); + } + } catch (_0x393377) { + console.log(_0x393377); + } + } + async ["woread_api"](_0x2ca0d6) { + let _0x4ea22a = await this.request(_0x4c672b.copy(_0x2ca0d6)), + _0x1acff3 = _0x4ea22a?.["result"]?.["message"] || ""; + return _0x1acff3?.["includes"]("登录已过期") && (await this.woread_auth()) && (await this.woread_login()) && (_0x4ea22a = await this.request(_0x4c672b.copy(_0x2ca0d6))), _0x4ea22a; + } + ["switch_woread_token"](_0x31d078) { + const _0x176c7b = { + "accesstoken": _0x31d078 + }, + _0x355869 = { + "headers": _0x176c7b + }; + this.got = this.got.extend(_0x355869); + } + async ["woread_auth"](_0x76d5ae = {}) { + let _0x3a002a = false; + try { + let _0x52fe28 = _0x4c672b.time("yyyyMMddhhmmss"); + const _0x49e6fb = { + "timestamp": _0x52fe28 + }; + let _0x205cf7 = this.encode_woread(_0x49e6fb), + _0x255ef1 = Date.now().toString(), + _0x31acfe = _0x368aa5.MD5(_0x3d9810 + _0xa01453 + _0x255ef1).toString(); + const _0x5e95a2 = { + "sign": _0x205cf7 + }, + _0x364f84 = { + "fn": "woread_auth", + "method": "post", + "url": "https://10010.woread.com.cn/ng_woread_service/rest/app/auth/" + _0x3d9810 + "/" + _0x255ef1 + "/" + _0x31acfe, + "json": _0x5e95a2 + }; + let { + result: _0x2341d6 + } = await this.request(_0x364f84), + _0x3a753a = _0x4c672b.get(_0x2341d6, "code", -1); + if (_0x3a753a == "0000") _0x3a002a = true, this.woread_accesstoken = _0x2341d6?.["data"]?.["accesstoken"], this.switch_woread_token(this.woread_accesstoken);else { + let _0x5ce8f6 = _0x2341d6?.["message"] || ""; + this.log("阅读专区获取accesstoken失败[" + _0x3a753a + "]: " + _0x5ce8f6); + } + } catch (_0x1df330) { + console.log(_0x1df330); + } finally { + return _0x3a002a; + } + } + async ["woread_login"](_0x21d051 = {}) { + let _0x1ed2e0 = false; + try { + let _0xe25a3b = { + "phone": this.mobile, + "timestamp": _0x4c672b.time("yyyyMMddhhmmss") + }, + _0x53d901 = this.encode_woread(_0xe25a3b); + const _0x467213 = { + "sign": _0x53d901 + }, + _0x4e5558 = { + "fn": "woread_login", + "method": "post", + "url": "https://10010.woread.com.cn/ng_woread_service/rest/account/login", + "json": _0x467213 + }; + let { + result: _0x516d47 + } = await this.request(_0x4e5558), + _0x398486 = _0x4c672b.get(_0x516d47, "code", -1); + if (_0x398486 == "0000") { + _0x1ed2e0 = true; + let { + userid: _0x1b1700, + userindex: _0x561755, + token: _0x4732fb, + verifycode: _0x48fb38 + } = _0x516d47?.["data"]; + this.woread_token = _0x4732fb; + this.woread_verifycode = _0x48fb38; + const _0x271e7c = { + "woread_userid": _0x1b1700, + "woread_userindex": _0x561755, + "woread_token": _0x4732fb, + "woread_verifycode": _0x48fb38 + }; + Object.assign(this, _0x271e7c); + } else { + let _0x564033 = _0x516d47?.["message"] || ""; + this.log("阅读专区获取token失败[" + _0x398486 + "]: " + _0x564033); + } + } catch (_0x4b2d3c) { + console.log(_0x4b2d3c); + } finally { + return _0x1ed2e0; + } + } + async ["woread_m_auth"](_0x4bb71d = {}) { + let _0x3f964a = false; + try { + let _0x4d8c0b = Date.now().toString(), + _0x79ae8e = _0x368aa5.MD5(_0x4872bf + _0x457ac0 + _0x4d8c0b).toString(); + const _0x4a21a6 = { + "fn": "woread_auth", + "method": "get", + "url": "https:///m.woread.com.cn/api/union/app/auth/" + _0x4872bf + "/" + _0x4d8c0b + "/" + _0x79ae8e + }; + let { + result: _0x11b167 + } = await this.request(_0x4a21a6), + _0x806a2a = _0x4c672b.get(_0x11b167, "code", -1); + if (_0x806a2a == "0000") _0x3f964a = true, this.woread_m_accesstoken = _0x11b167?.["data"]?.["accesstoken"], this.switch_woread_token(this.woread_m_accesstoken);else { + let _0x54f207 = _0x11b167?.["message"] || ""; + this.log("阅读专区获取accesstoken失败[" + _0x806a2a + "]: " + _0x54f207); + } + } catch (_0x29eeb4) { + console.log(_0x29eeb4); + } finally { + return _0x3f964a; + } + } + async ["woread_m_login"](_0x5e1a = {}) { + let _0x3899f4 = false; + try { + let _0x31ca4d = { + "userid": this.woread_userid, + "token": this.woread_token, + "timestamp": Date.now() + }, + _0x484ce8 = { + "userData": Buffer.from(JSON.stringify(_0x31ca4d), "utf-8").toString("base64"), + ...this.get_woread_m_param() + }; + delete _0x484ce8.token; + let _0x4ad81d = this.encode_woread(_0x484ce8, _0x20c0ff); + const _0x1a21cd = { + "sign": _0x4ad81d + }, + _0xa9ba73 = { + "fn": "woread_login", + "method": "post", + "url": "https://m.woread.com.cn/api/union/user/thirdPartyFreeLogin", + "json": _0x1a21cd + }; + let { + result: _0x3d44ea + } = await this.request(_0xa9ba73), + _0x18c9c9 = _0x4c672b.get(_0x3d44ea, "code", -1); + if (_0x18c9c9 == "0000") _0x3899f4 = true;else { + let _0x617d00 = _0x3d44ea?.["message"] || ""; + this.log("阅读专区获取token失败[" + _0x18c9c9 + "]: " + _0x617d00); + } + } catch (_0x10af92) { + console.log(_0x10af92); + } finally { + return _0x3899f4; + } + } + async ["woread_getSeeVideoAddNumber"](_0x16a007, _0x51e978 = {}) { + try { + let _0x7c0cda = { + "activityIndex": _0x16a007, + ...this.get_woread_param() + }, + _0x110cf5 = this.encode_woread(_0x7c0cda); + const _0x5bea35 = { + "sign": _0x110cf5 + }, + _0x3657f2 = { + "fn": "woread_getSeeVideoAddNumber", + "method": "post", + "url": "https://10010.woread.com.cn/ng_woread_service/rest/activity/getSeeVideoAddNumber", + "json": _0x5bea35 + }; + let { + result: _0x2edf74 + } = await this.woread_api(_0x3657f2), + _0x1956e3 = _0x4c672b.get(_0x2edf74, "code", -1); + if (_0x1956e3 == "0000") _0x2edf74?.["data"] == -1 && (await this.woread_addUserSeeVideo(_0x16a007));else { + let _0x287922 = _0x2edf74?.["message"] || ""; + this.log("阅读活动[" + _0x16a007 + "]查询抽奖视频失败[" + _0x1956e3 + "]: " + _0x287922); + } + } catch (_0x5b3c09) { + console.log(_0x5b3c09); + } + } + async ["woread_addUserSeeVideo"](_0x1bd6c8, _0x5ebee0 = {}) { + try { + let _0x5a9f20 = _0x5ebee0.num || 5, + _0x27d3b5 = { + "activityIndex": _0x1bd6c8, + "num": _0x5a9f20, + ...this.get_woread_param() + }, + _0x9d2687 = this.encode_woread(_0x27d3b5); + const _0x14c786 = { + "sign": _0x9d2687 + }, + _0x74cf2b = { + "fn": "woread_addUserSeeVideo", + "method": "post", + "url": "https://10010.woread.com.cn/ng_woread_service/rest/activity/addUserSeeVideo", + "json": _0x14c786 + }; + let { + result: _0x464f70 + } = await this.woread_api(_0x74cf2b), + _0x2ef85b = _0x4c672b.get(_0x464f70, "code", -1); + if (_0x2ef85b == "0000") this.log("阅读活动[" + _0x1bd6c8 + "]看视频增加抽奖次数成功");else { + let _0x5b2414 = _0x464f70?.["message"] || ""; + this.log("阅读活动[" + _0x1bd6c8 + "]看视频增加抽奖次数失败[" + _0x2ef85b + "]: " + _0x5b2414); + } + } catch (_0x5db3f3) { + console.log(_0x5db3f3); + } + } + async ["woread_getActivityNumber"](_0x8f8dba, _0x57a464 = {}) { + try { + let _0x3b4553 = { + "activeIndex": _0x8f8dba, + ...this.get_woread_param() + }, + _0x31b0f7 = this.encode_woread(_0x3b4553); + const _0xf152d4 = { + "sign": _0x31b0f7 + }, + _0x2a3867 = { + "fn": "woread_getActivityNumber", + "method": "post", + "url": "https://10010.woread.com.cn/ng_woread_service/rest/activity/getActivityNumber", + "json": _0xf152d4 + }; + let { + result: _0x367e75 + } = await this.woread_api(_0x2a3867), + _0x550c34 = _0x4c672b.get(_0x367e75, "code", -1); + if (_0x550c34 == "0000") { + let _0x5cad24 = _0x367e75?.["data"] || 0; + this.log("阅读活动[" + _0x8f8dba + "]可以抽奖" + _0x5cad24 + "次"); + while (_0x5cad24-- > 0) { + await _0x4c672b.wait(5000); + await this.woread_doDraw(_0x8f8dba); + } + } else { + let _0x720019 = _0x367e75?.["message"] || ""; + this.log("阅读活动[" + _0x8f8dba + "]查询抽奖次数失败[" + _0x550c34 + "]: " + _0x720019); + } + } catch (_0x339d07) { + console.log(_0x339d07); + } + } + async ["woread_addDrawTimes"](_0xb126b6, _0x27b98d = {}) { + try { + let _0x2e1a46 = { + "activetyindex": _0xb126b6, + ...this.get_woread_param() + }, + _0x5c3dd0 = this.encode_woread(_0x2e1a46); + const _0x1f25c4 = { + "sign": _0x5c3dd0 + }, + _0x59dc92 = { + "fn": "woread_addDrawTimes", + "method": "post", + "url": "https://10010.woread.com.cn/ng_woread_service/rest/basics/addDrawTimes", + "json": _0x1f25c4 + }; + await _0x4c672b.wait_gap_interval(this.t_woread_draw, _0x5d9e11); + let { + result: _0x2348c1 + } = await this.woread_api(_0x59dc92); + this.t_woread_draw = Date.now(); + let _0x1bc0a9 = _0x4c672b.get(_0x2348c1, "code", -1); + if (_0x1bc0a9 == "0000") this.log("阅读活动[" + _0xb126b6 + "]打卡增加抽奖次数成功");else { + if (_0x1bc0a9 != "9999") { + let _0xfa0f65 = _0x2348c1?.["message"] || ""; + this.log("阅读活动[" + _0xb126b6 + "]打卡增加抽奖次数失败[" + _0x1bc0a9 + "]: " + _0xfa0f65); + } + } + } catch (_0x251479) { + console.log(_0x251479); + } + } + async ["woread_doDraw"](_0x4cf1c7, _0x12ac39 = {}) { + try { + let _0x274e6d = { + "activeindex": _0x4cf1c7, + ...this.get_woread_param() + }, + _0x9f359c = this.encode_woread(_0x274e6d); + const _0x4e16e8 = { + "sign": _0x9f359c + }, + _0x23cda7 = { + "fn": "woread_doDraw", + "method": "post", + "url": "https://10010.woread.com.cn/ng_woread_service/rest/basics/doDraw", + "json": _0x4e16e8 + }; + await _0x4c672b.wait_gap_interval(this.t_woread_draw, _0x5d9e11); + let { + result: _0x4e7059 + } = await this.woread_api(_0x23cda7); + this.t_woread_draw = Date.now(); + let _0x3e1a57 = _0x4c672b.get(_0x4e7059, "code", -1); + if (_0x3e1a57 == "0000") { + const _0x441686 = { + "notify": true + }; + this.log("阅读活动[" + _0x4cf1c7 + "]抽奖: " + (_0x4e7059?.["data"]?.["prizedesc"] || "空气"), _0x441686); + } else { + let _0x226686 = _0x4e7059?.["message"] || ""; + this.log("阅读活动[" + _0x4cf1c7 + "]抽奖失败[" + _0x3e1a57 + "]: " + _0x226686); + } + } catch (_0x56de36) { + console.log(_0x56de36); + } + } + async ["woread_queryTicketAccount"](_0x372e6d = {}) { + try { + let _0x459b64 = this.get_woread_param(), + _0x5bb3b1 = this.encode_woread(_0x459b64); + const _0x2ed743 = { + "sign": _0x5bb3b1 + }, + _0x3dd756 = { + "fn": "woread_queryTicketAccount", + "method": "post", + "url": "https://10010.woread.com.cn/ng_woread_service/rest/phone/vouchers/queryTicketAccount", + "json": _0x2ed743 + }; + let { + result: _0x41c609 + } = await this.woread_api(_0x3dd756), + _0x5300d1 = _0x4c672b.get(_0x41c609, "code", -1); + if (_0x5300d1 == "0000") { + let _0x1a1247 = (_0x41c609?.["data"]?.["usableNum"] / 100).toFixed(2); + const _0x505c16 = { + "notify": true + }; + this.log("阅读区话费红包余额: " + _0x1a1247, _0x505c16); + } else { + let _0x253ef0 = _0x41c609?.["message"] || ""; + this.log("查询阅读区话费红包余额失败[" + _0x5300d1 + "]: " + _0x253ef0); + } + } catch (_0x213494) { + console.log(_0x213494); + } + } + async ["woread_m_queryTicketAccount"](_0x28cc18 = {}) { + try { + let _0x1d02fd = this.get_woread_m_param(), + _0x2522c9 = this.encode_woread(_0x1d02fd, _0x20c0ff); + const _0x31808d = { + "sign": _0x2522c9 + }, + _0x2ea95e = { + "fn": "woread_m_queryTicketAccount", + "method": "post", + "url": "https://m.woread.com.cn/api/union/phone/vouchers/queryTicketAccount", + "json": _0x31808d + }; + let { + result: _0xfd31b8 + } = await this.woread_api(_0x2ea95e), + _0xa58818 = _0x4c672b.get(_0xfd31b8, "code", -1); + if (_0xa58818 == "0000") { + let _0x1add06 = (_0xfd31b8?.["data"]?.["usableNum"] / 100).toFixed(2); + const _0x48674c = { + "notify": true + }; + this.log("阅读区话费红包余额: " + _0x1add06, _0x48674c); + } else { + let _0x45f6ac = _0xfd31b8?.["message"] || ""; + this.log("查询阅读区话费红包余额失败[" + _0xa58818 + "]: " + _0x45f6ac); + } + } catch (_0x4b1413) { + console.log(_0x4b1413); + } + } + async ["woread_addReadTime"](_0x4596ad = {}) { + try { + let { + readTime = 2, + cntindex = "409672", + cntIndex = "409672", + cnttype = "1", + cntType = 1, + cardid = "11891", + catid = "118411", + pageIndex = "10683", + chapterseno = 1, + channelid = "", + chapterid = "-1", + readtype = 1, + isend = "0" + } = _0x4596ad, + _0xd5e26c = { + "readTime": readTime, + "cntindex": cntindex, + "cntIndex": cntIndex, + "cnttype": cnttype, + "cntType": cntType, + "catid": catid, + "cardid": cardid, + "pageIndex": pageIndex, + "chapterseno": chapterseno, + "channelid": channelid, + "chapterid": chapterid, + "readtype": readtype, + "isend": isend, + ...this.get_woread_param() + }, + _0x5213cd = this.encode_woread(_0xd5e26c); + const _0x2a9c60 = { + "sign": _0x5213cd + }, + _0x56e170 = { + "fn": "woread_addReadTime", + "method": "post", + "url": "https://10010.woread.com.cn/ng_woread_service/rest/history/addReadTime", + "json": _0x2a9c60 + }; + let { + result: _0x1fdaea + } = await this.request(_0x56e170), + _0x28f26b = _0x4c672b.get(_0x1fdaea, "code", -1); + if (_0x28f26b == "0000") this.log("刷新读小说时间: " + _0x1fdaea?.["data"]?.["readtime"] / 60 / 1000 + "分钟"), _0x1fdaea?.["data"]?.["readtime"] >= 3600000 && (this.read_stop = true);else { + let _0x5838d9 = _0x1fdaea?.["message"] || ""; + this.log("刷新读小说时间失败[" + _0x28f26b + "]: " + _0x5838d9); + } + } catch (_0x158872) { + console.log(_0x158872); + } + } + async ["woread_m_addReadTime"](_0x401cbf = {}) { + try { + let { + readTime = 2, + cntindex = "409672", + cntIndex = "409672", + cnttype = "1", + cntType = 1, + cardid = "11891", + catid = "118411", + pageIndex = "10683", + chapterseno = 1, + channelid = "", + chapterid = "-1", + readtype = 1, + isend = "0" + } = _0x401cbf, + _0xe5b11b = { + "readTime": readTime, + "cntindex": cntindex, + "cntIndex": cntIndex, + "cnttype": cnttype, + "cntType": cntType, + "catid": catid, + "cardid": cardid, + "pageIndex": pageIndex, + "chapterseno": chapterseno, + "channelid": channelid, + "chapterid": chapterid, + "readtype": readtype, + "isend": isend, + ...this.get_woread_m_param() + }, + _0x224b4c = this.encode_woread(_0xe5b11b, _0x20c0ff); + const _0x55f17c = { + "sign": _0x224b4c + }, + _0x180502 = { + "fn": "woread_m_addReadTime", + "method": "post", + "url": "https:///m.woread.com.cn/api/union/history/addReadTime", + "json": _0x55f17c + }; + let { + result: _0x51b0ee + } = await this.request(_0x180502), + _0x177a41 = _0x4c672b.get(_0x51b0ee, "code", -1); + if (_0x177a41 == "0000") this.log("刷新读小说时间: " + _0x51b0ee?.["data"]?.["readtime"] / 60 / 1000 + "分钟"), _0x51b0ee?.["data"]?.["readtime"] >= 3600000 && (this.read_stop = true);else { + let _0x355c8f = _0x51b0ee?.["message"] || ""; + this.log("刷新读小说时间失败[" + _0x177a41 + "]: " + _0x355c8f); + } + } catch (_0x8404a9) { + console.log(_0x8404a9); + } + } + async ["rabblit_queryActivityData"](_0xfc5b2f = {}) { + try { + let _0x151049 = { + "activeIndex": 26, + ...this.get_woread_param() + }, + _0x7d17fe = this.encode_woread(_0x151049); + const _0x4eb0e0 = { + "sign": _0x7d17fe + }, + _0x2f9b6b = { + "fn": "rabblit_queryActivityData", + "method": "post", + "url": "https://10010.woread.com.cn/ng_woread_service/rest/rabbitActivity/queryActivityData", + "json": _0x4eb0e0 + }; + let { + result: _0xa18483 + } = await this.woread_api(_0x2f9b6b), + _0x16dd51 = _0x4c672b.get(_0xa18483, "code", -1); + if (_0x16dd51 == "0000") { + let { + totalcharpternums: _0x2b2ffe, + totalreadnums: _0x4191c6, + status: _0x4fcd07, + activitystatus: _0x401805 + } = _0xa18483?.["data"]; + if (_0x401805 == 1) { + this.need_read_rabbit = false; + const _0x5c82ca = { + "notify": true + }; + this.log("龟兔赛跑今天已完成", _0x5c82ca); + return; + } + this.need_read_rabbit = true; + this.log("龟兔赛跑进度: " + _0x4191c6 + "/" + _0x2b2ffe + "分钟"); + if (_0x4fcd07 == 1) { + await this.rabblit_wakeRabbit(); + } + if (_0x4191c6 >= _0x2b2ffe) { + await this.rabblit_finishActivity(); + } + } else { + let _0x14fc1a = _0xa18483?.["message"] || ""; + _0x14fc1a?.["includes"]("未参加") && !_0xfc5b2f.join_retry && (await this.rabblit_joinRuning()) ? (_0xfc5b2f.join_retry = true, await this.rabblit_queryActivityData(_0xfc5b2f)) : this.log("龟兔赛跑查询状态失败[" + _0x16dd51 + "]: " + _0x14fc1a); + } + } catch (_0xffcd08) { + console.log(_0xffcd08); + } + } + async ["rabblit_joinRuning"](_0x5f2386 = {}) { + let _0x1342a7 = false; + try { + let _0x265774 = { + "activeIndex": 26, + ...this.get_woread_param() + }, + _0x100b32 = this.encode_woread(_0x265774); + const _0x227fff = { + "sign": _0x100b32 + }, + _0x5772c0 = { + "fn": "rabblit_joinRuning", + "method": "post", + "url": "https://10010.woread.com.cn/ng_woread_service/rest/rabbitActivity/joinRuning", + "json": _0x227fff + }; + let { + result: _0x1330b2 + } = await this.woread_api(_0x5772c0), + _0x395ce4 = _0x4c672b.get(_0x1330b2, "code", -1); + if (_0x395ce4 == "0000") _0x1342a7 = true, this.log("龟兔赛跑报名成功");else { + let _0x30a67e = _0x1330b2?.["message"] || ""; + this.log("龟兔赛跑报名失败[" + _0x395ce4 + "]: " + _0x30a67e); + } + } catch (_0x4b267a) { + console.log(_0x4b267a); + } finally { + return _0x1342a7; + } + } + async ["rabblit_wakeRabbit"](_0x4e845f = {}) { + try { + let _0x5f598b = { + "activeIndex": 26, + "sactivitIndex": 7246, + ...this.get_woread_param() + }, + _0x18b5fa = this.encode_woread(_0x5f598b); + const _0x4f8815 = { + "sign": _0x18b5fa + }, + _0x15e084 = { + "fn": "rabblit_wakeRabbit", + "method": "post", + "url": "https://10010.woread.com.cn/ng_woread_service/rest/rabbitActivity/wakeRabbit", + "json": _0x4f8815 + }; + await _0x4c672b.wait_gap_interval(this.t_woread_draw, _0x5d9e11); + let { + result: _0x41fe6d + } = await this.woread_api(_0x15e084); + this.t_woread_draw = Date.now(); + let _0x35133a = _0x4c672b.get(_0x41fe6d, "code", -1); + if (_0x35133a == "0000") { + const _0x58e19e = { + "notify": true + }; + this.log("龟兔赛跑唤醒兔子抽奖: " + (_0x41fe6d?.["data"]?.["prizedesc"] || "空气"), _0x58e19e); + } else { + let _0x2654f1 = _0x41fe6d?.["message"] || ""; + this.log("龟兔赛跑唤醒兔子失败[" + _0x35133a + "]: " + _0x2654f1); + } + } catch (_0x4a75a1) { + console.log(_0x4a75a1); + } + } + async ["rabblit_finishActivity"](_0x32e2f9 = {}) { + try { + let _0x2d0e8f = { + "activeIndex": 26, + ...this.get_woread_param() + }, + _0x25630f = this.encode_woread(_0x2d0e8f); + const _0x52f0f5 = { + "sign": _0x25630f + }, + _0x360a9c = { + "fn": "rabblit_finishActivity", + "method": "post", + "url": "https://10010.woread.com.cn/ng_woread_service/rest/rabbitActivity/finishActivity", + "json": _0x52f0f5 + }; + await _0x4c672b.wait_gap_interval(this.t_woread_draw, _0x5d9e11); + let { + result: _0x4800da + } = await this.woread_api(_0x360a9c); + this.t_woread_draw = Date.now(); + let _0x201505 = _0x4c672b.get(_0x4800da, "code", -1); + if (_0x201505 == "0000") { + this.need_read_rabbit = false; + const _0x36447f = { + "notify": true + }; + this.log("龟兔赛跑终点抽奖: " + (_0x4800da?.["data"]?.["prizedesc"] || "空气"), _0x36447f); + } else { + let _0x2bcc39 = _0x4800da?.["message"] || ""; + this.log("龟兔赛跑终点抽奖失败[" + _0x201505 + "]: " + _0x2bcc39); + } + } catch (_0x17fbcd) { + console.log(_0x17fbcd); + } + } + async ["moonbox_queryActiveInfo"](_0x5caa55 = {}) { + try { + let _0x350967 = this.get_woread_param(), + _0x592097 = this.encode_woread(_0x350967); + const _0x55d2af = { + "sign": _0x592097 + }, + _0x234b6b = { + "fn": "moonbox_queryActiveInfo", + "method": "post", + "url": "https://10010.woread.com.cn/ng_woread_service/rest/activity423/queryActiveInfo", + "json": _0x55d2af + }; + let { + result: _0x3fdbc8 + } = await this.woread_api(_0x234b6b), + _0x5d1705 = _0x4c672b.get(_0x3fdbc8, "code", -1); + if (_0x5d1705 == "0000") { + let { + activeId: _0x2555f0, + activeName: _0x3936c4 + } = _0x3fdbc8?.["data"]; + _0x55391c = _0x2555f0; + } else { + let _0x81706e = _0x3fdbc8?.["message"] || ""; + this.log("阅光宝盒查询活动失败[" + _0x5d1705 + "]: " + _0x81706e); + } + } catch (_0x3a72d6) { + console.log(_0x3a72d6); + } + } + async ["moonbox_queryCurTaskStatus"](_0x3a9974 = {}) { + try { + let _0x19964a = { + "activeIndex": _0x55391c, + ...this.get_woread_param() + }, + _0x9ca8f0 = this.encode_woread(_0x19964a); + const _0x1e0544 = { + "sign": _0x9ca8f0 + }, + _0x22f495 = { + "fn": "moonbox_queryCurTaskStatus", + "method": "post", + "url": "https://10010.woread.com.cn/ng_woread_service/rest/activity423/queryCurTaskStatus", + "json": _0x1e0544 + }; + let { + result: _0x4cd15d + } = await this.woread_api(_0x22f495), + _0x5cc95d = _0x4c672b.get(_0x4cd15d, "code", -1); + if (_0x5cc95d == "0000") { + for (let _0x11a79f of _0x4cd15d?.["data"] || []) { + let { + taskName: _0x1e6f58, + currentValue: _0xa78691, + taskValue: _0x5f1c48 + } = _0x11a79f?.["taskDetail"]; + switch (_0x11a79f.taskStatus) { + case 0: + { + this.moonbox_task_record[_0x1e6f58] = true; + this.log("阅光宝盒[" + _0x1e6f58 + "]进度: " + parseInt(_0xa78691) + "/" + _0x5f1c48 + "分钟"); + break; + } + case 2: + { + await this.moonbox_completeActiveTask(_0x11a79f); + } + case 1: + { + this.moonbox_task_record[_0x1e6f58] = false; + if (!this.moonbox_notified.includes(_0x1e6f58)) { + this.moonbox_notified.push(_0x1e6f58); + const _0x3f74a0 = { + "notify": true + }; + this.log("阅光宝盒任务[" + _0x1e6f58 + "]已完成", _0x3f74a0); + } + break; + } + } + } + } else { + let _0x3c2f0a = _0x4cd15d?.["message"] || ""; + _0x3c2f0a?.["includes"]("未领取") && !_0x3a9974.activate_retry && (await this.moonbox_queryActiveTaskList()) ? (_0x3a9974.activate_retry = true, await this.moonbox_queryCurTaskStatus(_0x3a9974)) : this.log("阅光宝盒查询任务状态失败[" + _0x5cc95d + "]: " + _0x3c2f0a); + } + } catch (_0x31ea45) { + console.log(_0x31ea45); + } + } + async ["moonbox_completeActiveTask"](_0x332a16, _0x259fa1 = {}) { + try { + let _0xf5cf8a = { + "taskId": _0x332a16.id, + ...this.get_woread_param() + }, + _0x4e8620 = this.encode_woread(_0xf5cf8a); + const _0x586f38 = { + "sign": _0x4e8620 + }, + _0x1bc492 = { + "fn": "moonbox_completeActiveTask", + "method": "post", + "url": "https://10010.woread.com.cn/ng_woread_service/rest/activity423/completeActiveTask", + "json": _0x586f38 + }; + let { + result: _0x31cc70 + } = await this.woread_api(_0x1bc492), + _0xfb4d5d = _0x4c672b.get(_0x31cc70, "code", -1); + if (_0xfb4d5d == "0000") { + const _0x509b80 = { + "notify": true + }; + this.log("阅光宝盒[" + _0x31cc70?.["data"]?.["taskDetail"]?.["taskName"] + "]领取奖励成功: " + _0x31cc70?.["data"]?.["exchangeResult"]?.["materialGroupInfo"]?.["groupName"], _0x509b80); + } else { + let _0x1d0801 = _0x31cc70?.["message"] || ""; + this.log("阅光宝盒[" + _0x332a16?.["taskDetail"]?.["taskName"] + "]领取奖励失败[" + _0xfb4d5d + "]: " + _0x1d0801); + } + } catch (_0x349703) { + console.log(_0x349703); + } + } + async ["moonbox_queryActiveTaskList"](_0x487835 = {}) { + try { + let _0xa1ffa6 = { + "activeIndex": _0x55391c, + ...this.get_woread_param() + }, + _0xa93936 = this.encode_woread(_0xa1ffa6); + const _0x158bfd = { + "sign": _0xa93936 + }, + _0x5b1780 = { + "fn": "moonbox_queryActiveTaskList", + "method": "post", + "url": "https://10010.woread.com.cn/ng_woread_service/rest/activity423/queryActiveTaskList", + "json": _0x158bfd + }; + let { + result: _0x236a25 + } = await this.woread_api(_0x5b1780), + _0x17d1d3 = _0x4c672b.get(_0x236a25, "code", -1); + if (_0x17d1d3 == "0000") { + let _0x5b09f0 = _0x236a25?.["data"]?.["sort"](function (_0x1d06a9, _0x199404) { + let _0x31e758 = parseInt(_0x199404.taskDetail.taskValue), + _0x3be27c = parseInt(_0x1d06a9.taskDetail.taskValue); + return _0x31e758 - _0x3be27c; + }), + _0x5b013c = _0x5b09f0.filter(_0x101822 => _0x101822.maxNum - _0x101822.receiveNum > 0 && _0x101822.taskDetail.materialGroup.groupName.includes("红包")); + _0x5b013c?.["length"] ? await this.moonbox_receiveActiveTask(_0x5b013c) : this.log("没有可领取的阅光宝盒红包任务了"); + } else { + let _0x2fa24c = _0x236a25?.["message"] || ""; + this.log("阅光宝盒查询可领取任务失败[" + _0x17d1d3 + "]: " + _0x2fa24c); + } + } catch (_0x5a0c54) { + console.log(_0x5a0c54); + } + } + async ["moonbox_receiveActiveTask"](_0x51510f, _0x1466a8 = {}) { + try { + if (!_0x51510f.length) { + return; + } + let _0x46dd68 = _0x51510f.shift(), + _0x213cc8 = _0x46dd68?.["taskDetail"]?.["taskName"] || "", + _0x2744f9 = { + "activeId": _0x55391c, + "taskId": _0x46dd68.secondTaskId, + ...this.get_woread_param() + }, + _0x6ce9dd = this.encode_woread(_0x2744f9); + const _0x225719 = { + "sign": _0x6ce9dd + }, + _0xe8ad = { + "fn": "moonbox_queryActiveTaskList", + "method": "post", + "url": "https://10010.woread.com.cn/ng_woread_service/rest/activity423/receiveActiveTask", + "json": _0x225719 + }; + let { + result: _0x288055 + } = await this.woread_api(_0xe8ad), + _0x4c2ecf = _0x4c672b.get(_0x288055, "code", -1); + if (_0x4c2ecf == "0000") this.moonbox_task_record[_0x213cc8] = true, this.log("领取阅光宝盒任务[" + _0x213cc8 + "]成功");else { + let _0x52da57 = _0x288055?.["message"] || ""; + this.log("领取阅光宝盒任务[" + _0x213cc8 + "]失败[" + _0x4c2ecf + "]: " + _0x52da57); + (_0x52da57?.["includes"]("今天无法完成") || _0x52da57?.["includes"]("领光了")) && _0x51510f.length > 0 && (await _0x4c672b.wait(500), await this.moonbox_receiveActiveTask(_0x51510f, _0x1466a8)); + } + } catch (_0x53f18f) { + console.log(_0x53f18f); + } + } + async ["moonbox_queryReadStatus"](_0x2d6705 = {}) { + try { + let _0x5d04cb = { + "activeIndex": _0x55391c, + ...this.get_woread_param() + }, + _0x5bea8a = this.encode_woread(_0x5d04cb); + const _0x12a3d3 = { + "sign": _0x5bea8a + }, + _0xc658c6 = { + "fn": "moonbox_queryReadStatus", + "method": "post", + "url": "https://10010.woread.com.cn/ng_woread_service/rest/activity423/queryReadStatus", + "json": _0x12a3d3 + }; + let { + result: _0x54f4af + } = await this.woread_api(_0xc658c6), + _0x435b72 = _0x4c672b.get(_0x54f4af, "code", -1); + if (_0x435b72 == "0000") switch (_0x54f4af?.["data"]) { + case "2": + { + this.log("阅光宝盒去阅读两分钟抽奖"); + this.switch_woread_token(this.woread_m_accesstoken); + const _0x37ee4b = { + "readTime": 2 + }; + await this.woread_m_addReadTime(_0x37ee4b); + this.switch_woread_token(this.woread_accesstoken); + await this.moonbox_drawReadActivePrize(); + break; + } + case "3": + { + this.log("阅光宝盒今天已抽奖"); + break; + } + case "4": + { + this.log("阅光宝盒今天可以抽奖"); + await this.moonbox_drawReadActivePrize(); + break; + } + default: + { + this.log("阅光宝盒抽奖状态[" + _0x54f4af?.["data"] + "]"); + break; + } + } else { + let _0x4ea02c = _0x54f4af?.["message"] || ""; + this.log("查询阅光宝盒抽奖次数失败[" + _0x435b72 + "]: " + _0x4ea02c); + } + } catch (_0x4ce02e) { + console.log(_0x4ce02e); + } + } + async ["moonbox_drawReadActivePrize"](_0x1c869f = {}) { + try { + let _0x1ab8bc = { + "activeIndex": _0x55391c, + ...this.get_woread_param() + }, + _0x274b8e = this.encode_woread(_0x1ab8bc); + const _0x245ea3 = { + "sign": _0x274b8e + }, + _0x453b55 = { + "fn": "moonbox_drawReadActivePrize", + "method": "post", + "url": "https://10010.woread.com.cn/ng_woread_service/rest/activity423/drawReadActivePrize", + "json": _0x245ea3 + }; + let { + result: _0x31e7db + } = await this.woread_api(_0x453b55), + _0x21d62f = _0x4c672b.get(_0x31e7db, "code", -1); + if (_0x21d62f == "0000") { + const _0x4b070a = { + "notify": true + }; + this.log("阅光宝盒抽奖: " + (_0x31e7db?.["data"]?.["prizedesc"] || JSON.stringify(_0x31e7db)), _0x4b070a); + } else { + let _0x1c9c65 = _0x31e7db?.["message"] || ""; + this.log("阅光宝盒抽奖失败[" + _0x21d62f + "]: " + _0x1c9c65); + } + } catch (_0x2ac166) { + console.log(_0x2ac166); + } + } + async ["moonbox_m_queryActiveInfo"](_0x88603f = {}) { + try { + let _0x468225 = this.get_woread_m_param(), + _0x5ed94b = this.encode_woread(_0x468225, _0x20c0ff); + const _0x5d1e64 = { + "sign": _0x5ed94b + }, + _0x43cf2d = { + "fn": "moonbox_m_queryActiveInfo", + "method": "post", + "url": "https://m.woread.com.cn/api/union/activity423/queryActiveInfo", + "json": _0x5d1e64 + }; + let { + result: _0xb3996f + } = await this.woread_api(_0x43cf2d), + _0x1dcd88 = _0x4c672b.get(_0xb3996f, "code", -1); + if (_0x1dcd88 == "0000") { + let { + activeId: _0x22a3a9, + activeName: _0x3ed856 + } = _0xb3996f?.["data"]; + _0x55391c = _0x22a3a9; + } else { + let _0x595799 = _0xb3996f?.["message"] || ""; + this.log("阅光宝盒查询活动失败[" + _0x1dcd88 + "]: " + _0x595799); + } + } catch (_0x15c402) { + console.log(_0x15c402); + } + } + async ["moonbox_m_queryCurTaskStatus"](_0x15cfb4 = {}) { + try { + let _0xb46d4e = { + "activeIndex": _0x55391c, + ...this.get_woread_m_param() + }, + _0x58baa6 = this.encode_woread(_0xb46d4e, _0x20c0ff); + const _0x4f6951 = { + "sign": _0x58baa6 + }, + _0x40c7b0 = { + "fn": "moonbox_m_queryCurTaskStatus", + "method": "post", + "url": "https://m.woread.com.cn/api/union/activity423/queryCurTaskStatus", + "json": _0x4f6951 + }; + let { + result: _0x1f2e16 + } = await this.woread_api(_0x40c7b0), + _0x36fb67 = _0x4c672b.get(_0x1f2e16, "code", -1); + if (_0x36fb67 == "0000") for (let _0x2ec413 of _0x1f2e16?.["data"] || []) { + let { + taskName: _0x507a83, + currentValue: _0x38c2f5, + taskValue: _0x4c5eb9 + } = _0x2ec413?.["taskDetail"]; + switch (_0x2ec413.taskStatus) { + case 0: + { + this.moonbox_task_record[_0x507a83] = true; + this.log("阅光宝盒[" + _0x507a83 + "]进度: " + parseInt(_0x38c2f5) + "/" + _0x4c5eb9 + "分钟"); + break; + } + case 2: + { + await this.moonbox_m_completeActiveTask(_0x2ec413); + } + case 1: + { + this.moonbox_task_record[_0x507a83] = false; + if (!this.moonbox_notified.includes(_0x507a83)) { + this.moonbox_notified.push(_0x507a83); + const _0x586ba5 = { + "notify": true + }; + this.log("阅光宝盒任务[" + _0x507a83 + "]已完成", _0x586ba5); + } + break; + } + } + } else { + let _0x47c7c5 = _0x1f2e16?.["message"] || ""; + _0x47c7c5?.["includes"]("未领取") && !_0x15cfb4.activate_retry && (await this.moonbox_queryActiveTaskList()) ? (_0x15cfb4.activate_retry = true, await this.moonbox_m_queryCurTaskStatus(_0x15cfb4)) : this.log("阅光宝盒查询任务状态失败[" + _0x36fb67 + "]: " + _0x47c7c5); + } + } catch (_0x56aaaa) { + console.log(_0x56aaaa); + } + } + async ["moonbox_m_completeActiveTask"](_0x37c23c, _0x575db9 = {}) { + try { + let _0x5ade66 = { + "taskId": _0x37c23c.id, + ...this.get_woread_m_param() + }, + _0x1e96d8 = this.encode_woread(_0x5ade66, _0x20c0ff); + const _0x107650 = { + "sign": _0x1e96d8 + }, + _0x25078e = { + "fn": "moonbox_m_completeActiveTask", + "method": "post", + "url": "https://m.woread.com.cn/api/union/activity423/completeActiveTask", + "json": _0x107650 + }; + let { + result: _0x327e91 + } = await this.woread_api(_0x25078e), + _0x3d5d16 = _0x4c672b.get(_0x327e91, "code", -1); + if (_0x3d5d16 == "0000") { + const _0x818573 = { + "notify": true + }; + this.log("阅光宝盒[" + _0x327e91?.["data"]?.["taskDetail"]?.["taskName"] + "]领取奖励成功: " + _0x327e91?.["data"]?.["exchangeResult"]?.["materialGroupInfo"]?.["groupName"], _0x818573); + } else { + let _0x5e576e = _0x327e91?.["message"] || ""; + this.log("阅光宝盒[" + _0x37c23c?.["taskDetail"]?.["taskName"] + "]领取奖励失败[" + _0x3d5d16 + "]: " + _0x5e576e); + } + } catch (_0x520e88) { + console.log(_0x520e88); + } + } + async ["moonbox_m_queryActiveTaskList"](_0x10585c = {}) { + try { + let _0x2c9561 = { + "activeIndex": _0x55391c, + ...this.get_woread_m_param() + }, + _0x1ab6b4 = this.encode_woread(_0x2c9561, _0x20c0ff); + const _0x1d694f = { + "sign": _0x1ab6b4 + }, + _0x387caa = { + "fn": "moonbox_m_queryActiveTaskList", + "method": "post", + "url": "https://m.woread.com.cn/api/union/activity423/queryActiveTaskList", + "json": _0x1d694f + }; + let { + result: _0x1234c8 + } = await this.woread_api(_0x387caa), + _0x5f1ebd = _0x4c672b.get(_0x1234c8, "code", -1); + if (_0x5f1ebd == "0000") { + let _0x25946e = _0x1234c8?.["data"]?.["sort"](function (_0x38d38d, _0x4ca1f9) { + let _0x596a81 = parseInt(_0x4ca1f9.taskDetail.taskValue), + _0x366bfe = parseInt(_0x38d38d.taskDetail.taskValue); + return _0x596a81 - _0x366bfe; + }), + _0x2b31fc = _0x25946e.filter(_0x4b3744 => _0x4b3744.maxNum - _0x4b3744.receiveNum > 0 && _0x4b3744.taskDetail.materialGroup.groupName.includes("红包")); + _0x2b31fc?.["length"] ? await this.moonbox_m_receiveActiveTask(_0x2b31fc) : this.log("没有可领取的阅光宝盒红包任务了"); + } else { + let _0x60e4e2 = _0x1234c8?.["message"] || ""; + this.log("阅光宝盒查询可领取任务失败[" + _0x5f1ebd + "]: " + _0x60e4e2); + } + } catch (_0x5a2036) { + console.log(_0x5a2036); + } + } + async ["moonbox_m_receiveActiveTask"](_0x4442d3, _0x5afb2b = {}) { + try { + if (!_0x4442d3.length) return; + let _0x5ebf4b = _0x4442d3.shift(), + _0x4c413f = _0x5ebf4b?.["taskDetail"]?.["taskName"] || "", + _0x3c9ca9 = { + "activeId": _0x55391c, + "taskId": _0x5ebf4b.secondTaskId, + ...this.get_woread_m_param() + }, + _0x23aeae = this.encode_woread(_0x3c9ca9, _0x20c0ff); + const _0x5c6541 = { + "sign": _0x23aeae + }, + _0x982d = { + "fn": "moonbox_m_queryActiveTaskList", + "method": "post", + "url": "https://m.woread.com.cn/api/union/activity423/receiveActiveTask", + "json": _0x5c6541 + }; + let { + result: _0x18d6be + } = await this.woread_api(_0x982d), + _0x13bf25 = _0x4c672b.get(_0x18d6be, "code", -1); + if (_0x13bf25 == "0000") this.moonbox_task_record[_0x4c413f] = true, this.log("领取阅光宝盒任务[" + _0x4c413f + "]成功");else { + let _0x2a1230 = _0x18d6be?.["message"] || ""; + this.log("领取阅光宝盒任务[" + _0x4c413f + "]失败[" + _0x13bf25 + "]: " + _0x2a1230); + (_0x2a1230?.["includes"]("今天无法完成") || _0x2a1230?.["includes"]("领光了")) && _0x4442d3.length > 0 && (await _0x4c672b.wait(500), await this.moonbox_m_receiveActiveTask(_0x4442d3, _0x5afb2b)); + } + } catch (_0x2b00a3) { + console.log(_0x2b00a3); + } + } + async ["moonbox_m_queryReadStatus"](_0x3e2851 = {}) { + try { + let _0x4d84d2 = { + "activeIndex": _0x55391c, + ...this.get_woread_m_param() + }, + _0x1d10ff = this.encode_woread(_0x4d84d2, _0x20c0ff); + const _0x90f3e4 = { + "sign": _0x1d10ff + }, + _0x24593d = { + "fn": "moonbox_m_queryReadStatus", + "method": "post", + "url": "https://m.woread.com.cn/api/union/activity423/queryReadStatus", + "json": _0x90f3e4 + }; + let { + result: _0x4e11bd + } = await this.woread_api(_0x24593d), + _0x34e5c8 = _0x4c672b.get(_0x4e11bd, "code", -1); + if (_0x34e5c8 == "0000") { + switch (_0x4e11bd?.["message"]) { + case "2": + { + this.log("阅光宝盒去阅读两分钟抽奖"); + const _0x185c9a = { + "readTime": 2 + }; + await this.woread_m_addReadTime(_0x185c9a); + await this.moonbox_m_drawReadActivePrize(); + break; + } + case "3": + { + this.log("阅光宝盒今天已抽奖"); + break; + } + case "4": + { + this.log("阅光宝盒今天可以抽奖"); + await this.moonbox_m_drawReadActivePrize(); + break; + } + default: + { + this.log("阅光宝盒抽奖状态[" + _0x4e11bd?.["data"] + "]"); + break; + } + } + } else { + let _0x34d065 = _0x4e11bd?.["message"] || ""; + this.log("查询阅光宝盒抽奖次数失败[" + _0x34e5c8 + "]: " + _0x34d065); + } + } catch (_0x5c6a17) { + console.log(_0x5c6a17); + } + } + async ["moonbox_m_drawReadActivePrize"](_0x3fa14f = {}) { + try { + let _0x5c3a4e = { + "activeIndex": _0x55391c, + ...this.get_woread_m_param() + }, + _0x3b58ea = this.encode_woread(_0x5c3a4e, _0x20c0ff); + const _0x182e43 = { + "sign": _0x3b58ea + }, + _0x131ed1 = { + "fn": "moonbox_m_drawReadActivePrize", + "method": "post", + "url": "https://m.woread.com.cn/api/union/activity423/drawReadActivePrize", + "json": _0x182e43 + }; + let { + result: _0x184c47 + } = await this.woread_api(_0x131ed1), + _0x16e30b = _0x4c672b.get(_0x184c47, "code", -1); + if (_0x16e30b == "0000") { + const _0x5d8f82 = { + "notify": true + }; + this.log("阅光宝盒抽奖: " + (_0x184c47?.["data"]?.["prizedesc"] || JSON.stringify(_0x184c47)), _0x5d8f82); + } else { + let _0x3f0564 = _0x184c47?.["message"] || ""; + this.log("阅光宝盒抽奖失败[" + _0x16e30b + "]: " + _0x3f0564); + } + } catch (_0x370d8f) { + console.log(_0x370d8f); + } + } + async ["ltyp_login"](_0x5ad245, _0x26af19 = {}) { + try { + const _0x574b9e = { + "client-Id": _0x392042, + "accessToken": "" + }, + _0xbcf042 = { + "clientId": _0x392042, + "ticket": _0x5ad245 + }; + let _0x4fc788 = { + "fn": "ltyp_login", + "method": "post", + "url": "https://panservice.mail.wo.cn/wohome/dispatcher", + "headers": _0x574b9e, + "json": { + "header": this.get_ltyp_sign_header("HandheldHallAutoLogin"), + "body": _0xbcf042 + } + }, + { + result: _0x208a5f + } = await this.request(_0x4fc788), + _0x43067b = _0x4c672b.get(_0x208a5f, "STATUS", -1); + if (_0x43067b == 200) { + this.ltyp_token = _0x208a5f?.["RSP"]?.["DATA"]?.["token"]; + for (let _0x130f2b of _0x333e1b) { + await this.ltyp_incentiveTimes(_0x130f2b); + await this.ltyp_lottery(_0x130f2b); + } + } else { + let _0x56e1f7 = _0x208a5f?.["msg"] || ""; + this.log("联通云盘登录失败[" + _0x43067b + "]: " + _0x56e1f7); + } + } catch (_0x41c94f) { + console.log(_0x41c94f); + } + } + async ["ltyp_incentiveTimes"](_0x15bcf9, _0x31500f = {}) { + try { + const _0x59561e = { + "client-Id": _0x392042, + "Access-Token": this.ltyp_token + }, + _0x4934e4 = { + "fn": "ltyp_incentiveTimes", + "method": "get", + "url": "https://panservice.mail.wo.cn/activity/v1/incentiveTimes", + "headers": _0x59561e, + "searchParams": {} + }; + _0x4934e4.searchParams.bizKey = "incentiveTimesPipeline"; + _0x4934e4.searchParams.activityId = _0x15bcf9; + let { + result: _0x1401d4 + } = await this.request(_0x4934e4), + _0x427425 = _0x4c672b.get(_0x1401d4?.["meta"], "code", -1); + if (_0x427425 == 0) { + let { + isIncentiveTask = 0, + taskType = 0, + incentiveTimeTotal = 0, + incentiveTimeDone = 0 + } = _0x1401d4?.["result"]; + if (isIncentiveTask) for (let _0x31fff2 = incentiveTimeDone; _0x31fff2 < incentiveTimeTotal; _0x31fff2++) { + await this.ltyp_incentiveTask(_0x15bcf9); + } + } else { + let _0x2b1541 = _0x1401d4?.["meta"]?.["message"] || ""; + this.log("联通云盘查询任务失败[" + _0x427425 + "]: " + _0x2b1541); + } + } catch (_0x2de453) { + console.log(_0x2de453); + } + } + async ["ltyp_incentiveTask"](_0x15e0f2, _0x1e9208 = {}) { + try { + const _0x1ab568 = { + "client-Id": _0x392042, + "Access-Token": this.ltyp_token + }, + _0x5579db = { + "activityId": _0x15e0f2 + }, + _0x59e7bd = { + "bizKey": "incentiveTaskPipeline", + "bizObject": _0x5579db + }, + _0x147aa1 = { + "fn": "ltyp_incentiveTask", + "method": "post", + "url": "https://panservice.mail.wo.cn/activity/v1/incentiveTask", + "headers": _0x1ab568, + "json": _0x59e7bd + }; + let { + result: _0x17eb34 + } = await this.request(_0x147aa1), + _0x153815 = _0x4c672b.get(_0x17eb34?.["meta"], "code", -1); + if (_0x153815 == 0) { + let { + incentiveStatus = 0, + incentiveMessage = "" + } = _0x17eb34?.["result"]; + incentiveStatus == 1 ? this.log("联通云盘完成任务成功") : this.log("联通云盘完成任务失败[" + incentiveStatus + "]: " + incentiveMessage); + } else { + let _0x249078 = _0x17eb34?.["meta"]?.["message"] || ""; + this.log("联通云盘完成任务错误[" + _0x153815 + "]: " + _0x249078); + } + } catch (_0x1b6205) { + console.log(_0x1b6205); + } + } + async ["ltyp_lottery_times"](_0xac6461, _0x3aeb7 = {}) { + try { + const _0x5bb2d1 = { + "client-Id": _0x392042, + "token": this.ltyp_token + }, + _0x598657 = { + "activityId": _0xac6461 + }, + _0x170d3c = { + "fn": "ltyp_lottery_times", + "method": "get", + "url": "https://panservice.mail.wo.cn/activity/v1/times", + "headers": _0x5bb2d1, + "searchParams": _0x598657 + }; + let { + result: _0x1bf13f + } = await this.request(_0x170d3c), + _0x4925aa = _0x4c672b.get(_0x1bf13f, "RSP_CODE", -1); + if (_0x4925aa == 0) { + let { + times = 0 + } = _0x1bf13f?.["DATA"]; + this.log("联通云盘可以抽奖" + times + "次"); + while (times-- > 0) { + await _0x4c672b.wait(1000); + await this.ltyp_lottery(_0xac6461); + } + } else { + let _0x3a1bbf = _0x1bf13f?.["RSP_DESC"] || ""; + this.log("联通云盘查询抽奖次数失败[" + _0x4925aa + "]: " + _0x3a1bbf); + } + } catch (_0x483976) { + console.log(_0x483976); + } + } + async ["ltyp_lottery"](_0x49578a, _0x5c7221 = {}) { + try { + const _0xf9f421 = { + "client-Id": _0x392042, + "Access-Token": this.ltyp_token + }, + _0x58dcd6 = { + "activityId": _0x49578a, + "type": 3 + }, + _0x317dec = { + "lottery": _0x58dcd6 + }, + _0x4d6abb = { + "bizKey": "newLottery", + "bizObject": _0x317dec + }, + _0x17870b = { + "fn": "ltyp_lottery", + "method": "post", + "url": "https://panservice.mail.wo.cn/wohome/v1/lottery", + "headers": _0xf9f421, + "json": _0x4d6abb + }; + let { + result: _0x374680 + } = await this.request(_0x17870b), + _0x2e770a = _0x4c672b.get(_0x374680?.["meta"], "code", -1); + if (_0x2e770a == 0) { + let { + prizeName = "" + } = _0x374680?.["result"]; + if (prizeName) { + const _0x3aaa11 = { + "notify": true + }; + this.log("联通云盘抽奖: " + prizeName, _0x3aaa11); + await this.ltyp_lottery(_0x49578a, _0x5c7221); + } + } else { + let _0x56c300 = _0x374680?.["meta"]?.["message"] || ""; + this.log("联通云盘抽奖错误[" + _0x2e770a + "]: " + _0x56c300); + } + } catch (_0x3b8a7b) { + console.log(_0x3b8a7b); + } + } + async ["act_517_userAccount"](_0x3aad69 = {}) { + try { + const _0x31aa98 = { + "fn": "act_517_userAccount", + "method": "get", + "url": "https://activity.10010.com/2024517charges/lottery/userAccount" + }; + { + let { + result: _0x1db02d, + statusCode: _0x1a9eb1 + } = await this.request(_0x4c672b.copy(_0x31aa98)), + _0x5138fd = _0x4c672b.get(_0x1db02d, "code", _0x1a9eb1); + if (_0x5138fd == "0000") await this.act_517_taskList();else { + let _0x385d77 = _0x1db02d?.["message"] || _0x1db02d?.["msg"] || ""; + this.log("517活动进入主页失败[" + _0x5138fd + "]: " + _0x385d77); + return; + } + } + { + let { + result: _0x4bda4f, + statusCode: _0x509f23 + } = await this.request(_0x4c672b.copy(_0x31aa98)), + _0x18fd7c = _0x4c672b.get(_0x4bda4f, "code", _0x509f23); + if (_0x18fd7c == "0000") { + let { + chances: _0x5eabe5 + } = _0x4bda4f?.["data"]; + this.log("517活动可以抽奖" + _0x5eabe5 + "次"); + let _0x2ebcd9 = false; + while (_0x5eabe5-- > 0) { + _0x2ebcd9 && (await _0x4c672b.wait(3000)); + _0x2ebcd9 = true; + await this.act_517_lottery(); + } + } else { + let _0x18d7e1 = _0x4bda4f?.["message"] || _0x4bda4f?.["msg"] || ""; + this.log("517活动查询抽奖次数失败[" + _0x18fd7c + "]: " + _0x18d7e1); + } + } + { + let { + result: _0x281ec4, + statusCode: _0x1d3957 + } = await this.request(_0x4c672b.copy(_0x31aa98)), + _0x394e75 = _0x4c672b.get(_0x281ec4, "code", _0x1d3957); + if (_0x394e75 == "0000") { + let { + amount: _0xd6e9f7, + targetAmount: _0x5e8151 + } = _0x281ec4?.["data"]; + const _0x42794d = { + "notify": true + }; + this.log("517活动现金进度: " + _0xd6e9f7 + "/" + _0x5e8151, _0x42794d); + } else { + let _0x4ca07c = _0x281ec4?.["message"] || _0x281ec4?.["msg"] || ""; + this.log("517活动查询进度失败[" + _0x394e75 + "]: " + _0x4ca07c); + } + } + } catch (_0x1d9fbe) { + console.log(_0x1d9fbe); + } + } + async ["act_517_bind"](_0x2574fb, _0x2980fa = {}) { + try { + const _0x3f2205 = { + "fn": "act_517_bind", + "method": "post", + "url": "https://activity.10010.com/2024517charges/openWindows/bind", + "json": {}, + "valid_code": [401] + }; + _0x3f2205.json.shareCode = _0x2574fb; + _0x3f2205.json.channel = "countersign"; + let { + result: _0x193746 + } = await this.request(_0x3f2205); + } catch (_0x55d916) { + console.log(_0x55d916); + } + } + async ["act_517_lottery"](_0x306f15 = {}) { + try { + const _0x20e92d = { + "fn": "act_517_lottery", + "method": "get", + "url": "https://activity.10010.com/2024517charges/lottery/lottery" + }; + let { + result: _0x4eea5e, + statusCode: _0x50edab + } = await this.request(_0x20e92d), + _0xf3754e = _0x4c672b.get(_0x4eea5e, "code", _0x50edab); + if (_0xf3754e == "0000") _0x4eea5e?.["data"]?.["uuid"] ? (await _0x4c672b.wait(2000), await this.act_517_winningRecord(_0x4eea5e.data.uuid)) : this.log("517活动抽奖失败, 没有返回uuid");else { + let _0x1c46e6 = _0x4eea5e?.["message"] || _0x4eea5e?.["msg"] || ""; + this.log("517活动抽奖失败[" + _0xf3754e + "]: " + _0x1c46e6); + } + } catch (_0x22062a) { + console.log(_0x22062a); + } + } + async ["act_517_winningRecord"](_0x2467e4, _0x59ddea = {}) { + try { + const _0x9b87f9 = { + "requestId": _0x2467e4 + }, + _0x4b351d = { + "fn": "act_517_winningRecord", + "method": "get", + "url": "https://activity.10010.com/2024517charges/lottery/winningRecord", + "searchParams": _0x9b87f9 + }; + let { + result: _0x27477c, + statusCode: _0x495d26 + } = await this.request(_0x4b351d), + _0x517c04 = _0x4c672b.get(_0x27477c, "code", _0x495d26); + if (_0x517c04 == "0000") { + if (_0x27477c?.["data"]?.["isWin"] === "1") { + let { + prizeAmount: _0x45f672, + prizeList: _0x38ef7a, + afterAmount: _0x5db9bc, + targetAmount: _0x549ab2, + showAmount = "0" + } = _0x27477c?.["data"], + _0x18da4b = (_0x38ef7a || []).filter(_0xb2a96d => _0xb2a96d.prizeName).map(_0x413ae7 => _0x413ae7.prizeName).join(", ") || ""; + const _0x37b128 = { + "notify": true + }; + _0x18da4b && this.log("517活动抽奖: " + _0x18da4b, _0x37b128); + showAmount === "1" && this.log("517活动抽奖现金进度: +" + _0x45f672 + " (" + _0x5db9bc + "/" + _0x549ab2 + ")"); + } else { + this.log("517活动抽奖: 空气"); + } + } else { + let _0xdfcff5 = _0x27477c?.["message"] || _0x27477c?.["msg"] || ""; + this.log("查询517活动抽奖结果失败[" + _0x517c04 + "]: " + _0xdfcff5); + } + } catch (_0x27e94c) { + console.log(_0x27e94c); + } + } + async ["act_517_taskList"](_0x1234ea = {}) { + try { + const _0x306772 = { + "fn": "act_517_taskList", + "method": "get", + "url": "https://activity.10010.com/2024517charges/dotask/taskList" + }; + let { + result: _0x974df0, + statusCode: _0x528a79 + } = await this.request(_0x306772), + _0x123dfc = _0x4c672b.get(_0x974df0, "code", _0x528a79); + if (_0x123dfc == "0000") { + let _0x45f706 = _0x974df0?.["data"]?.["taskList"] || []; + for (let _0x517ced of _0x45f706) { + let { + completeNum = 0, + maxNum: _0x249df3, + isComplete: _0x151168, + taskType: _0x2a5c39 + } = _0x517ced; + if (_0x151168) continue; + if (_0x2a5c39 == "5") continue; + completeNum = parseInt(completeNum); + _0x249df3 = parseInt(_0x249df3); + for (let _0x1dd6bc = completeNum; _0x1dd6bc < _0x249df3; _0x1dd6bc++) { + await this.act_517_completeTask(_0x517ced); + } + } + } else { + let _0x4a14ad = _0x974df0?.["message"] || _0x974df0?.["msg"] || ""; + this.log("查询517活动抽奖结果失败[" + _0x123dfc + "]: " + _0x4a14ad); + } + } catch (_0x603e83) { + console.log(_0x603e83); + } + } + async ["act_517_completeTask"](_0x22daee, _0x597e4c = {}) { + try { + let _0x149f99 = _0x22daee.title; + const _0x3f4cfa = { + "taskId": _0x22daee.taskId + }, + _0x4880e1 = { + "fn": "act_517_completeTask", + "method": "get", + "url": "https://activity.10010.com/2024517charges/dotask/completeTask", + "searchParams": _0x3f4cfa + }; + let { + result: _0xfa69e, + statusCode: _0x12a0bb + } = await this.request(_0x4880e1), + _0x6509b7 = _0x4c672b.get(_0xfa69e, "code", _0x12a0bb); + if (_0x6509b7 == "0000") { + if (_0xfa69e?.["data"]) { + let { + num: _0x520c20, + title: _0x66f01e + } = _0xfa69e.data; + this.log("完成任务[" + _0x66f01e + "]成功: " + _0x520c20 + "次抽奖机会"); + } else this.log("完成任务[" + _0x149f99 + "]失败没有获得抽奖机会"); + } else { + let _0x2d4542 = _0xfa69e?.["message"] || _0xfa69e?.["msg"] || ""; + this.log("完成任务[" + _0x149f99 + "]失败[" + _0x6509b7 + "]: " + _0x2d4542); + } + } catch (_0x39666e) { + console.log(_0x39666e); + } + } + ["get_wocare_body"](_0x3fb75a, _0x137fd6 = {}) { + const _0x43d306 = _0x4c672b.time("yyyyMMddhhmmssS"), + _0x47eb6e = Buffer.from(JSON.stringify(_0x137fd6)).toString("base64"); + let _0xa6f8a3 = { + "version": _0x3db78e, + "apiCode": _0x3fb75a, + "channelId": _0x12fe67, + "transactionId": _0x43d306 + _0x4c672b.randomString(6, _0x4e5ad9), + "timeStamp": _0x43d306, + "messageContent": _0x47eb6e + }, + _0x26801b = []; + return Object.keys(_0xa6f8a3).sort().forEach(_0x104dcc => { + _0x26801b.push(_0x104dcc + "=" + _0xa6f8a3[_0x104dcc]); + }), _0x26801b.push("sign=" + _0x5f2a5c), _0xa6f8a3.sign = _0x368aa5.MD5(_0x26801b.join("&")).toString(), _0xa6f8a3; + } + async ["wocare_api"](_0x5b5d77, _0x5d57d6 = {}) { + let _0x307a33 = this.get_wocare_body(_0x5b5d77, _0x5d57d6); + const _0x2cca0d = { + "fn": "wocare_" + _0x5b5d77, + "method": "post", + "url": "https://wocare.unisk.cn/api/v1/" + _0x5b5d77, + "form": _0x307a33 + }; + let _0x38d73b = await this.request(_0x2cca0d); + if (_0x38d73b?.["result"]?.["messageContent"]) try { + let _0xd9027c = JSON.parse(Buffer.from(_0x38d73b.result.messageContent, "base64").toString()); + _0x38d73b.result.data = _0xd9027c?.["data"] || _0xd9027c; + _0xd9027c?.["resultMsg"] && (_0x38d73b.result.resultMsg = _0xd9027c.resultMsg); + } catch (_0x390c56) { + this.log("解析联通祝福返回失败:"); + console.log(_0x390c56); + } + return _0x38d73b; + } + async ["wocare_getToken"](_0x6226b3, _0x2e1d62 = {}) { + let _0xb2dc6 = false; + try { + let _0x2138a7 = { + "fn": "wocare_getToken", + "method": "get", + "url": "https://wocare.unisk.cn/mbh/getToken", + "searchParams": { + "channelType": _0x2f3d25, + "type": "02", + "ticket": _0x6226b3, + "version": _0x469423, + "timestamp": _0x4c672b.time("yyyyMMddhhmmssS"), + "desmobile": this.mobile, + "num": 0, + "postage": _0x4c672b.randomString(32), + "homePage": "home", + "duanlianjieabc": "qAz2m", + "userNumber": this.mobile + } + }, + { + headers: _0x46725c, + statusCode: _0x541301 + } = await this.request(_0x2138a7); + if (_0x541301 == 302) { + if (_0x46725c?.["location"]) { + let _0x23ffb9 = new URL(_0x46725c.location), + _0x405264 = _0x23ffb9.searchParams.get("sid"); + _0x405264 ? (this.wocare_sid = _0x405264, _0xb2dc6 = await this.wocare_loginmbh()) : this.log("联通祝福没有获取到sid"); + } else this.log("联通祝福没有获取到location"); + } else this.log("联通祝福获取sid失败[" + _0x541301 + "]"); + } catch (_0x26b08c) { + console.log(_0x26b08c); + } finally { + return _0xb2dc6; + } + } + async ["wocare_loginmbh"](_0x1e8193 = {}) { + let _0xbafeba = false; + try { + let _0x4c8416 = "loginmbh"; + const _0x24ad55 = { + "sid": this.wocare_sid, + "channelType": _0x2f3d25, + "apiCode": _0x4c8416 + }; + let { + result: _0x350f89, + statusCode: _0x8d440 + } = await this.wocare_api(_0x4c8416, _0x24ad55), + _0xa1b960 = _0x4c672b.get(_0x350f89, "resultCode", _0x8d440); + if (_0xa1b960 == "0000") { + _0xbafeba = true; + let { + token: _0x549484 + } = _0x350f89?.["data"]; + this.wocare_token = _0x549484; + } else { + let _0x4dd098 = _0x350f89?.["resultMsg"] || _0x350f89?.["resultDesc"] || ""; + this.log("联通祝福登录失败[" + _0xa1b960 + "]: " + _0x4dd098); + } + } catch (_0x38eb25) { + console.log(_0x38eb25); + } finally { + return _0xbafeba; + } + } + async ["wocare_getSpecificityBanner"](_0x5e0825 = {}) { + try { + let _0x392dc4 = "getSpecificityBanner"; + const _0x515bf3 = { + "token": this.wocare_token, + "apiCode": _0x392dc4 + }; + let { + result: _0x1dc834, + statusCode: _0x1ec2d9 + } = await this.wocare_api(_0x392dc4, _0x515bf3), + _0x147c0b = _0x4c672b.get(_0x1dc834, "resultCode", _0x1ec2d9); + if (_0x147c0b == "0000") { + let _0x78ea73 = _0x1dc834?.["data"] || []; + for (let _0x16cbba of _0x78ea73.filter(_0x3f8d72 => _0x3f8d72.activityStatus === "0" && _0x3f8d72.isDeleted === "0")) { + await this.wocare_getDrawTask(_0x16cbba); + await this.wocare_loadInit(_0x16cbba); + } + } else { + let _0x2af4f0 = _0x1dc834?.["resultMsg"] || _0x1dc834?.["resultDesc"] || ""; + this.log("联通祝福进入活动失败[" + _0x147c0b + "]: " + _0x2af4f0); + } + } catch (_0x72feed) { + console.log(_0x72feed); + } + } + async ["wocare_loadInit"](_0x539d60, _0x1c40c8 = {}) { + try { + let _0x40f18e = "loadInit"; + const _0x3d0369 = { + "token": this.wocare_token, + "channelType": _0x2f3d25, + "type": _0x539d60.id, + "apiCode": _0x40f18e + }; + let { + result: _0x14390c, + statusCode: _0x27cfdb + } = await this.wocare_api(_0x40f18e, _0x3d0369), + _0x4be5d6 = _0x4c672b.get(_0x14390c, "resultCode", _0x27cfdb); + if (_0x4be5d6 == "0000") { + let _0x26217e = _0x14390c?.["data"], + _0xab540b = _0x26217e?.["zActiveModuleGroupId"], + _0x26af4d = 0; + switch (_0x539d60.id) { + case 2: + { + let _0x19fa08 = _0x26217e?.["data"]?.["isPartake"] || 0; + !_0x19fa08 && (_0x26af4d = 1); + break; + } + case 3: + { + _0x26af4d = parseInt(_0x26217e?.["raffleCountValue"] || 0); + break; + } + case 4: + { + _0x26af4d = parseInt(_0x26217e?.["mhRaffleCountValue"] || 0); + break; + } + } + while (_0x26af4d-- > 0) { + await _0x4c672b.wait(5000); + await this.wocare_luckDraw(_0x539d60, _0xab540b); + } + } else { + let _0x2a7f3f = _0x14390c?.["resultMsg"] || _0x14390c?.["resultDesc"] || ""; + this.log("联通祝福[" + _0x539d60.name + "]查询活动失败[" + _0x4be5d6 + "]: " + _0x2a7f3f); + } + } catch (_0x44c9f9) { + console.log(_0x44c9f9); + } + } + async ["wocare_getDrawTask"](_0x1f52a3, _0x472cfb = {}) { + try { + let _0x3ce3db = "getDrawTask"; + const _0x29dfbc = { + "token": this.wocare_token, + "channelType": _0x2f3d25, + "type": _0x1f52a3.id, + "apiCode": _0x3ce3db + }; + let { + result: _0x3406c5, + statusCode: _0x45b451 + } = await this.wocare_api(_0x3ce3db, _0x29dfbc), + _0x54d635 = _0x4c672b.get(_0x3406c5, "resultCode", _0x45b451); + if (_0x54d635 == "0000") { + let _0x1ed83b = _0x3406c5?.["data"]?.["taskList"] || []; + for (let _0xf9ce47 of _0x1ed83b.filter(_0x247aba => _0x247aba.taskStatus == 0)) { + await this.wocare_completeTask(_0x1f52a3, _0xf9ce47); + } + } else { + let _0x203353 = _0x3406c5?.["resultMsg"] || _0x3406c5?.["resultDesc"] || ""; + this.log("联通祝福[" + _0x1f52a3.name + "]查询任务失败[" + _0x54d635 + "]: " + _0x203353); + } + } catch (_0x3ae4f7) { + console.log(_0x3ae4f7); + } + } + async ["wocare_completeTask"](_0xf35562, _0x43d636, _0x3e1ba8 = "1", _0x35c12a = {}) { + try { + let _0x39880d = _0x43d636.title, + _0x280020 = _0x3e1ba8 == "1" ? "领取任务" : "完成任务", + _0x359654 = "completeTask"; + const _0x1750c5 = { + "token": this.wocare_token, + "channelType": _0x2f3d25, + "task": _0x43d636.id, + "taskStep": _0x3e1ba8, + "type": _0xf35562.id, + "apiCode": _0x359654 + }; + let { + result: _0x148579, + statusCode: _0x3120a6 + } = await this.wocare_api(_0x359654, _0x1750c5), + _0xf37957 = _0x4c672b.get(_0x148579, "resultCode", _0x3120a6); + if (_0xf37957 == "0000") { + this.log(_0x280020 + "[" + _0x39880d + "]成功"); + _0x3e1ba8 == "1" && (await this.wocare_completeTask(_0xf35562, _0x43d636, "4")); + } else { + let _0x36c2df = _0x148579?.["resultMsg"] || _0x148579?.["resultDesc"] || ""; + this.log("联通祝福[" + _0xf35562.name + "]" + _0x280020 + "[" + _0x39880d + "]失败[" + _0xf37957 + "]: " + _0x36c2df); + } + } catch (_0x50b288) { + console.log(_0x50b288); + } + } + async ["wocare_luckDraw"](_0x421217, _0x34bdc0, _0x38c8d8 = {}) { + try { + let _0x2ba21b = "luckDraw"; + const _0x2dbf9d = { + "token": this.wocare_token, + "channelType": _0x2f3d25, + "zActiveModuleGroupId": _0x34bdc0, + "type": _0x421217.id, + "apiCode": _0x2ba21b + }; + let { + result: _0x1a4830, + statusCode: _0x13eb29 + } = await this.wocare_api(_0x2ba21b, _0x2dbf9d), + _0x505306 = _0x4c672b.get(_0x1a4830, "resultCode", _0x13eb29); + if (_0x505306 == "0000") { + let _0x2c9034 = _0x4c672b.get(_0x1a4830?.["data"], "resultCode", -1); + if (_0x2c9034 == "0000") { + let { + prizeName: _0x3aba5f, + prizeDesc: _0x54895c + } = _0x1a4830?.["data"]?.["data"]?.["prize"]; + this.log("联通祝福[" + _0x421217.name + "]抽奖: " + _0x3aba5f + "[" + _0x54895c + "]"); + } else { + let _0x48f349 = _0x1a4830?.["resultMsg"] || _0x1a4830?.["resultDesc"] || ""; + this.log("联通祝福[" + _0x421217.name + "]抽奖失败[" + _0x2c9034 + "]: " + _0x48f349); + } + } else { + let _0x582633 = _0x1a4830?.["resultMsg"] || _0x1a4830?.["resultDesc"] || ""; + this.log("联通祝福[" + _0x421217.name + "]抽奖错误[" + _0x505306 + "]: " + _0x582633); + } + } catch (_0x46e26) { + console.log(_0x46e26); + } + } + async ["card_618_authCheck"](_0x3d8e87 = {}) { + try { + let _0x42adaa = { + "fn": "card_618_authCheck", + "method": "post", + "url": "https://epay.10010.com/ps-pafs-auth-front/v1/auth/check", + "headers": { + "bizchannelinfo": this.get_bizchannelinfo() + } + }, + { + result: _0x3b9d4c + } = await this.request(_0x42adaa), + _0x3f2b9d = _0x4c672b.get(_0x3b9d4c, "code", -1); + if (_0x3f2b9d == "0000") { + let { + mobile: _0x55fa42, + sessionId: _0x5ebd6f, + tokenId: _0x29d707, + userId: _0x47d469 + } = _0x3b9d4c?.["data"]?.["authInfo"]; + const _0x48034f = { + "sessionId": _0x5ebd6f, + "tokenId": _0x29d707, + "userId": _0x47d469 + }; + Object.assign(this, _0x48034f); + await this.card_618_queryUserCardInfo(); + } else { + if (_0x3f2b9d == "2101000100") { + let _0x59cd19 = _0x3b9d4c?.["data"]?.["woauth_login_url"]; + await this.card_618_login(_0x59cd19); + } else { + let _0x2dce15 = _0x3b9d4c?.["msgInside"] || _0x3b9d4c?.["msg"] || ""; + this.log("618集卡获取tokenId失败[" + _0x3f2b9d + "]: " + _0x2dce15); + } + } + } catch (_0x5eddba) { + console.log(_0x5eddba); + } + } + async ["card_618_login"](_0x113caf, _0x31d060 = {}) { + try { + let _0x15cc87 = _0x4c672b.time("yyyyMM") + "28ZFR"; + _0x113caf += "https://epay.10010.com/ci-mcss-party-web/rainbow/?templateName=" + _0x15cc87 + "&bizFrom=225&bizChannelCode=225&channelType=WDQB"; + const _0x3f12c0 = { + "fn": "card_618_login", + "method": "get", + "url": "https://epay.10010.com/woauth2/login", + "searchParams": {} + }; + _0x3f12c0.searchParams.response_type = "web_token"; + _0x3f12c0.searchParams.source = "app_sjyyt"; + _0x3f12c0.searchParams.union_session_id = ""; + _0x3f12c0.searchParams.device_digest_token_id = this.tokenId_cookie; + _0x3f12c0.searchParams.target_client_id = _0x558192; + _0x3f12c0.searchParams.position = null; + _0x3f12c0.searchParams.redirect_url = "https://epay.10010.com/ci-mcss-party-web/cardSelection/?activityId=NZJK618CJHD"; + _0x3f12c0.searchParams.bizFrom = _0x3e622c; + _0x3f12c0.searchParams.bizChannelCode = _0x46b3a9; + _0x3f12c0.searchParams.channelType = "WDQB"; + let { + headers: _0x1be388, + statusCode: _0x51a261 + } = await this.request(_0x3f12c0); + if (_0x1be388?.["location"]) { + let _0x3cacad = new URL(_0x1be388.location); + this.rptId = _0x3cacad.searchParams.get("rptid"); + this.rptId ? await this.card_618_authCheck() : this.log("618集卡获取rptid失败"); + } else this.log("618集卡获取rptid失败[" + _0x51a261 + "]"); + } catch (_0xbc3ca5) { + console.log(_0xbc3ca5); + } + } + async ["card_618_queryUserCardInfo"](_0x36bd22 = {}) { + try { + const _0x53fbe3 = { + "activityId": "NZJK618CJHD" + }; + let _0x5ba071 = { + "fn": "card_618_queryUserCardInfo", + "method": "post", + "url": "https://epay.10010.com/ci-mcss-party-front/v1/mouldCard/queryUserCardInfo", + "headers": { + "bizchannelinfo": this.get_bizchannelinfo(), + "authinfo": this.get_epay_authinfo() + }, + "form": _0x53fbe3 + }, + { + result: _0x523ff4 + } = await this.request(_0x5ba071), + _0xe66a96 = _0x4c672b.get(_0x523ff4, "code", -1); + if (_0xe66a96 == "0000" && _0x523ff4?.["data"]?.["returnCode"] == 0) { + let { + userRemain = 0, + isFirst = true + } = _0x523ff4?.["data"]; + isFirst && (await this.card_618_unifyDraw("首次进入")); + this.log("618集卡可以抽奖" + userRemain + "次"); + while (userRemain-- > 0) { + await this.card_618_unifyDraw("抽奖"); + } + } else { + let _0x10b95f = _0x523ff4?.["message"] || _0x523ff4?.["msg"] || ""; + this.log("618集卡进入主页失败[" + _0xe66a96 + "]: " + _0x10b95f); + } + } catch (_0x23b4e8) { + console.log(_0x23b4e8); + } + } + async ["card_618_unifyDraw"](_0x2942fa, _0x24f39b = {}) { + try { + let _0x19f2be = { + "fn": "card_618_unifyDraw", + "method": "post", + "url": "https://epay.10010.com/ci-mcss-party-front/v1/mouldCard/unifyDraw", + "headers": { + "bizchannelinfo": this.get_bizchannelinfo(), + "authinfo": this.get_epay_authinfo() + }, + "form": { + "bigActivityId": "NZJK618CJHD", + "activityId": "NZJK618CJHD" + _0x10ec87[_0x2942fa], + "bizFrom": _0x3e622c + } + }, + { + result: _0x553ba6 + } = await this.request(_0x19f2be), + _0x5e2644 = _0x4c672b.get(_0x553ba6, "code", -1); + if (_0x5e2644 == "0000" && _0x553ba6?.["data"]?.["returnCode"] == 0) { + let _0x253663 = _0x553ba6?.["data"]?.["prizeId"] || "空气", + _0x46f2b0 = _0x1c214d[_0x253663] || _0x253663; + const _0x391b14 = { + "notify": true + }; + this.log("618集卡[" + _0x2942fa + "]: " + _0x46f2b0, _0x391b14); + } else { + let _0xc7eeec = _0x553ba6?.["data"]?.["returnMsg"] || _0x553ba6?.["msg"] || ""; + this.log("618集卡[" + _0x2942fa + "]失败[" + (_0x553ba6?.["data"]?.["returnCode"] || _0x5e2644) + "]: " + _0xc7eeec); + } + } catch (_0x178045) { + console.log(_0x178045); + } + } + async ["sign_task"]() { + await this.sign_getContinuous(); + } + async ["ltcy_task"]() { + let _0xccdbb6 = "https://web.wostore.cn/web/flowGame/index.html?channelId=GAMELTAPP_90006&pushid=99", + { + ticket: _0x3069aa + } = await this.openPlatLineNew(_0xccdbb6); + if (!_0x3069aa) { + return; + } + await this.game_login(_0x3069aa); + } + async ["ttlxj_task"]() { + this.rptId = ""; + let _0x52e784 = "https://epay.10010.com/ci-mps-st-web/?webViewNavIsHidden=webViewNavIsHidden", + { + ticket: _0x509493, + type: _0x24a5a8, + loc: _0x27c3ca + } = await this.openPlatLineNew(_0x52e784); + if (!_0x509493) { + return; + } + await this.ttlxj_authorize(_0x509493, _0x24a5a8, _0x27c3ca); + } + async ["epay_28_task"]() { + this.rptId = ""; + let _0x281f49 = new Date().getDate(); + if (_0x281f49 >= 26 && _0x281f49 <= 28) { + await this.epay_28_authCheck(); + if (_0x1051da.length) { + let _0x27ea6e = _0x4c672b.randomList(_0x1051da); + await this.appMonth_28_bind(_0x27ea6e); + } + await this.appMonth_28_queryChance(); + } + } + async ["draw_28_task"]() { + let _0x4355ce = new Date().getDate(); + _0x4355ce == 28 && (await this.draw_28_queryChance()); + } + async ["act_517_task"]() { + let _0x523834 = new Date("2024-05-10 00:00:00"), + _0x377383 = new Date("2024-06-09 00:00:00"), + _0x52a669 = Date.now(); + if (_0x52a669 > _0x523834.getTime() && _0x52a669 < _0x377383.getTime()) { + if (_0x188394.length) { + let _0x3ee0f4 = _0x4c672b.randomList(_0x188394); + await this.act_517_bind(_0x3ee0f4); + } + await this.act_517_userAccount(); + } + } + async ["card_618_task"]() { + let _0x32b7b5 = new Date("2024-05-31 00:00:00"), + _0x1cd5fc = new Date("2024-06-21 00:00:00"), + _0x16a9cc = Date.now(); + _0x16a9cc > _0x32b7b5.getTime() && _0x16a9cc < _0x1cd5fc.getTime() && (this.rptId = "", await this.card_618_authCheck()); + } + async ["flmf_task"]() { + if (this.city.filter(_0x1380a2 => _0x1380a2.proCode == "091").length == 0) return; + let _0x5e248d = "https://weixin.linktech.hk/lv-web/handHall/autoLogin?actcode=welfareCenter", + { + loc: _0x41960a + } = await this.openPlatLineNew(_0x5e248d); + if (!_0x41960a) return; + await this.flmf_login(_0x41960a); + } + async ["ltyp_task"]() { + let _0x1e37c6 = "https://panservice.mail.wo.cn/h5/activitymobile/lottery?activityId=WzaR7KkUJSpR+gDh7Fy6mA==&clientid=1001000003&appName=shouting", + { + ticket: _0x45fada + } = await this.openPlatLineNew(_0x1e37c6); + if (!_0x45fada) { + return; + } + await this.ltyp_login(_0x45fada); + } + async ["ltzf_task"]() { + let _0x5c8f0b = new URL("https://wocare.unisk.cn/mbh/getToken"); + _0x5c8f0b.searchParams.append("channelType", _0x2f3d25); + _0x5c8f0b.searchParams.append("homePage", "home"); + _0x5c8f0b.searchParams.append("duanlianjieabc", "qAz2m"); + let _0x6e3046 = _0x5c8f0b.toString(), + { + ticket: _0x1b2778 + } = await this.openPlatLineNew(_0x6e3046); + if (!_0x1b2778) { + return; + } + if (!(await this.wocare_getToken(_0x1b2778))) { + return; + } + for (let _0x390fb3 of _0x4376d8) { + await this.wocare_getDrawTask(_0x390fb3); + await this.wocare_loadInit(_0x390fb3); + } + } + async ["woread_draw_task"](_0xea8fb9) { + await this.woread_getSeeVideoAddNumber(_0xea8fb9); + await this.woread_addDrawTimes(_0xea8fb9); + await this.woread_getActivityNumber(_0xea8fb9); + } + async ["woread_task"]() { + for (let _0x8c402d of _0x5724ea) { + await this.woread_draw_task(_0x8c402d); + } + await this.moonbox_queryReadStatus(); + await this.woread_queryTicketAccount(); + } + async ["woread_reading_task"]() { + this.switch_woread_token(this.woread_m_accesstoken); + let _0x86950a = Object.values(this.moonbox_task_record).filter(_0x370e18 => _0x370e18 === true).length; + while (this.need_read_rabbit || _0x86950a) { + let _0x36d0e9 = 2; + const _0x5748f5 = { + "readTime": _0x36d0e9 + }; + await this.woread_m_addReadTime(_0x5748f5); + let _0x54e79d = Date.now(); + _0x86950a && (await this.moonbox_m_queryCurTaskStatus()); + _0x86950a = Object.values(this.moonbox_task_record).filter(_0x5c76c2 => _0x5c76c2 === true).length; + this.need_read_rabbit && (await this.rabblit_queryActivityData()); + let _0x5ad531 = Date.now(), + _0x45fcec = 125000 + _0x54e79d - _0x5ad531; + (this.need_read_rabbit || _0x86950a) && _0x45fcec > 0 && (this.log("等待2分钟..."), await _0x4c672b.wait(_0x45fcec)); + } + this.switch_woread_token(this.woread_accesstoken); + } + async ["userLoginTask"]() { + if (!(await this.onLine())) { + return; + } + if (!(await this.woread_auth())) { + return; + } + if (!(await this.woread_login())) { + return; + } + if (!(await this.woread_m_auth())) { + return; + } + if (!(await this.woread_m_login())) return; + this.switch_woread_token(this.woread_accesstoken); + !_0x55391c && (await this.moonbox_queryActiveInfo()); + await this.moonbox_queryCurTaskStatus(); + } + async ["userTask"]() { + _0x4c672b.log("\n------------------ 账号[" + this.index + "] ------------------"); + !_0x159493 && (await this.sign_task()); + await this.ttlxj_task(); + await this.ltyp_task(); + await this.epay_28_task(); + await this.draw_28_task(); + await this.card_618_task(); + !_0xedc529 && (await this.ltzf_task()); + await this.flmf_task(); + await this.woread_task(); + } + async ["userTestTask"]() { + _0x4c672b.log("\n------------------ 账号[" + this.index + "] ------------------"); + await this.ltyp_task(); + } } -function changeToFileContent(_0x42a176) { - var _0x3e2581 = _0x42a176.files[0]; - if (_0x3e2581) { - var _0x466bde = new FileReader(); - _0x466bde.readAsText(_0x3e2581, "UTF-8"); - _0x466bde.onload = function (_0x286369) { - editor1 && editor1.setValue(_0x286369.target.result); +!(async () => { + _0x4c672b.read_env(_0x333e45); + _0x4c672b.log("\n------------------------------------"); + _0x4c672b.log("首页签到设置为: " + (_0x159493 ? "不" : "") + "运行"); + _0x4c672b.log("联通祝福设置为: " + (_0xedc529 ? "不" : "") + "运行"); + _0x4c672b.log("------------------------------------\n"); + for (let _0x2993eb of _0x4c672b.userList) { + await _0x2993eb.userLoginTask(); + } + for (let _0x46af08 of _0x4c672b.userList.filter(_0x4899fa => _0x4899fa.valid)) { + await _0x46af08.userTask(); + } + let _0x101619 = _0x4c672b.userList.filter(_0xbb0383 => _0xbb0383.valid && _0xbb0383.woread_verifycode && (_0xbb0383.need_read_rabbit || Object.values(_0xbb0383.moonbox_task_record).filter(_0x4b15a0 => _0x4b15a0 === true).length)); + if (_0x101619.length) { + let _0x8a3c88 = []; + _0x4c672b.log("\n============ 开始刷阅读时长 ============"); + for (let _0x46fff0 of _0x101619) { + _0x8a3c88.push(_0x46fff0.woread_reading_task()); + } + await Promise.all(_0x8a3c88); + } +})().catch(_0x480ea9 => _0x4c672b.log(_0x480ea9)).finally(() => _0x4c672b.exitNow()); +async function _0x342cb7(_0x2b809a = 0) { + let _0x7c4d8b = false; + try { + const _0x17f4de = { + "fn": "auth", + "method": "get", + "url": _0x2eca5f, + "timeout": 20000 }; + let { + statusCode: _0x27a232, + result: _0x2901ce + } = await _0x23c014.request(_0x17f4de); + if (_0x27a232 != 200) return _0x2b809a++ < _0x239ea0 && (_0x7c4d8b = await _0x342cb7(_0x2b809a)), _0x7c4d8b; + if (_0x2901ce?.["code"] == 0) { + _0x2901ce = JSON.parse(_0x2901ce.data.file.data); + if (_0x2901ce?.["commonNotify"] && _0x2901ce.commonNotify.length > 0) { + const _0x30e7a3 = { + "notify": true + }; + _0x4c672b.log(_0x2901ce.commonNotify.join("\n") + "\n", _0x30e7a3); + } + _0x2901ce?.["commonMsg"] && _0x2901ce.commonMsg.length > 0 && _0x4c672b.log(_0x2901ce.commonMsg.join("\n") + "\n"); + if (_0x2901ce[_0x4a2c68]) { + let _0x460df1 = _0x2901ce[_0x4a2c68]; + _0x460df1.status == 0 ? _0x2bad9c >= _0x460df1.version ? (_0x7c4d8b = true, _0x4c672b.log(_0x460df1.msg[_0x460df1.status]), _0x4c672b.log(_0x460df1.updateMsg), _0x4c672b.log("现在运行的脚本版本是:" + _0x2bad9c + ",最新脚本版本:" + _0x460df1.latestVersion)) : _0x4c672b.log(_0x460df1.versionMsg) : _0x4c672b.log(_0x460df1.msg[_0x460df1.status]); + } else { + _0x4c672b.log(_0x2901ce.errorMsg); + } + } else _0x2b809a++ < _0x239ea0 && (_0x7c4d8b = await _0x342cb7(_0x2b809a)); + } catch (_0x3a1ce2) { + _0x4c672b.log(_0x3a1ce2); + } finally { + return _0x7c4d8b; } +} +async function _0xdfa6ec() { + let _0x5e6b8c = false; + try { + const _0x2277d4 = { + "fn": "getTaskUrl", + "method": "get", + "url": _0x1971e5 + }; + let { + statusCode: _0x4c30ff, + result: _0x317b69 + } = await _0x23c014.request(_0x2277d4); + if (_0x4c30ff != 200) return Promise.resolve(); + if (_0x317b69?.["code"] == 0) { + _0x317b69 = JSON.parse(_0x317b69.data.file.data); + _0x333e1b = _0x317b69?.["ltyp_lottery"] || _0x333e1b; + _0x5724ea = _0x317b69?.["woread_draw_id"] || _0x5724ea; + _0x1051da = _0x317b69?.["appMonth_28_share"] || _0x1051da; + _0x188394 = _0x317b69?.["act_517_share"] || _0x188394; + } + } catch (_0x292565) { + _0x4c672b.log(_0x292565); + } finally { + return _0x5e6b8c; + } +} +function _0x4a9430(_0x1b0c10) { + return new class { + constructor(_0x6a570f) { + this.name = _0x6a570f; + this.startTime = Date.now(); + const _0x43c307 = { + "time": true + }; + this.log("[" + this.name + "]开始运行\n", _0x43c307); + this.notifyStr = []; + this.notifyFlag = true; + this.userIdx = 0; + this.userList = []; + this.userCount = 0; + this.default_timestamp_len = 13; + this.default_wait_interval = 1000; + this.default_wait_limit = 3600000; + this.default_wait_ahead = 0; + } + ["log"](_0x528753, _0x1f02d3 = {}) { + const _0x4bc837 = { + "console": true + }; + Object.assign(_0x4bc837, _0x1f02d3); + if (_0x4bc837.time) { + let _0x330adb = _0x4bc837.fmt || "hh:mm:ss"; + _0x528753 = "[" + this.time(_0x330adb) + "]" + _0x528753; + } + _0x4bc837.notify && this.notifyStr.push(_0x528753); + _0x4bc837.console && console.log(_0x528753); + } + ["get"](_0x524211, _0x22fc1d, _0x2b6468 = "") { + let _0xa9d2bf = _0x2b6468; + return _0x524211?.["hasOwnProperty"](_0x22fc1d) && (_0xa9d2bf = _0x524211[_0x22fc1d]), _0xa9d2bf; + } + ["pop"](_0x1f5e79, _0x32b1f4, _0x109f75 = "") { + let _0x60f012 = _0x109f75; + return _0x1f5e79?.["hasOwnProperty"](_0x32b1f4) && (_0x60f012 = _0x1f5e79[_0x32b1f4], delete _0x1f5e79[_0x32b1f4]), _0x60f012; + } + ["copy"](_0x49f276) { + return Object.assign({}, _0x49f276); + } + ["read_env"](_0x4d7971) { + let _0x20308f = _0x52f10b.map(_0x32a361 => process.env[_0x32a361]); + for (let _0x9da829 of _0x20308f.filter(_0x5d0b95 => !!_0x5d0b95)) { + let _0x9e4493 = _0x55899c.filter(_0x2bce07 => _0x9da829.includes(_0x2bce07)), + _0x120252 = _0x9e4493.length > 0 ? _0x9e4493[0] : _0x55899c[0]; + for (let _0x4f2586 of _0x9da829.split(_0x120252).filter(_0xc22170 => !!_0xc22170)) { + this.userList.push(new _0x4d7971(_0x4f2586)); + } + } + this.userCount = this.userList.length; + if (!this.userCount) { + const _0xce4f70 = { + "notify": true + }; + return this.log("未找到变量,请检查变量" + _0x52f10b.map(_0x5a1e6d => "[" + _0x5a1e6d + "]").join("或"), _0xce4f70), false; + } + return this.log("共找到" + this.userCount + "个账号"), true; + } + async ["threads"](_0x5ec711, _0x3f4d87, _0x3a29df = {}) { + while (_0x3f4d87.idx < _0x4c672b.userList.length) { + let _0x4e09a6 = _0x4c672b.userList[_0x3f4d87.idx++]; + if (!_0x4e09a6.valid) continue; + await _0x4e09a6[_0x5ec711](_0x3a29df); + } + } + async ["threadTask"](_0x4a11b5, _0x4093cd) { + let _0x1c0447 = []; + const _0x2eb45f = { + "idx": 0 + }; + while (_0x4093cd--) { + _0x1c0447.push(this.threads(_0x4a11b5, _0x2eb45f)); + } + await Promise.all(_0x1c0447); + } + ["time"](_0x3f2ee0, _0x5087a2 = null) { + let _0x519ec2 = _0x5087a2 ? new Date(_0x5087a2) : new Date(), + _0xa0c005 = { + "M+": _0x519ec2.getMonth() + 1, + "d+": _0x519ec2.getDate(), + "h+": _0x519ec2.getHours(), + "m+": _0x519ec2.getMinutes(), + "s+": _0x519ec2.getSeconds(), + "q+": Math.floor((_0x519ec2.getMonth() + 3) / 3), + "S": this.padStr(_0x519ec2.getMilliseconds(), 3) + }; + /(y+)/.test(_0x3f2ee0) && (_0x3f2ee0 = _0x3f2ee0.replace(RegExp.$1, (_0x519ec2.getFullYear() + "").substr(4 - RegExp.$1.length))); + for (let _0x307a84 in _0xa0c005) new RegExp("(" + _0x307a84 + ")").test(_0x3f2ee0) && (_0x3f2ee0 = _0x3f2ee0.replace(RegExp.$1, 1 == RegExp.$1.length ? _0xa0c005[_0x307a84] : ("00" + _0xa0c005[_0x307a84]).substr(("" + _0xa0c005[_0x307a84]).length))); + return _0x3f2ee0; + } + async ["showmsg"]() { + if (!this.notifyFlag) return; + if (!this.notifyStr.length) { + return; + } + var _0x39d5aa = require("./sendNotify"); + this.log("\n============== 推送 =============="); + await _0x39d5aa.sendNotify(this.name, this.notifyStr.join("\n")); + } + ["padStr"](_0x34ffe5, _0x18dafe, _0x22521e = {}) { + let _0x2d7644 = _0x22521e.padding || "0", + _0x551ef1 = _0x22521e.mode || "l", + _0x254b15 = String(_0x34ffe5), + _0x207fbe = _0x18dafe > _0x254b15.length ? _0x18dafe - _0x254b15.length : 0, + _0x3b0485 = ""; + for (let _0xc955ce = 0; _0xc955ce < _0x207fbe; _0xc955ce++) { + _0x3b0485 += _0x2d7644; + } + return _0x551ef1 == "r" ? _0x254b15 = _0x254b15 + _0x3b0485 : _0x254b15 = _0x3b0485 + _0x254b15, _0x254b15; + } + ["json2str"](_0x1e0f24, _0x2c3923, _0x460592 = false) { + let _0x109356 = []; + for (let _0x19a2d6 of Object.keys(_0x1e0f24).sort()) { + let _0x51f352 = _0x1e0f24[_0x19a2d6]; + _0x51f352 && _0x460592 && (_0x51f352 = encodeURIComponent(_0x51f352)); + _0x109356.push(_0x19a2d6 + "=" + _0x51f352); + } + return _0x109356.join(_0x2c3923); + } + ["str2json"](_0x1f46ad, _0x121fc = false) { + let _0x5d331b = {}; + for (let _0x35696c of _0x1f46ad.split("&")) { + if (!_0x35696c) { + continue; + } + let _0x332356 = _0x35696c.indexOf("="); + if (_0x332356 == -1) continue; + let _0x62d890 = _0x35696c.substr(0, _0x332356), + _0x4edab0 = _0x35696c.substr(_0x332356 + 1); + _0x121fc && (_0x4edab0 = decodeURIComponent(_0x4edab0)); + _0x5d331b[_0x62d890] = _0x4edab0; + } + return _0x5d331b; + } + ["randomPattern"](_0x1ccb52, _0x2b087e = "abcdef0123456789") { + let _0x30444d = ""; + for (let _0x2eefcd of _0x1ccb52) { + if (_0x2eefcd == "x") _0x30444d += _0x2b087e.charAt(Math.floor(Math.random() * _0x2b087e.length));else { + _0x2eefcd == "X" ? _0x30444d += _0x2b087e.charAt(Math.floor(Math.random() * _0x2b087e.length)).toUpperCase() : _0x30444d += _0x2eefcd; + } + } + return _0x30444d; + } + ["randomUuid"]() { + return this.randomPattern("xxxxxxxx-xxxx-4xxx-4xxx-xxxxxxxxxxxx"); + } + ["randomString"](_0x10e716, _0x54e3b1 = "abcdef0123456789") { + let _0xa2b978 = ""; + for (let _0x4228b3 = 0; _0x4228b3 < _0x10e716; _0x4228b3++) { + _0xa2b978 += _0x54e3b1.charAt(Math.floor(Math.random() * _0x54e3b1.length)); + } + return _0xa2b978; + } + ["randomList"](_0x4c2b02) { + let _0x43e1d7 = Math.floor(Math.random() * _0x4c2b02.length); + return _0x4c2b02[_0x43e1d7]; + } + ["wait"](_0x74610e) { + return new Promise(_0x3f7336 => setTimeout(_0x3f7336, _0x74610e)); + } + async ["exitNow"]() { + await this.showmsg(); + let _0x527bfe = Date.now(), + _0x3309d2 = (_0x527bfe - this.startTime) / 1000; + this.log(""); + const _0x568c49 = { + "time": true + }; + this.log("[" + this.name + "]运行结束,共运行了" + _0x3309d2 + "秒", _0x568c49); + console.log("=>=>=>=>____来自 By 幼稚园小妹妹 (顶级插件售后服务951584089)丨Autman订阅源:Lxg-021002丨期待为您服务<=<=<=<="); + console.log("=>=>=>=>____来自 By 幼稚园小妹妹 (顶级插件售后服务951584089)丨Autman订阅源:Lxg-021002丨期待为您服务<=<=<=<="); + console.log("=>=>=>=>____来自 By 幼稚园小妹妹 (顶级插件售后服务951584089)丨Autman订阅源:Lxg-021002丨期待为您服务<=<=<=<="); + console.log("=>=>=>=>____来自 By 幼稚园小妹妹 (顶级插件售后服务951584089)丨Autman订阅源:Lxg-021002丨期待为您服务<=<=<=<="); + console.log("=>=>=>=>____来自 By 幼稚园小妹妹 (顶级插件售后服务951584089)丨Autman订阅源:Lxg-021002丨期待为您服务<=<=<=<="); + console.log("=>=>=>=>____来自 By 幼稚园小妹妹 (顶级插件售后服务951584089)丨Autman订阅源:Lxg-021002丨期待为您服务<=<=<=<="); + console.log("=>=>=>=>____来自 By 幼稚园小妹妹 (顶级插件售后服务951584089)丨Autman订阅源:Lxg-021002丨期待为您服务<=<=<=<="); + console.log("=>=>=>=>____来自 By 幼稚园小妹妹 (顶级插件售后服务951584089)丨Autman订阅源:Lxg-021002丨期待为您服务<=<=<=<="); + console.log("=>=>=>=>____来自 By 幼稚园小妹妹 (顶级插件售后服务951584089)丨Autman订阅源:Lxg-021002丨期待为您服务<=<=<=<="); + console.log("=>=>=>=>____来自 By 幼稚园小妹妹 (顶级插件售后服务951584089)丨Autman订阅源:Lxg-021002丨期待为您服务<=<=<=<="); + process.exit(0); + } + ["normalize_time"](_0x4ab19e, _0x1d898e = {}) { + let _0x45cc8c = _0x1d898e.len || this.default_timestamp_len; + _0x4ab19e = _0x4ab19e.toString(); + let _0x2a1f8d = _0x4ab19e.length; + while (_0x2a1f8d < _0x45cc8c) { + _0x4ab19e += "0"; + } + return _0x2a1f8d > _0x45cc8c && (_0x4ab19e = _0x4ab19e.slice(0, 13)), parseInt(_0x4ab19e); + } + async ["wait_until"](_0x3e404d, _0x175236 = {}) { + let _0x1dd36a = _0x175236.logger || this, + _0x22246f = _0x175236.interval || default_wait_interval, + _0x2d0cce = _0x175236.limit || default_wait_limit, + _0x536cea = _0x175236.ahead || default_wait_ahead; + if (typeof _0x3e404d == "string" && _0x3e404d.includes(":")) { + if (_0x3e404d.includes("-")) { + _0x3e404d = new Date(_0x3e404d).getTime(); + } else { + let _0xe14cad = this.time("yyyy-MM-dd "); + _0x3e404d = new Date(_0xe14cad + _0x3e404d).getTime(); + } + } + let _0x5707f8 = this.normalize_time(_0x3e404d) - _0x536cea, + _0x32da67 = this.time("hh:mm:ss.S", _0x5707f8), + _0x40a678 = Date.now(); + _0x40a678 > _0x5707f8 && (_0x5707f8 += 86400000); + let _0x52227a = _0x5707f8 - _0x40a678; + if (_0x52227a > _0x2d0cce) { + const _0x3726cd = { + "time": true + }; + _0x1dd36a.log("离目标时间[" + _0x32da67 + "]大于" + _0x2d0cce / 1000 + "秒,不等待", _0x3726cd); + } else { + const _0x23af91 = { + "time": true + }; + _0x1dd36a.log("离目标时间[" + _0x32da67 + "]还有" + _0x52227a / 1000 + "秒,开始等待", _0x23af91); + while (_0x52227a > 0) { + let _0x329590 = Math.min(_0x52227a, _0x22246f); + await this.wait(_0x329590); + _0x40a678 = Date.now(); + _0x52227a = _0x5707f8 - _0x40a678; + } + const _0x18f2cd = { + "time": true + }; + _0x1dd36a.log("已完成等待", _0x18f2cd); + } + } + async ["wait_gap_interval"](_0x513f78, _0x1f132b) { + let _0x219678 = Date.now() - _0x513f78; + _0x219678 < _0x1f132b && (await this.wait(_0x1f132b - _0x219678)); + } + }(_0x1b0c10); } \ No newline at end of file diff --git a/output.py b/output.py index 8cc93ddd7..59abbcd18 100644 --- a/output.py +++ b/output.py @@ -1,65 +1 @@ -#2024-06-29 05:11:29 -import requests -import os -import time -import random -import hashlib -class yuanshen(): - def __init__(self,cookie): - self.cookie=cookie - self.h={"Host":"app.zhuanbang.net","accept":"application/json, image/webp","user-agent":"Mozilla/5.0 (Linux; Android 12; M2104K10AC Build/SP1A.210812.016; wv) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/96.0.4664.104 Mobile Safari/537.36 HuoNiuFusion/1.25.0_231652","x-requested-with":"XMLHttpRequest","sec-fetch-site":"same-origin","sec-fetch-mode":"cors","sec-fetch-dest":"empty","referer":"https://app.zhuanbang.net/assist/activity/47","accept-language":"zh-CN,zh;q=0.9,en-US;q=0.8,en;q=0.7","accept-encoding":"gzip","Cookie":f"NiuToken={self.cookie}"} - def sign_(self): - d=f"{self.csrftoken}#{self.sessionId}#{self.time}" - byte_string=d.encode('utf-8') - sha1=hashlib.sha1() - sha1.update(byte_string) - sign=sha1.hexdigest() - return sign - def video(self,key): - i=0 - while True: - i+=1 - url=f"https://app.zhuanbang.net/{key}/launch?_random={int(time.time() * 1000)}&type=slide" - r=requests.get(url,headers=self.h).json() - if r['code']==0: - print(f"第[{i}]个红包获取信息成功") - self.csrftoken=r['data']['extArgs']['csrfToken'] - self.sessionId=r['data']['extArgs']['sessionId'] - self.time=int(time.time()) - url=f"https://app.zhuanbang.net/{key}/award/grant?_t={self.time}" - data={"csrfToken":f"{self.csrftoken}","deviceId":f"{self.sessionId}","timestamp":f"{self.time}","sign":f"{self.sign_()}"} - r=requests.post(url,headers=self.h,data=data).json() - if r['code']==0: - print(f"第[{i}]个红包领取成功,获得[{r['data']['awardMoney']}]元") - else: - print(f"第[{i}]个红包领取失败---[{r['msg']}]") - break - else: - print(f"第[{i}]个获取红包信息失败---[{r['msg']}]") - break - if i>=21: - break - time.sleep(random.randint(20,48)) - def main(self): - print("===========开始执行快手刷视频===========") - self.video("kwai_video") - print("===========快手刷视频执行完毕===========") - print("===========开始执行抖音刷视频===========") - self.video("pangle_video") - print("===========抖音刷视频执行完毕===========") -if __name__=='__main__': - cookie='' - if not cookie: - cookie=os.getenv("yuanshen_zb") - if not cookie: - print("⛔️请设置环境变量:yuanshen_zb") - exit() - cookies=cookie.split("@") - print(f"一共获取到{len(cookies)}个账号") - i=1 - for cookie in cookies: - print(f"\n--------开始第{i}个账号--------") - main=yuanshen(cookie) - main.main() - print(f"--------第{i}个账号执行完毕--------") - i+=1 +#2024-06-29 10:02:20