diff --git a/dianxin.js b/dianxin.js
index edd412a..076cae5 100644
--- a/dianxin.js
+++ b/dianxin.js
@@ -1,1765 +1,2302 @@
//变量名chinaTelecomAccount
-//let ruishuApi = 'http://192.168.31.197:1257'
-//搭建DOCKER 瑞数API
-//docker run -d --name ruishu -p 1257:1257 yanyu.icu/smallfawn/ruishu
-//改为自己的DOCKER地址
-//青龙环境防止SSL报错
-//export NODE_OPTIONS="${NODE_OPTIONS} --tls-cipher-list=DEFAULT@SECLEVEL=0"
-let ruishuApi = 'http://192.168.31.197:1257'
-
-
-
-const _0x49dfef = _0x5370a4("电信营业厅");
-const _0x8e0885 = require("got");
-const _0x203c4a = require("path");
-const {
- exec: _0x3898d1
-} = require("child_process");
-const {
- CookieJar: _0x4f58d7
-} = require("tough-cookie");
-let cookieString
-const _0x5336b3 = require("fs");
-const _0x5e650c = require("crypto-js");
-const _0x22f09c = "chinaTelecom";
-const _0x1876a7 = /[\n\&\@]/;
-const _0x4aec53 = [_0x22f09c + "Account"];
-const _0x128624 = 30000;
-const _0x5a04a9 = 3;
-const _0x1736e2 = _0x22f09c + "Rpc";
-const _0x16d3ea = process.env[_0x1736e2];
-const _0xf4231c = 6.02;
-const _0x14f289 = "chinaTelecom";
-const _0x100b57 = "https://leafxcy.coding.net/api/user/leafxcy/project/validcode/shared-depot/validCode/git/blob/master/code.json";
-const _0x344953 = "JinDouMall";
-let _0x1d3d6d = {};
-const _0x5370da = "./chinaTelecom_cache.json";
-const _0x3ed712 = "Mozilla/5.0 (Linux; U; Android 12; zh-cn; ONEPLUS A9000 Build/QKQ1.190716.003) AppleWebKit/533.1 (KHTML, like Gecko) Version/5.0 Mobile Safari/533.1";
-const _0x75a069 = "34d7cb0bcdf07523";
-const _0x2304b1 = "1234567`90koiuyhgtfrdewsaqaqsqde";
-const _0x1110eb = "\0\0\0\0\0\0\0\0";
-const _0x3c561e = "MIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQDBkLT15ThVgz6/NOl6s8GNPofdWzWbCkWnkaAm7O2LjkM1H7dMvzkiqdxU02jamGRHLX/ZNMCXHnPcW/sDhiFCBN18qFvy8g6VYb9QtroI09e176s+ZCtiv7hbin2cCTj99iUpnEloZm19lwHyo69u5UMiPMpq0/XKBO8lYhN/gwIDAQAB";
-const _0x1e9565 = "-----BEGIN PUBLIC KEY-----\n" + _0x3c561e + "\n-----END PUBLIC KEY-----";
-const _0x516f15 = "MIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQC+ugG5A8cZ3FqUKDwM57GM4io6JGcStivT8UdGt67PEOihLZTw3P7371+N47PrmsCpnTRzbTgcupKtUv8ImZalYk65dU8rjC/ridwhw9ffW2LBwvkEnDkkKKRi2liWIItDftJVBiWOh17o6gfbPoNrWORcAdcbpk2L+udld5kZNwIDAQAB";
-const _0x4995b7 = "-----BEGIN PUBLIC KEY-----\n" + _0x516f15 + "\n-----END PUBLIC KEY-----";
-const _0x51cf70 = "MIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQDIPOHtjs6p4sTlpFvrx+ESsYkEvyT4JB/dcEbU6C8+yclpcmWEvwZFymqlKQq89laSH4IxUsPJHKIOiYAMzNibhED1swzecH5XLKEAJclopJqoO95o8W63Euq6K+AKMzyZt1SEqtZ0mXsN8UPnuN/5aoB3kbPLYpfEwBbhto6yrwIDAQAB";
-const _0x2e5ddf = "-----BEGIN PUBLIC KEY-----\n" + _0x51cf70 + "\n-----END PUBLIC KEY-----";
-const _0xc38e90 = require("node-rsa");
-let _0x13a631 = new _0xc38e90(_0x1e9565);
-const _0x4386dc = {
- encryptionScheme: "pkcs1"
-};
-_0x13a631.setOptions(_0x4386dc);
-let _0x47bb4b = new _0xc38e90(_0x4995b7);
-const _0xe2cacf = {
- encryptionScheme: "pkcs1"
-};
-_0x47bb4b.setOptions(_0xe2cacf);
-let _0x5b4189 = new _0xc38e90(_0x2e5ddf);
-const _0x3ab892 = {
- encryptionScheme: "pkcs1"
-};
-_0x5b4189.setOptions(_0x3ab892);
-const _0x131d2d = [202201, 202202, 202203];
-const _0x3c685e = 5;
-function _0x1519a6(_0xa8ae5c, _0x459aac, _0x58d61f, _0xa81bc3, _0x5af061, _0x3eaf32) {
- return _0x5e650c[_0xa8ae5c].encrypt(_0x5e650c.enc.Utf8.parse(_0xa81bc3), _0x5e650c.enc.Utf8.parse(_0x5af061), {
- mode: _0x5e650c.mode[_0x459aac],
- padding: _0x5e650c.pad[_0x58d61f],
- iv: _0x5e650c.enc.Utf8.parse(_0x3eaf32)
- }).ciphertext.toString(_0x5e650c.enc.Hex);
-}
-function _0x436a1e(_0x5007ed, _0x18814d, _0x38ebb6, _0x4281ff, _0x1bafc9, _0x3aac70) {
- return _0x5e650c[_0x5007ed].decrypt({
- ciphertext: _0x5e650c.enc.Hex.parse(_0x4281ff)
- }, _0x5e650c.enc.Utf8.parse(_0x1bafc9), {
- mode: _0x5e650c.mode[_0x18814d],
- padding: _0x5e650c.pad[_0x38ebb6],
- iv: _0x5e650c.enc.Utf8.parse(_0x3aac70)
- }).toString(_0x5e650c.enc.Utf8);
-}
-function _0x4e4355() {
- try {
- _0x5336b3.writeFileSync(_0x5370da, JSON.stringify(_0x1d3d6d, null, 4), "utf-8");
- } catch (_0x1c3791) {
- console.log("保存缓存出错");
- }
-}
-function _0xa0ff1b() {
- try {
- _0x1d3d6d = JSON.parse(_0x5336b3.readFileSync(_0x5370da, "utf-8"));
- } catch (_0x125821) {
- console.log("读取缓存出错, 新建一个token缓存");
- _0x4e4355();
- }
-}
-let _0x300c8e = 0;
-let _0xdb6efe = 0;
-function _0x11cae0() {
- _0xdb6efe = 1;
- process.on("SIGTERM", () => {
- _0xdb6efe = 2;
- process.exit(0);
+(function (_0x1398c0) {
+ process.env.NODE_OPTIONS = "--max-old-space-size=4096 --openssl-legacy-provider";
+ process.env.NODE_OPTIONS += " --tls-cipher-list=DEFAULT@SECLEVEL=0";
+ const {
+ "DOMParser": _0x3f8ba3
+ } = require("xmldom");
+ delete __filename;
+ delete __dirname;
+ var _0x3b0b0e = new _0x3f8ba3({
+ "locator": {},
+ "errorHandler": {
+ "warning": function (_0x43074f) {},
+ "error": function (_0x4b694d) {},
+ "fatalError": function (_0x5172b4) {}
+ }
});
- const _0x377b8a = _0x203c4a.basename(process.argv[1]);
- const _0x39bc5b = ["bash", "timeout", "grep"];
- let _0x4fe84e = ["ps afx"];
- _0x4fe84e.push("grep " + _0x377b8a);
- _0x4fe84e = _0x4fe84e.concat(_0x39bc5b.map(_0x425dac => "grep -v \"" + _0x425dac + " \""));
- _0x4fe84e.push("wc -l");
- const _0x401932 = _0x4fe84e.join("|");
- const _0x134226 = () => {
- _0x3898d1(_0x401932, (_0x26b41f, _0x817890, _0x4eca1a) => {
- if (_0x26b41f || _0x4eca1a) {
- return;
- }
- _0x300c8e = parseInt(_0x817890.trim(), 10);
- });
- if (_0xdb6efe == 1) {
- setTimeout(_0x134226, 2000);
- }
+ _0x1398c0 = 7;
+ const _0x1a907b = _0xf189dd("电信营业厅"),
+ _0x221366 = require("got"),
+ _0x7c8459 = require("path"),
+ {
+ "exec": _0x1a8673
+ } = require("child_process"),
+ _0x4c9506 = require("fs"),
+ _0x150775 = require("crypto-js"),
+ _0xd3111e = "moceleTanihc".split("").reverse().join(""),
+ _0xed67c1 = new RegExp("[\\n\\&\\@]", ""),
+ _0x5dcb01 = [_0xd3111e + "Account"],
+ _0x18914c = 30000,
+ _0x80a14f = 3,
+ _0x1104ee = _0xd3111e + "cpR".split("").reverse().join(""),
+ _0x51e8a6 = process.env[_0x1104ee],
+ _0x2a1f65 = 6.02,
+ _0x26154c = "moceleTanihc".split("").reverse().join(""),
+ _0x14c4e5 = "https://leafxcy.coding.net/api/user/leafxcy/project/validcode/shared-depot/validCode/git/blob/master/code.json",
+ _0x4b73f5 = "JinDouMall";
+ let _0x4f8ac1 = {};
+ const _0x15d9a8 = "./chinaTelecom_cache.json",
+ _0x932305 = "Mozilla/5.0 (Linux; U; Android 12; zh-cn; ONEPLUS A9000 Build/QKQ1.190716.003) AppleWebKit/533.1 (KHTML, like Gecko) Version/5.0 Mobile Safari/533.1",
+ _0x49b65a = "34d7cb0bcdf07523",
+ _0x53d03f = "swedrftghyuiok09`7654321".split("").reverse().join(""),
+ _0x36ee2c = "\0\0\0\0\0\0\0\0",
+ _0x5d0e03 = "MIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQDBkLT15ThVgz6/NOl6s8GNPofdWzWbCkWnkaAm7O2LjkM1H7dMvzkiqdxU02jamGRHLX/ZNMCXHnPcW/sDhiFCBN18qFvy8g6VYb9QtroI09e176s+ZCtiv7hbin2cCTj99iUpnEloZm19lwHyo69u5UMiPMpq0/XKBO8lYhN/gwIDAQAB",
+ _0x5de718 = "\n-----YEK CILBUP NIGEB-----".split("").reverse().join("") + _0x5d0e03 + "\n-----END PUBLIC KEY-----",
+ _0xe715f9 = "MIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQC+ugG5A8cZ3FqUKDwM57GM4io6JGcStivT8UdGt67PEOihLZTw3P7371+N47PrmsCpnTRzbTgcupKtUv8ImZalYk65dU8rjC/ridwhw9ffW2LBwvkEnDkkKKRi2liWIItDftJVBiWOh17o6gfbPoNrWORcAdcbpk2L+udld5kZNwIDAQAB",
+ _0x35f8a5 = "-----BEGIN PUBLIC KEY-----\n" + _0xe715f9 + "\n-----END PUBLIC KEY-----",
+ _0x23ffb7 = "BAQADIwry6othbBwEfpYLPbk3Boa5/NunPU8NsXm0ZtqES1tZyzMKA+K6quE36W8o59OoqJpolcJAEKLX5Hcezws1DEhbiNzMAYiOIKHJPsUxI4HSal98qQKlqmyFZwvEWmcplcy+8C6UbEcd/BJ4TyvEkYsSE+xrvFplTs4p6sjtHOPIDQgBKQiBCDANG4AAUQABEQD3bISGqSCG0AMfGIM".split("").reverse().join(""),
+ _0x5bd516 = "-----BEGIN PUBLIC KEY-----\n" + _0x23ffb7 + "\n-----END PUBLIC KEY-----",
+ _0x53ed7d = require("node-rsa");
+ let _0x253d66 = new _0x53ed7d(_0x5de718);
+ const _0x9eb7bd = {
+ "encryptionScheme": "pkcs1"
};
- _0x134226();
-}
-class _0x9d1851 {
- constructor() {
- this.index = _0x49dfef.userIdx++;
+ _0x253d66.setOptions(_0x9eb7bd);
+ let _0x40e903 = new _0x53ed7d(_0x35f8a5);
+ const _0x370ad7 = {
+ "encryptionScheme": "pkcs1"
+ };
+ _0x40e903.setOptions(_0x370ad7);
+ let _0x30d16a = new _0x53ed7d(_0x5bd516);
+ const _0x4f845c = {
+ "encryptionScheme": "pkcs1"
+ };
+ _0x30d16a.setOptions(_0x4f845c);
+ const _0x59860f = [202201, 202202, 202203],
+ _0x503087 = 5;
+ function _0x164663(_0x4a6465, _0x375482, _0x35afe0, _0xa2a707, _0x136543, _0x13f587) {
+ return _0x150775[_0x4a6465].encrypt(_0x150775.enc.Utf8.parse(_0xa2a707), _0x150775.enc.Utf8.parse(_0x136543), {
+ "mode": _0x150775.mode[_0x375482],
+ "padding": _0x150775.pad[_0x35afe0],
+ "iv": _0x150775.enc.Utf8.parse(_0x13f587)
+ }).ciphertext.toString(_0x150775.enc.Hex);
+ }
+ function _0x134cec(_0x26c7d5, _0x463040, _0x4a6336, _0x35c8a7, _0x199ce3, _0x423a3f) {
+ return _0x150775[_0x26c7d5].decrypt({
+ "ciphertext": _0x150775.enc.Hex.parse(_0x35c8a7)
+ }, _0x150775.enc.Utf8.parse(_0x199ce3), {
+ "mode": _0x150775.mode[_0x463040],
+ "padding": _0x150775.pad[_0x4a6336],
+ "iv": _0x150775.enc.Utf8.parse(_0x423a3f)
+ }).toString(_0x150775.enc.Utf8);
+ }
+ function _0x592882() {
+ try {
+ _0x4c9506.writeFileSync(_0x15d9a8, JSON.stringify(_0x4f8ac1, null, 4), "8-ftu".split("").reverse().join(""));
+ } catch (_0x3fef2f) {
+ console.log("错出存缓存保".split("").reverse().join(""));
+ }
+ }
+ function _0x5c3daa() {
+ try {
+ _0x4f8ac1 = JSON.parse(_0x4c9506.readFileSync(_0x15d9a8, "8-ftu".split("").reverse().join("")));
+ } catch (_0x149e2f) {
+ console.log("存缓nekot个一建新 ,错出存缓取读".split("").reverse().join(""));
+ _0x592882();
+ }
+ }
+ let _0x1ae409 = 0,
+ _0x2668bb = 0;
+ function _0xebac22() {
+ {
+ _0x2668bb = 1;
+ process.on("SIGTERM", () => {
+ _0x2668bb = 2;
+ process.exit(0);
+ });
+ const _0x1990e8 = _0x7c8459.basename(process.argv[1]),
+ _0x45daf2 = ["bash", "timeout", "grep"];
+ let _0x2275af = ["ps afx"];
+ _0x2275af.push("grep " + _0x1990e8);
+ _0x2275af = _0x2275af.concat(_0x45daf2.map(_0x24fde1 => "grep -v \"" + _0x24fde1 + "\" ".split("").reverse().join("")));
+ _0x2275af.push("l- cw".split("").reverse().join(""));
+ const _0x1fce35 = _0x2275af.join("|"),
+ _0x290fca = () => {
+ _0x1a8673(_0x1fce35, (_0x2a6abb, _0x1d3b15, _0x2bdb23) => {
+ if (_0x2a6abb || _0x2bdb23) {
+ return;
+ }
+ _0x1ae409 = parseInt(_0x1d3b15.trim(), 10);
+ });
+ _0x2668bb == 1 && setTimeout(_0x290fca, 2000);
+ };
+ _0x290fca();
+ }
+ }
+ class _0x252e78 {
+ constructor() {
+ this.index = _0x1a907b.userIdx++;
this.name = "";
this.valid = false;
- const _0x46f57a = {
- limit: 0
- };
- const _0x42e66e = {
- Connection: "keep-alive"
- };
- const _0x1612bd = {
- retry: _0x46f57a,
- timeout: _0x128624,
- followRedirect: false,
- ignoreInvalidCookies: true,
- headers: _0x42e66e
- };
- this.got = _0x8e0885.extend(_0x1612bd);
- if (_0xdb6efe == 0) {
- _0x11cae0();
+ const _0x4c8c9 = {
+ "limit": 0
+ },
+ _0x220c3a = {
+ "Connection": "keep-alive"
+ },
+ _0xc0d89d = {
+ "retry": _0x4c8c9,
+ "timeout": _0x18914c,
+ "followRedirect": false,
+ "ignoreInvalidCookies": true,
+ "headers": _0x220c3a
+ };
+ this.got = _0x221366.extend(_0xc0d89d);
+ _0x2668bb == 0 && _0xebac22();
+ }
+ ["log"](_0x1b8189, _0x9c4426 = {}) {
+ var _0x1ac632 = "",
+ _0xad7cd9 = _0x1a907b.userCount.toString().length;
+ this.index && (_0x1ac632 += "[号账".split("").reverse().join("") + _0x1a907b.padStr(this.index, _0xad7cd9) + "]");
+ this.name && (_0x1ac632 += "[" + this.name.slice(0, 3) + "****".split("").reverse().join("") + this.name.slice(-4) + "]");
+ _0x1a907b.log(_0x1ac632 + _0x1b8189, _0x9c4426);
+ }
+ ["get_rscode"](_0x4681d6, _0x41b5cd, _0x4ecab9, _0x1ff39b) {
+ let _0x138011,
+ _0x17a8be = "\n null_function = function () {}\n content=\"" + _0x4681d6 + "\";\n tsID=\"" + _0x1ff39b + "\"\n delete __dirname \n delete __filename \n ActiveXObject = undefined;\n \n Window = null_function\n window = self = parent = top = globalThis;\n addEventListener = null_function\n \n attachEvent = null_function\n navigator = {userAgent: 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/116.0.0.0 Safari/537.36'}\n HTMLCollection = []\n HTMLCollection.length = 0\n div = {\n getElementsByTagName() {\n return HTMLCollection\n },\n innerHTML: '',\n \n }\n getAttribute = function () {\n if (arguments[0] == 'r') {\n return 'm'\n }\n }\n meta = {\n content: \"text/html; charset=utf-8\",\n http_Equiv: \"Content-Type\",\n id:tsID,\n getAttribute: function (arg) {\n if (arg === 'r') {\n return 'm'\n }\n },\n parentNode: {\n removeChild: function () {}\n }\n }\n getElementsByTagNameObj = {}\n metav={\n id:tsID,\n content:content,\n r:\"m\",\n getAttribute: function (arg) {\n if (arg === 'r') {\n return 'm'\n }\n },\n parentNode: {\n removeChild: null_function\n }\n }\n \n documentElement = {\n addEventListener: addEventListener\n }\n document = {\n characterSet: 'UTF-8',\n charset: 'UTF-8',\n createElement() {\n if (arguments[0] === 'div') {\n return div\n }\n return {}\n },\n getElementsByTagName: function (arg) {\n if (arg === 'script') {\n return {}\n }\n if (arg === 'base') {\n return {length: 0}\n }\n },\n documentElement: documentElement,\n addEventListener: addEventListener,\n attachEvent: attachEvent,\n getElementById: function () {\n if (arguments[0] === tsID) {\n return metav\n }\n if (arguments[0] == 'root-hammerhead-shadow-ui') {\n return null\n }\n return {}\n },\n appendChild:null_function,\n removeChild: null_function\n }\n location={\n \"href\": \"https://\",\n \"origin\": \"\",\n \"protocol\": \"\",\n \"host\": \"\",\n \"hostname\": \"\",\n \"port\": \"\",\n \"pathname\": \"\",\n \"search\": \"\",\n \"hash\": \"\"\n }\n //setTimeout = null_function\n setInterval = null_function\n " + _0x41b5cd + "\n " + _0x4ecab9 + "\n function getck() {\n return document.cookie\n }\n return {getck};\n ";
+ _0x138011 = 13;
+ const _0x16483e = new Function(_0x17a8be),
+ _0x26187b = _0x16483e();
+ var _0x16bc4c = 14;
+ const _0x5b8c01 = _0x26187b.getck();
+ _0x16bc4c = 10;
+ this.rsFun = _0x16483e;
+ this.getrsCk = _0x5b8c01;
+ return _0x16483e;
+ }
+ async ["parseCookies"](_0x1ece13, _0x3c1e28) {
+ {
+ let _0x4cba26 = {},
+ _0x2ea51f = _0x1ece13.split(";");
+ _0x2ea51f.forEach(_0x167de8 => {
+ _0x167de8 = _0x167de8.trim();
+ if (_0x167de8.includes("=")) {
+ let [_0x15b1dc, _0x59adc6] = _0x167de8.split("=", 2);
+ !_0x15b1dc.toLowerCase().includes("path") && !_0x15b1dc.toLowerCase().includes("seripxe".split("").reverse().join("")) && !_0x15b1dc.toLowerCase().includes("eruces".split("").reverse().join("")) && !_0x15b1dc.toLowerCase().includes("etisemas".split("").reverse().join("")) && (_0x4cba26[_0x15b1dc] = _0x59adc6);
+ }
+ });
+ if (_0x3c1e28) {
+ _0x4cba26.yiUIIlbdQT3fO = _0x3c1e28.split("=")[1];
+ }
+ return _0x4cba26;
}
- }
- log(_0x42a357, _0x32d0cc = {}) {
- var _0x58117c = "";
- var _0x9ca0e2 = _0x49dfef.userCount.toString().length;
- if (this.index) {
- _0x58117c += "账号[" + _0x49dfef.padStr(this.index, _0x9ca0e2) + "]";
- }
- if (this.name) {
- _0x58117c += "[" + this.name + "]";
- }
- _0x49dfef.log(_0x58117c + _0x42a357, _0x32d0cc);
- }
- set_cookie(_0x309397, _0x3ab012, _0x4a8547, _0x1320cb, _0x482400 = {}) {
- this.cookieJar.setCookieSync(_0x309397 + "=" + _0x3ab012 + "; Domain=" + _0x4a8547 + ";", "" + _0x1320cb);
- }
- async request(_0x29ad8a) {
- const _0x58b4a1 = ["ECONNRESET", "EADDRINUSE", "ENOTFOUND", "EAI_AGAIN"];
- const _0x497c09 = ["TimeoutError"];
- const _0x54807f = ["EPROTO"];
- const _0x30eee7 = [];
- var _0x208a74 = null;
- var _0x3a35d0 = 0;
- var _0x1684d3 = _0x29ad8a.fn || _0x29ad8a.url;
- let _0x25d788 = _0x49dfef.get(_0x29ad8a, "valid_code", _0x30eee7);
- _0x29ad8a.method = _0x29ad8a?.["method"]?.["toUpperCase"]() || "GET";
-
-
-
-
- let _0x19ce7b;
- let _0x5c8c40;
- while (_0x3a35d0 < _0x5a04a9) {
+ }
+ async ["request"](_0x190a2b) {
+ {
+ let _0x25513b = _0x190a2b?.["ckvalue"] || "";
+ const _0xb9ee29 = ["ECONNRESET", "EADDRINUSE", "DNUOFTONE".split("").reverse().join(""), "EAI_AGAIN"],
+ _0x268e93 = ["TimeoutError"],
+ _0x45beb9 = ["EPROTO"],
+ _0x53d45c = [];
+ var _0x1983cd = null,
+ _0x3192a9 = 0,
+ _0x4dd0e7 = _0x190a2b.fn || _0x190a2b.url;
+ let _0x4a98af = _0x1a907b.get(_0x190a2b, "valid_code", _0x53d45c);
+ _0x190a2b.method = _0x190a2b?.["dohtem".split("").reverse().join("")]?.["esaCreppUot".split("").reverse().join("")]() || "TEG".split("").reverse().join("");
+ _0x190a2b?.["ckvalue"] && (_0x190a2b.headers = _0x190a2b?.["headers"] || {
+ "Cookie": "=Pf3TQdblIIUiy".split("").reverse().join("") + (_0x25513b.yiUIIlbdQT3fP || "") + "; yiUIIlbdQT3fO=" + (_0x25513b.yiUIIlbdQT3fO || "")
+ });
+ let _0x16d92d, _0x3dc0a8;
+ while (_0x3192a9 < _0x80a14f) {
try {
- _0x3a35d0++;
- _0x19ce7b = "";
- _0x5c8c40 = "";
- let _0x1fa216 = null;
- let _0x123eec = _0x29ad8a?.["timeout"] || this.got?.["defaults"]?.["options"]?.["timeout"]?.["request"] || _0x128624;
- let _0x34e77b = false;
- let _0x5397b0 = Math.max(this.index - 2, 0);
- let _0x5d25e7 = Math.min(Math.max(this.index - 3, 1), 3);
- let _0x52755a = Math.min(Math.max(this.index - 4, 1), 4);
- let _0x15d328 = _0x5397b0 * _0x5d25e7 * _0x52755a * 400;
- let _0x2c4c80 = _0x5397b0 * _0x5d25e7 * _0x52755a * 1800;
- let _0x4cfee0 = _0x15d328 + Math.floor(Math.random() * _0x2c4c80);
- let _0x15dce7 = _0x300c8e * (_0x300c8e - 1) * 2000;
- let _0x5ca50a = (_0x300c8e - 1) * (_0x300c8e - 1) * 2000;
- let _0x333735 = _0x15dce7 + Math.floor(Math.random() * _0x5ca50a);
- let _0x573d35 = Math.max(_0x49dfef.userCount - 2, 0);
- let _0x25871d = Math.max(_0x49dfef.userCount - 3, 0);
- let _0x34f531 = _0x573d35 * 200;
- let _0x1bd293 = _0x25871d * 400;
- let _0x4845e7 = _0x34f531 + Math.floor(Math.random() * _0x1bd293);
- let _0x5dc50f = _0x4cfee0 + _0x333735 + _0x4845e7;
- await _0x49dfef.wait(1000);
- await new Promise(async _0x45b1d3 => {
+ {
+ _0x3192a9++;
+ _0x16d92d = "";
+ _0x3dc0a8 = "";
+ let _0x194be3 = null,
+ _0x34816a = _0x190a2b?.["tuoemit".split("").reverse().join("")] || this.got?.["stluafed".split("").reverse().join("")]?.["options"]?.["timeout"]?.["request"] || _0x18914c,
+ _0x247d00 = false,
+ _0x57a0dd = Math.max(this.index - 2, 0),
+ _0x118618 = Math.min(Math.max(this.index - 3, 1), 3),
+ _0x5e0eab = Math.min(Math.max(this.index - 4, 1), 4),
+ _0x5003fd = _0x57a0dd * _0x118618 * _0x5e0eab * 400,
+ _0x177928 = _0x57a0dd * _0x118618 * _0x5e0eab * 1800,
+ _0x31d3fb = _0x5003fd + Math.floor(Math.random() * _0x177928),
+ _0x5845c2 = _0x1ae409 * (_0x1ae409 - 1) * 2000,
+ _0x2396f5 = (_0x1ae409 - 1) * (_0x1ae409 - 1) * 2000,
+ _0x5da990 = _0x5845c2 + Math.floor(Math.random() * _0x2396f5),
+ _0x4d75f1 = Math.max(_0x1a907b.userCount - 2, 0),
+ _0x529ee2 = Math.max(_0x1a907b.userCount - 3, 0),
+ _0x43dcc1 = _0x4d75f1 * 200,
+ _0x5873a4 = _0x529ee2 * 400,
+ _0x3a27f6 = _0x43dcc1 + Math.floor(Math.random() * _0x5873a4),
+ _0x2473ec = _0x31d3fb + _0x5da990 + _0x3a27f6;
+ await new Promise(async _0x1e79c1 => {
+ {
setTimeout(() => {
- _0x34e77b = true;
- _0x45b1d3();
- }, _0x123eec);
- let Cookie = await this.got({
- method: "post",
- url: ruishuApi+"/get_cookies",
- body: JSON.stringify({ response: "", url: "" })
- })
- let c = JSON.parse(Cookie['body'])
- cookieString = Object.entries(c)
- .map(([key, value]) => `${key}=${value}`)
- .join('; ');
- _0x29ad8a['headers'] = {}
- _0x29ad8a['headers']['cookie'] = cookieString
-
- await this.got(_0x29ad8a).then(_0x284c2a => {
- _0x208a74 = _0x284c2a;
- }, _0x55b6b8 => {
- _0x1fa216 = _0x55b6b8;
- _0x208a74 = _0x55b6b8.response;
- _0x19ce7b = _0x1fa216?.["code"] || "";
- _0x5c8c40 = _0x1fa216?.["name"] || "";
+ _0x247d00 = true;
+ _0x1e79c1();
+ }, _0x34816a);
+ var _0x22e3f1 = 9;
+ let _0xd1fef1 = _0x1e79c1?.["ckvalue"] || "";
+ _0x22e3f1 = 17;
+ _0x190a2b?.["ckvalue"] && (_0x190a2b.headers = _0x190a2b?.["sredaeh".split("").reverse().join("")] || {
+ "Cookie": "=Pf3TQdblIIUiy".split("").reverse().join("") + (_0xd1fef1.yiUIIlbdQT3fP || "") + "; yiUIIlbdQT3fO=" + (_0xd1fef1.yiUIIlbdQT3fO || "")
});
- _0x45b1d3();
- });
- if (_0x34e77b) {
- this.log("[" + _0x1684d3 + "]请求超时(" + _0x123eec / 1000 + "秒),重试第" + _0x3a35d0 + "次");
- } else {
- if (_0x54807f.includes(_0x19ce7b)) {
- this.log("[" + _0x1684d3 + "]请求错误[" + _0x19ce7b + "][" + _0x5c8c40 + "]");
- if (_0x1fa216?.["message"]) {
- console.log(_0x1fa216.message);
- }
- break;
- } else {
- if (_0x497c09.includes(_0x5c8c40)) {
- this.log("[" + _0x1684d3 + "]请求错误[" + _0x19ce7b + "][" + _0x5c8c40 + "],重试第" + _0x3a35d0 + "次");
- } else {
- if (_0x58b4a1.includes(_0x19ce7b)) {
- this.log("[" + _0x1684d3 + "]请求错误[" + _0x19ce7b + "][" + _0x5c8c40 + "],重试第" + _0x3a35d0 + "次");
- } else {
- let _0x42b498 = _0x208a74?.["statusCode"] || "";
- let _0x2ef704 = _0x42b498 / 100 | 0;
- if (_0x42b498) {
- _0x2ef704 > 3 && !_0x25d788.includes(_0x42b498) && (_0x42b498 ? this.log("请求[" + _0x1684d3 + "]返回[" + _0x42b498 + "]") : this.log("请求[" + _0x1684d3 + "]错误[" + _0x19ce7b + "][" + _0x5c8c40 + "]"));
- if (_0x2ef704 <= 4) {
- break;
- }
- } else {
- this.log("请求[" + _0x1684d3 + "]错误[" + _0x19ce7b + "][" + _0x5c8c40 + "]");
- }
+ try {
+ var _0x301943 = 17;
+ const _0x51b7d4 = await this.got(_0x190a2b);
+ _0x301943 = "gcepbq".split("").reverse().join("");
+ _0x1983cd = _0x51b7d4;
+ } catch (_0x154715) {
+ if (_0x154715.response?.["statusCode"] == 412) {
+ {
+ const {
+ "contentCODE": _0x5516eb,
+ "tsCODE": _0x47e590,
+ "srcAttribute": _0x4b6a23,
+ "tsID": _0x3373ed
+ } = _0x1a907b.get(_0x154715, "resoultCode", _0x154715.response?.["statusCode"]);
+ var _0x2812fb = 4;
+ const _0x5e923a = {
+ "fn": "getrs",
+ "method": "get",
+ "url": "https://wappark.189.cn" + _0x4b6a23
+ };
+ _0x2812fb = 9;
+ let {
+ "result": _0x3ebf1f,
+ "statusCode": _0x2ead5e
+ } = await this.request(_0x5e923a);
+ var _0x376a46 = 6;
+ let _0x2ec177 = "";
+ _0x376a46 = 11;
+ if (_0x154715.response && _0x154715.response.headers) {
+ var _0x594dfa = 10;
+ const _0x5cc77d = _0x154715.response.headers["set-cookie"];
+ _0x594dfa = 13;
+ Array.isArray(_0x5cc77d) && (_0x2ec177 = _0x5cc77d.map(_0x259e52 => _0x259e52.split(";")[0]).join("; "));
+ }
+ this.get_rscode(_0x5516eb, _0x47e590, _0x3ebf1f, _0x3373ed);
+ var _0x3471a2 = 6;
+ let _0x411b9a = this.getrsCk;
+ _0x3471a2 = "chleng".split("").reverse().join("");
+ _0x411b9a = this.rsFun().getck();
+ _0xd1fef1 = await this.parseCookies(_0x411b9a, _0x2ec177);
+ if (_0xd1fef1) {
+ {
+ _0x190a2b.headers = {
+ "Cookie": "yiUIIlbdQT3fP=" + (_0xd1fef1.yiUIIlbdQT3fP || "") + "=Of3TQdblIIUiy ;".split("").reverse().join("") + (_0xd1fef1.yiUIIlbdQT3fO || "")
+ };
+ try {
+ let _0x1a0f23;
+ const _0x16f9e8 = await this.got(_0x190a2b);
+ _0x1a0f23 = 4;
+ _0x1983cd = _0x16f9e8;
+ } catch (_0x21ba32) {
+ _0x194be3 = _0x21ba32;
+ _0x1983cd = _0x21ba32.response;
+ _0x16d92d = _0x21ba32.response?.["code"] || "";
+ _0x3dc0a8 = _0x21ba32.response?.["name"] || "";
+ console.log(_0x16d92d, "deliaf yrteR".split("").reverse().join(""));
+ }
}
+ }
}
+ } else _0x194be3 = _0x154715, _0x1983cd = _0x154715.response, _0x16d92d = _0x154715.response?.["code"] || "", _0x3dc0a8 = _0x154715.response?.["name"] || "";
}
+ _0x1e79c1();
+ }
+ });
+ if (_0x247d00) this.log("[" + _0x4dd0e7 + "(时超求请]".split("").reverse().join("") + _0x34816a / 1000 + "第试重,)秒".split("").reverse().join("") + _0x3192a9 + "次");else {
+ if (_0x45beb9.includes(_0x16d92d)) {
+ this.log("[" + _0x4dd0e7 + "[误错求请]".split("").reverse().join("") + _0x16d92d + "[]".split("").reverse().join("") + _0x3dc0a8 + "]");
+ _0x194be3?.["message"] && console.log(_0x194be3.message);
+ break;
+ } else {
+ if (_0x268e93.includes(_0x3dc0a8)) this.log("[" + _0x4dd0e7 + "[误错求请]".split("").reverse().join("") + _0x16d92d + "][" + _0x3dc0a8 + "第试重,]".split("").reverse().join("") + _0x3192a9 + "次");else {
+ if (_0xb9ee29.includes(_0x16d92d)) this.log("[" + _0x4dd0e7 + "[误错求请]".split("").reverse().join("") + _0x16d92d + "][" + _0x3dc0a8 + "],重试第" + _0x3192a9 + "次");else {
+ {
+ if (_0x1983cd?.["edoCsutats".split("").reverse().join("")] == 412) break;
+ let _0x1ebbf7 = _0x1983cd?.["edoCsutats".split("").reverse().join("")] || "",
+ _0x359dc7 = _0x1ebbf7 / 100 | 0;
+ if (_0x1ebbf7) {
+ _0x359dc7 > 3 && !_0x4a98af.includes(_0x1ebbf7) && (_0x1ebbf7 ? this.log("[求请".split("").reverse().join("") + _0x4dd0e7 + "]返回[" + _0x1ebbf7 + "]") : this.log("请求[" + _0x4dd0e7 + "[误错]".split("").reverse().join("") + _0x16d92d + "][" + _0x3dc0a8 + "]"));
+ if (_0x359dc7 <= 4) break;
+ } else this.log("请求[" + _0x4dd0e7 + "]错误[" + _0x16d92d + "][" + _0x3dc0a8 + "]");
+ }
+ }
+ }
+ }
}
- } catch (_0xa3ad4) {
- _0xa3ad4.name == "TimeoutError" ? this.log("[" + _0x1684d3 + "]请求超时,重试第" + _0x3a35d0 + "次") : this.log("[" + _0x1684d3 + "]请求错误(" + _0xa3ad4.message + "),重试第" + _0x3a35d0 + "次");
+ }
+ } catch (_0x1b27b0) {
+ _0x1b27b0.name == "rorrEtuoemiT".split("").reverse().join("") ? this.log("[" + _0x4dd0e7 + "第试重,时超求请]".split("").reverse().join("") + _0x3192a9 + "次") : this.log("[" + _0x4dd0e7 + "(误错求请]".split("").reverse().join("") + _0x1b27b0.message + "第试重,)".split("").reverse().join("") + _0x3192a9 + "次");
}
+ }
+ const _0x5c5b0c = {
+ "statusCode": _0x16d92d || -1,
+ "headers": null,
+ "result": null
+ };
+ if (_0x1983cd == null) return Promise.resolve(_0x5c5b0c);
+ let {
+ "statusCode": _0x253af7,
+ "headers": _0x40c367,
+ "body": _0x2369c1
+ } = _0x1983cd;
+ if (_0x2369c1) try {
+ _0x2369c1 = JSON.parse(_0x2369c1);
+ } catch {}
+ const _0x2fc606 = {
+ "statusCode": _0x253af7,
+ "headers": _0x40c367,
+ "result": _0x2369c1
+ };
+ return Promise.resolve(_0x2fc606);
}
- const _0x14f89a = {
- statusCode: _0x19ce7b || -1,
- headers: null,
- result: null
- };
- if (_0x208a74 == null) {
- return Promise.resolve(_0x14f89a);
+ }
+ }
+ let _0x2ecb9a = _0x252e78;
+ try {
+ let _0x345d48 = require("./LocalBasic");
+ _0x2ecb9a = _0x345d48;
+ } catch {}
+ let _0x42ec34 = new _0x2ecb9a(_0x1a907b);
+ class _0x173a90 extends _0x2ecb9a {
+ constructor(_0x8df40d) {
+ {
+ super(_0x1a907b);
+ let _0x547fe0 = _0x8df40d.split("#");
+ this.name = _0x547fe0[0];
+ this.passwd = _0x547fe0?.[1] || "";
+ this.uuid = [_0x1a907b.randomPattern("xxxxxxxx"), _0x1a907b.randomPattern("xxxx"), _0x1a907b.randomPattern("xxx4".split("").reverse().join("")), _0x1a907b.randomPattern("xxxx"), _0x1a907b.randomPattern("xxxxxxxxxxxx".split("").reverse().join(""))];
+ this.can_feed = true;
+ this.jml_tokenFlag = "";
+ this.mall_token = "";
+ const _0x25e486 = {
+ "Connection": "keep-alive",
+ "User-Agent": _0x932305,
+ "123456789": "987654321"
+ };
}
- let {
- statusCode: _0x4f50c8,
- headers: _0x4fdc35,
- body: _0x4bfa21
- } = _0x208a74;
- if (_0x4bfa21) {
- try {
- _0x4bfa21 = JSON.parse(_0x4bfa21);
- } catch { }
+ }
+ ["load_token"]() {
+ {
+ let _0x40ebac = false;
+ _0x4f8ac1[this.name] && (this.userId = _0x4f8ac1[this.name].userId, this.token = _0x4f8ac1[this.name].token, this.log("nekot存缓到取读".split("").reverse().join("")), _0x40ebac = true);
+ return _0x40ebac;
}
- const _0x5d1199 = {
- statusCode: _0x4f50c8,
- headers: _0x4fdc35,
- result: _0x4bfa21
- };
- return Promise.resolve(_0x5d1199);
- }
-}
-let _0x280825 = _0x9d1851;
-try {
- let _0x236d58 = require("./LocalBasic");
- _0x280825 = _0x236d58;
-} catch { }
-let _0x3b1630 = new _0x280825(_0x49dfef);
-class _0x3f433d extends _0x280825 {
- constructor(_0x5669ce) {
- super(_0x49dfef);
- let _0x28f602 = _0x5669ce.split("#");
- this.name = _0x28f602[0];
- this.passwd = _0x28f602?.[1] || "";
- this.uuid = [_0x49dfef.randomPattern("xxxxxxxx"), _0x49dfef.randomPattern("xxxx"), _0x49dfef.randomPattern("4xxx"), _0x49dfef.randomPattern("xxxx"), _0x49dfef.randomPattern("xxxxxxxxxxxx")];
- this.cookieJar = new _0x4f58d7();
- this.can_feed = true;
- this.jml_tokenFlag = "";
- this.mall_token = "";
- const _0x1effd8 = {
- Connection: "keep-alive",
- "User-Agent": _0x3ed712
- };
- this.got = this.got.extend({
- cookieJar: this.cookieJar,
- headers: _0x1effd8
- });
- }
- load_token() {
- let _0x2f4a66 = false;
- _0x1d3d6d[this.name] && (this.userId = _0x1d3d6d[this.name].userId, this.token = _0x1d3d6d[this.name].token, this.log("读取到缓存token"), _0x2f4a66 = true);
- return _0x2f4a66;
- }
- encode_phone() {
- let _0xd2389f = this.name.split("");
- for (let _0x51660a in _0xd2389f) {
- _0xd2389f[_0x51660a] = String.fromCharCode(_0xd2389f[_0x51660a].charCodeAt(0) + 2);
+ }
+ ["encode_phone"]() {
+ let _0x5c8413 = this.name.split("");
+ for (let _0x4fd72e in _0x5c8413) {
+ _0x5c8413[_0x4fd72e] = String.fromCharCode(_0x5c8413[_0x4fd72e].charCodeAt(0) + 2);
}
- return _0xd2389f.join("");
- }
- encode_aes(_0x53e9bb) {
- return _0x1519a6("AES", "ECB", "Pkcs7", _0x53e9bb, _0x75a069, 0);
- }
- get_mall_headers() {
+ return _0x5c8413.join("");
+ }
+ ["encode_aes"](_0x3613e9) {
+ return _0x164663("SEA".split("").reverse().join(""), "ECB", "Pkcs7", _0x3613e9, _0x49b65a, 0);
+ }
+ ["get_mall_headers"]() {
return {
- "Content-Type": "application/json;charset=utf-8",
- Accept: "application/json, text/javascript, */*; q=0.01",
- Authorization: this.mall_token ? "Bearer " + this.mall_token : "",
- "X-Requested-With": "XMLHttpRequest"
+ "Content-Type": "application/json;charset=utf-8",
+ "Accept": "application/json, text/javascript, */*; q=0.01",
+ "Authorization": this.mall_token ? "Bearer " + this.mall_token : "",
+ "X-Requested-With": "XMLHttpRequest"
};
- }
- async login(_0x2971d3 = {}) {
- let _0x22cd07 = false;
- try {
- let _0x3ae9d0 = _0x49dfef.time("yyyyMMddhhmmss");
- let _0x16bc9b = "iPhone 14 15.4." + this.uuid.slice(0, 2).join("") + this.name + _0x3ae9d0 + this.passwd + "0$$$0.";
- let _0x807c6e = {
- fn: "login",
- method: "post",
- url: "https://appgologin.189.cn:9031/login/client/userLoginNormal",
- json: {
- headerInfos: {
- code: "userLoginNormal",
- timestamp: _0x3ae9d0,
- broadAccount: "",
- broadToken: "",
- clientType: "#9.6.1#channel50#iPhone 14 Pro Max#",
- shopId: "20002",
- source: "110003",
- sourcePassword: "Sid98s",
- token: "",
- userLoginName: this.name
- },
- content: {
- attach: "test",
- fieldData: {
- loginType: "4",
- accountType: "",
- loginAuthCipherAsymmertric: _0x13a631.encrypt(_0x16bc9b, "base64"),
- deviceUid: this.uuid.slice(0, 3).join(""),
- phoneNum: this.encode_phone(),
- isChinatelecom: "0",
- systemVersion: "15.4.0",
- authentication: this.passwd
- }
+ }
+ async ["rsCk"](_0x17c90e, _0x2ba627) {
+ {
+ const _0x240960 = await rs(_0x17c90e, _0x2ba627);
+ console.log(_0x240960);
+ }
+ }
+ async ["login"](_0x5d1438 = {}) {
+ {
+ let _0x440c66 = false;
+ try {
+ let _0x57e9cb = _0x1a907b.time("yyyyMMddhhmmss"),
+ _0x1d01a9 = "iPhone 14 15.4." + this.uuid.slice(0, 2).join("") + this.name + _0x57e9cb + this.passwd + "0$$$0.",
+ _0x2f95b7 = {
+ "fn": "login",
+ "method": "post",
+ "url": "https://appgologin.189.cn:9031/login/client/userLoginNormal",
+ "json": {
+ "headerInfos": {
+ "code": "userLoginNormal",
+ "timestamp": _0x57e9cb,
+ "broadAccount": "",
+ "broadToken": "",
+ "clientType": "#9.6.1#channel50#iPhone 14 Pro Max#",
+ "shopId": "20002",
+ "source": "110003",
+ "sourcePassword": "Sid98s",
+ "token": "",
+ "userLoginName": this.name
+ },
+ "content": {
+ "attach": "test",
+ "fieldData": {
+ "loginType": "4",
+ "accountType": "",
+ "loginAuthCipherAsymmertric": _0x253d66.encrypt(_0x1d01a9, "46esab".split("").reverse().join("")),
+ "deviceUid": this.uuid.slice(0, 3).join(""),
+ "phoneNum": this.encode_phone(),
+ "isChinatelecom": "0",
+ "systemVersion": "15.4.0",
+ "authentication": this.passwd
}
+ }
}
- };
-
- let {
- result: _0x3cbd6a,
- statusCode: _0x4338ff
- } = await this.request(_0x807c6e);
- let _0x107431 = _0x49dfef.get(_0x3cbd6a?.["responseData"], "resultCode", -1);
- if (_0x107431 == "0000") {
+ },
+ {
+ "result": _0x544bd4,
+ "statusCode": _0x16ceb3
+ } = await this.request(_0x2f95b7),
+ _0x166f37 = _0x1a907b.get(_0x544bd4?.["ataDesnopser".split("").reverse().join("")], "resultCode", -1);
+ if (_0x166f37 == "0000") {
+ {
let {
- userId = "",
- token = ""
- } = _0x3cbd6a?.["responseData"]?.["data"]?.["loginSuccessResult"] || {};
- this.userId = userId;
- this.token = token;
- this.log("使用服务密码登录成功");
- _0x1d3d6d[this.name] = {
- token: token,
- userId: userId,
- t: Date.now()
+ "userId": _0x3484c5 = "",
+ "token": _0x249f1a = ""
+ } = _0x544bd4?.["ataDesnopser".split("").reverse().join("")]?.["data"]?.["loginSuccessResult"] || {};
+ this.userId = _0x3484c5;
+ this.token = _0x249f1a;
+ this.log("功成录登码密务服用使".split("").reverse().join(""));
+ _0x4f8ac1[this.name] = {
+ "token": _0x249f1a,
+ "userId": _0x3484c5,
+ "t": Date.now()
};
- _0x4e4355();
- _0x22cd07 = true;
+ _0x592882();
+ _0x440c66 = true;
+ }
} else {
- let _0xf8ba30 = _0x3cbd6a?.["msg"] || _0x3cbd6a?.["responseData"]?.["resultDesc"] || _0x3cbd6a?.["headerInfos"]?.["reason"] || "";
- this.log("服务密码登录失败[" + _0x107431 + "]: " + _0xf8ba30);
+ {
+ let _0x5807dc = _0x544bd4?.["gsm".split("").reverse().join("")] || _0x544bd4?.["responseData"]?.["cseDtluser".split("").reverse().join("")] || _0x544bd4?.["headerInfos"]?.["nosaer".split("").reverse().join("")] || "";
+ this.log("服务密码登录失败[" + _0x166f37 + " :]".split("").reverse().join("") + _0x5807dc);
+ }
}
- } catch (_0x576f6c) {
- console.log(_0x576f6c);
- } finally {
- return _0x22cd07;
+ } catch (_0x143d05) {
+ console.log(_0x143d05);
+ } finally {
+ return _0x440c66;
+ }
}
- }
- async get_ticket(_0x3e5067 = {}) {
- let _0x252ee2 = "";
+ }
+ async ["get_ticket"](_0x3407e5 = {}) {
+ let _0x3dbd0c = "";
try {
- let _0x21dd20 = "\n \n \n getSingle\n " + _0x49dfef.time("yyyyMMddhhmmss") + "\n \n \n #9.6.1#channel50#iPhone 14 Pro Max#\n 20002\n 110003\n Sid98s\n " + this.token + "\n " + this.name + "\n \n \n test\n \n " + _0x1519a6("TripleDES", "CBC", "Pkcs7", this.userId, _0x2304b1, _0x1110eb) + "\n 4a6862274835b451\n \n \n ";
- let _0x2990d1 = {
- fn: "get_ticket",
- method: "post",
- url: "https://appgologin.189.cn:9031/map/clientXML",
- body: _0x21dd20
+ {
+ let _0x44f191 = "\n \n \n getSingle\n " + _0x1a907b.time("yyyyMMddhhmmss") + ">nekoT< \n>drowssaPecruoS/drowssaPecruoS< \n>ecruoS/<300011>ecruoS< \n>dIpohS/<20002>dIpohS< \n>epyTtneilC/<#xaM orP 41 enohPi#05lennahc#1.6.9#>epyTtneilC< \n>nekoTdaorB/<>nekoTdaorB< \n>tnuoccAdaorB/<>tnuoccAdaorB< \n>pmatsemiT/<".split("").reverse().join("") + this.token + "\n " + this.name + "\n \n \n test\n \n " + _0x164663("TripleDES", "CBC", "7sckP".split("").reverse().join(""), this.userId, _0x53d03f, _0x36ee2c) + ">tseuqeR/< \n>tnetnoC/< \n>ataDdleiF/< \n>lrU/<154b5384722686a4>lrU< \n>dItegraT/<".split("").reverse().join("");
+ const _0x425216 = {
+ "fn": "get_ticket",
+ "method": "post",
+ "url": "https://appgologin.189.cn:9031/map/clientXML",
+ "body": _0x44f191
};
let {
- result: _0x9f4220,
- statusCode: _0x1e891f
- } = await this.request(_0x2990d1);
- if (_0x9f4220) {
- let _0x18f397 = _0x9f4220.match(/\(\w+)\<\/Ticket\>/);
- if (_0x18f397) {
- let _0x2c4653 = _0x18f397[1];
- _0x252ee2 = _0x436a1e("TripleDES", "CBC", "Pkcs7", _0x2c4653, _0x2304b1, _0x1110eb);
- this.ticket = _0x252ee2;
- }
+ "result": _0x4d1ded,
+ "statusCode": _0x61cf7a
+ } = await this.request(_0x425216);
+ if (_0x4d1ded) {
+ let _0x1c2c31 = _0x4d1ded.match(new RegExp(">\\tekciT/\\<\\)+w\\(>\\tekciT<\\".split("").reverse().join(""), ""));
+ if (_0x1c2c31) {
+ let _0x2b9602 = _0x1c2c31[1];
+ _0x3dbd0c = _0x134cec("SEDelpirT".split("").reverse().join(""), "CBC", "Pkcs7", _0x2b9602, _0x53d03f, _0x36ee2c);
+ this.ticket = _0x3dbd0c;
+ }
}
- !_0x252ee2 && (!_0x3e5067.retry && (await this.login()) ? (_0x3e5067.retry = true, _0x252ee2 = await this.get_ticket(_0x3e5067)) : (this.log("没有获取到ticket[" + _0x1e891f + "]: "), _0x9f4220 && this.log(": " + JSON.stringify(_0x9f4220))));
- } catch (_0x1c9e54) {
- console.log(_0x1c9e54);
+ !_0x3dbd0c && (!_0x3407e5.retry && (await this.login()) ? (_0x3407e5.retry = true, _0x3dbd0c = await this.get_ticket(_0x3407e5)) : (this.log("没有获取到ticket[" + _0x61cf7a + "]: "), _0x4d1ded && this.log(" :".split("").reverse().join("") + JSON.stringify(_0x4d1ded))));
+ }
+ } catch (_0x47f1aa) {
+ console.log(_0x47f1aa);
} finally {
- return _0x252ee2;
+ return _0x3dbd0c;
}
- }
- async get_sign(_0x9b96be = {}) {
-
- let _0x10c0cb = false;
+ }
+ async ["get_sign"](_0x1ed70f = {}) {
+ var _0x5f50b2 = 12;
+ let _0x1cb2f1 = this.rsCkk;
+ _0x5f50b2 = "ejjogf";
+ let _0x2d6db1 = false;
try {
- const _0x59fe75 = {
- ticket: this.ticket
+ const _0xc6d6af = {
+ "ticket": this.ticket
+ },
+ _0x438f3f = {
+ "ckvalue": _0x1cb2f1,
+ "fn": "login",
+ "method": "get",
+ "url": "https://wapside.189.cn:9001/jt-sign/ssoHomLogin",
+ "searchParams": _0xc6d6af
};
- let _0x269bf2 = {
- fn: "login",
- method: "get",
- url: "https://wapside.189.cn:9001/jt-sign/ssoHomLogin",
-
- searchParams: _0x59fe75
+ let {
+ "result": _0x48a0a2,
+ "statusCode": _0x44aa12
+ } = await this.request(_0x438f3f),
+ _0x22cc7a = _0x1a907b.get(_0x48a0a2, "resoultCode", _0x44aa12);
+ _0x22cc7a == 0 ? (_0x2d6db1 = _0x48a0a2?.["ngis".split("").reverse().join("")], this.sign = _0x2d6db1, this.got = this.got.extend({
+ "headers": {
+ "sign": this.sign
+ }
+ })) : this.log("[败失ngis取获".split("").reverse().join("") + _0x22cc7a + "]: " + _0x48a0a2);
+ } catch (_0x15ece2) {
+ console.log(_0x15ece2);
+ } finally {
+ return _0x2d6db1;
+ }
+ }
+ async ["get_rsValue"](_0x293dc9 = {}) {
+ {
+ let _0x1bf8ad,
+ _0x494487 = false;
+ _0x1bf8ad = "dginpe".split("").reverse().join("");
+ try {
+ const _0xc2eba5 = {
+ "fn": "login",
+ "method": "get",
+ "url": _0x293dc9
};
let {
- result: _0x36bbb6,
- statusCode: _0x3a8945
- } = await this.request(_0x269bf2);
- let _0xe3542d = _0x49dfef.get(_0x36bbb6, "resoultCode", _0x3a8945);
- _0xe3542d == 0 ? (_0x10c0cb = _0x36bbb6?.["sign"], this.sign = _0x10c0cb, this.got = this.got.extend({
- headers: {
- sign: this.sign
- }
- })) : this.log("获取sign失败[" + _0xe3542d + "]: " + _0x36bbb6);
-
- } catch (_0x44161f) {
- console.log(_0x44161f);
- } finally {
- return _0x10c0cb;
- }
- }
- encrypt_para(_0x217db5) {
- let _0x1c768f = typeof _0x217db5 == "string" ? _0x217db5 : JSON.stringify(_0x217db5);
- return _0x47bb4b.encrypt(_0x1c768f, "hex");
- }
- async userCoinInfo(_0x3a27b0 = false, _0x2a9f2e = {}) {
-
- try {
- let _0x12feeb = {
- phone: this.name
- };
- let _0x55424b = {
- fn: "userCoinInfo",
- method: "post",
- url: "https://wapside.189.cn:9001/jt-sign/api/home/userCoinInfo",
- json: {
- para: this.encrypt_para(_0x12feeb)
- }
+ "result": _0x10ffd4,
+ "statusCode": _0x58dbfc,
+ "headers": _0x45a4fc
+ } = await this.request(_0xc2eba5);
+ const {
+ "contentCODE": _0x32104d,
+ "tsCODE": _0x204130,
+ "srcAttribute": _0x34e10d,
+ "tsID": _0x48a003
+ } = _0x1a907b.get(_0x10ffd4, "resoultCode", _0x58dbfc);
+ var _0x5711e3 = 14;
+ const _0x4a2e01 = {
+ "fn": "getrs",
+ "method": "get",
+ "url": "https://wapside.189.cn:9001" + _0x34e10d
};
+ _0x5711e3 = 8;
let {
- result: _0x18ad00,
- statusCode: _0x3e695c
- } = await this.request(_0x55424b);
- let _0x474131 = _0x49dfef.get(_0x18ad00, "resoultCode", _0x3e695c);
-
- if (_0x474131 == 0) {
- this.coin = _0x18ad00?.["totalCoin"] || 0;
- if (_0x3a27b0) {
- const _0x3a5985 = {
- notify: true
- };
- this.log("金豆余额: " + this.coin, _0x3a5985);
- if (_0x18ad00.amountEx) {
- let _0x5b7bde = _0x49dfef.time("yyyy-MM-dd", _0x18ad00.expireDate);
- const _0x359049 = {
- notify: true
- };
- _0x49dfef.log("-- [" + _0x5b7bde + "]将过期" + _0x18ad00.amountEx + "金豆", _0x359049);
+ "result": _0x117052,
+ "statusCode": _0x316dce
+ } = await this.request(_0x4a2e01);
+ var _0x7c56cc = 3;
+ let _0x13bf8e = "";
+ _0x7c56cc = 0;
+ if (_0x45a4fc && _0x45a4fc["set-cookie"]) {
+ const _0x5e227b = _0x45a4fc["set-cookie"];
+ Array.isArray(_0x5e227b) && (_0x13bf8e = _0x5e227b.map(_0x13a5c4 => _0x13a5c4.split(";")[0]).join("; "));
+ }
+ this.get_rscode(_0x32104d, _0x204130, _0x117052, _0x48a003);
+ this.rsCkk = _0x13bf8e;
+ } catch (_0x127d3f) {
+ console.log(_0x127d3f);
+ } finally {
+ return _0x494487;
+ }
+ }
+ }
+ async ["get_rs"](_0x95f64d = {}) {
+ ck = await rs();
+ console.log(ck);
+ }
+ ["encrypt_para"](_0x52a9fe) {
+ let _0x5c49d9 = typeof _0x52a9fe == "gnirts".split("").reverse().join("") ? _0x52a9fe : JSON.stringify(_0x52a9fe);
+ return _0x40e903.encrypt(_0x5c49d9, "xeh".split("").reverse().join(""));
+ }
+ async ["userCoinInfo"](_0x24b368 = false, _0x3ed9c1 = {}) {
+ var _0x5458f0 = 2;
+ let _0x2f5510 = this.rsCkk;
+ _0x5458f0 = 2;
+ var _0x171c9f = 8;
+ let _0x3eafc4 = this.getrsCk;
+ _0x171c9f = 2;
+ _0x3eafc4 = this.rsFun().getck();
+ _0x2f5510 = await this.parseCookies(_0x3eafc4, _0x2f5510);
+ try {
+ {
+ const _0xf92b01 = {
+ "phone": this.name
+ };
+ let _0x981fd5 = {
+ "ckvalue": _0x2f5510,
+ "fn": "userCoinInfo",
+ "method": "post",
+ "url": "https://wapside.189.cn:9001/jt-sign/api/home/userCoinInfo",
+ "json": {
+ "para": this.encrypt_para(_0xf92b01)
+ }
+ },
+ {
+ "result": _0x1ee9d7,
+ "statusCode": _0x405522
+ } = await this.request(_0x981fd5),
+ _0x590219 = _0x1a907b.get(_0x1ee9d7, "edoCtluoser".split("").reverse().join(""), _0x405522);
+ if (_0x590219 == 0) {
+ this.coin = _0x1ee9d7?.["totalCoin"] || 0;
+ if (_0x24b368) {
+ {
+ const _0x3adef5 = {
+ "notify": true
+ };
+ this.log("金豆余额: " + this.coin, _0x3adef5);
+ if (_0x1ee9d7.amountEx) {
+ {
+ let _0x3bf5ea = _0x1a907b.time("yyyy-MM-dd", _0x1ee9d7.expireDate);
+ const _0x441a4c = {
+ "notify": true
+ };
+ _0x1a907b.log("-- [" + _0x3bf5ea + "期过将]".split("").reverse().join("") + _0x1ee9d7.amountEx + "金豆", _0x441a4c);
}
+ }
}
+ }
} else {
- let _0x4e7123 = _0x18ad00?.["msg"] || _0x18ad00?.["resoultMsg"] || _0x18ad00?.["error"] || "";
- this.log("查询账户金豆余额错误[" + _0x474131 + "]: " + _0x4e7123);
+ let _0x1ad282 = _0x1ee9d7?.["msg"] || _0x1ee9d7?.["gsMtluoser".split("").reverse().join("")] || _0x1ee9d7?.["error"] || "";
+ this.log("查询账户金豆余额错误[" + _0x590219 + "]: " + _0x1ad282);
}
- } catch (_0x4d1b75) {
- console.log(_0x4d1b75);
+ }
+ } catch (_0xcf41e0) {
+ console.log(_0xcf41e0);
}
- }
- async userStatusInfo(_0x10c627 = {}) {
- try {
- let _0x219924 = {
- phone: this.name
+ }
+ async ["userStatusInfo"](_0x5dea2e = {}) {
+ {
+ var _0x38b7d4 = 7;
+ let _0x5b8aeb = this.rsCkk;
+ _0x38b7d4 = 7;
+ let _0x43091c = this.getrsCk;
+ _0x43091c = this.rsFun().getck();
+ _0x5b8aeb = await this.parseCookies(_0x43091c, _0x5b8aeb);
+ try {
+ const _0x31d8c6 = {
+ "phone": this.name
};
- let _0x16b897 = {
- fn: "userStatusInfo",
- method: "post",
- url: "https://wapside.189.cn:9001/jt-sign/api/home/userStatusInfo",
- json: {
- para: this.encrypt_para(_0x219924)
- }
+ let _0x360cee = {
+ "ckvalue": _0x5b8aeb,
+ "fn": "userStatusInfo",
+ "method": "post",
+ "url": "https://wapside.189.cn:9001/jt-sign/api/home/userStatusInfo",
+ "json": {
+ "para": this.encrypt_para(_0x31d8c6)
+ }
};
{
+ let {
+ "result": _0x29b4d0,
+ "statusCode": _0x593323
+ } = await this.request(_0x1a907b.copy(_0x360cee)),
+ _0x1d75ff = _0x1a907b.get(_0x29b4d0, "resoultCode", _0x593323);
+ if (_0x1d75ff == 0) {
let {
- result: _0x39cfe5,
- statusCode: _0x5e556e
- } = await this.request(_0x49dfef.copy(_0x16b897));
- let _0x509ab0 = _0x49dfef.get(_0x39cfe5, "resoultCode", _0x5e556e);
- if (_0x509ab0 == 0) {
- let {
- isSign: _0x1d403c
- } = _0x39cfe5?.["data"];
- _0x1d403c ? this.log("今天已签到") : await this.doSign();
- } else {
- let _0x11bda2 = _0x39cfe5?.["msg"] || _0x39cfe5?.["resoultMsg"] || _0x39cfe5?.["error"] || "";
- this.log("查询账户签到状态错误[" + _0x509ab0 + "]: " + _0x11bda2);
+ "isSign": _0x79ff71
+ } = _0x29b4d0?.["data"];
+ _0x79ff71 ? this.log("到签已天今".split("").reverse().join("")) : await this.doSign();
+ } else {
+ {
+ let _0x354719 = _0x29b4d0?.["msg"] || _0x29b4d0?.["resoultMsg"] || _0x29b4d0?.["rorre".split("").reverse().join("")] || "";
+ this.log("查询账户签到状态错误[" + _0x1d75ff + "]: " + _0x354719);
}
+ }
}
{
+ {
let {
- result: _0xf4c969,
- statusCode: _0x34b777
- } = await this.request(_0x49dfef.copy(_0x16b897));
- let _0x4d9c85 = _0x49dfef.get(_0xf4c969, "resoultCode", _0x34b777);
- if (_0x4d9c85 == 0) {
- let {
- continuousDay: _0x33365d,
- signDay: _0x128cf2,
- isSeven: _0x3fa455
- } = _0xf4c969?.["data"];
- this.log("已签到" + _0x128cf2 + "天, 连签" + _0x33365d + "天");
- _0x3fa455 && (await this.exchangePrize());
+ "result": _0xa88b12,
+ "statusCode": _0x4030ee
+ } = await this.request(_0x1a907b.copy(_0x360cee)),
+ _0x5beae4 = _0x1a907b.get(_0xa88b12, "edoCtluoser".split("").reverse().join(""), _0x4030ee);
+ if (_0x5beae4 == 0) {
+ let {
+ "continuousDay": _0x2871e0,
+ "signDay": _0x972416,
+ "isSeven": _0x1869b5
+ } = _0xa88b12?.["data"];
+ this.log("到签已".split("").reverse().join("") + _0x972416 + "天, 连签" + _0x2871e0 + "天");
+ _0x1869b5 && (await this.exchangePrize());
} else {
- let _0xc36b81 = _0xf4c969?.["msg"] || _0xf4c969?.["resoultMsg"] || _0xf4c969?.["error"] || "";
- this.log("查询账户签到状态错误[" + _0x4d9c85 + "]: " + _0xc36b81);
+ let _0x113594 = _0xa88b12?.["msg"] || _0xa88b12?.["resoultMsg"] || _0xa88b12?.["error"] || "";
+ this.log("查询账户签到状态错误[" + _0x5beae4 + " :]".split("").reverse().join("") + _0x113594);
}
+ }
}
- } catch (_0x103f04) {
- console.log(_0x103f04);
+ } catch (_0x5a3227) {
+ console.log(_0x5a3227);
+ }
}
- }
- async continueSignDays(_0x3e553e = {}) {
- try {
- let _0x124dfb = {
- phone: this.name
+ }
+ async ["continueSignDays"](_0x420f05 = {}) {
+ {
+ let _0x4b17f = this.rsCkk,
+ _0x254853 = this.getrsCk;
+ _0x254853 = this.rsFun().getck();
+ _0x4b17f = await this.parseCookies(_0x254853, _0x4b17f);
+ try {
+ const _0x219e1a = {
+ "phone": this.name
};
- let _0x215fff = {
- fn: "continueSignDays",
- method: "post",
- url: "https://wapside.189.cn:9001/jt-sign/webSign/continueSignDays",
- json: {
- para: this.encrypt_para(_0x124dfb)
+ let _0x250b6a = {
+ "ckvalue": _0x4b17f,
+ "fn": "continueSignDays",
+ "method": "post",
+ "url": "https://wapside.189.cn:9001/jt-sign/webSign/continueSignDays",
+ "json": {
+ "para": this.encrypt_para(_0x219e1a)
}
- };
- let {
- result: _0x6e6187,
- statusCode: _0x257d59
- } = await this.request(_0x215fff);
- let _0x912371 = _0x49dfef.get(_0x6e6187, "resoultCode", _0x257d59);
- if (_0x912371 == 0) {
- this.log("抽奖连签天数: " + (_0x6e6187?.["continueSignDays"] || 0) + "天");
- if (_0x6e6187?.["continueSignDays"] == 15) {
- const _0x207b02 = {
- type: "15"
- };
- await this.exchangePrize(_0x207b02);
+ },
+ {
+ "result": _0x2141a4,
+ "statusCode": _0x56a2fc
+ } = await this.request(_0x250b6a),
+ _0x5bfa03 = _0x1a907b.get(_0x2141a4, "resoultCode", _0x56a2fc);
+ if (_0x5bfa03 == 0) {
+ {
+ this.log("抽奖连签天数: " + (_0x2141a4?.["continueSignDays"] || 0) + "天");
+ if (_0x2141a4?.["continueSignDays"] == 15) {
+ const _0x119e49 = {
+ "type": "15"
+ };
+ await this.exchangePrize(_0x119e49);
} else {
- if (_0x6e6187?.["continueSignDays"] == 28) {
- const _0x1f691c = {
- type: "28"
- };
- await this.exchangePrize(_0x1f691c);
- }
- }
- } else {
- let _0x311a52 = _0x6e6187?.["msg"] || _0x6e6187?.["resoultMsg"] || _0x6e6187?.["error"] || "";
- this.log("查询抽奖连签天数错误[" + _0x912371 + "]: " + _0x311a52);
- }
- } catch (_0xfe7972) {
- console.log(_0xfe7972);
- }
- }
- async continueSignRecords(_0x716c04 = {}) {
- try {
- let _0x353f90 = {
- phone: this.name
- };
- let _0x3db199 = {
- fn: "continueSignRecords",
- method: "post",
- url: "https://wapside.189.cn:9001/jt-sign/webSign/continueSignRecords",
- json: {
- para: this.encrypt_para(_0x353f90)
- }
- };
- let {
- result: _0xcdce9f,
- statusCode: _0x167568
- } = await this.request(_0x3db199);
- let _0xd160b5 = _0x49dfef.get(_0xcdce9f, "resoultCode", _0x167568);
- if (_0xd160b5 == 0) {
- if (_0xcdce9f?.["continue15List"]?.["length"]) {
- const _0x4ddf3a = {
- type: "15"
+ if (_0x2141a4?.["continueSignDays"] == 28) {
+ const _0x27728a = {
+ "type": "28"
};
- await this.exchangePrize(_0x4ddf3a);
- }
- if (_0xcdce9f?.["continue28List"]?.["length"]) {
- const _0x24d413 = {
- type: "28"
- };
- await this.exchangePrize(_0x24d413);
+ await this.exchangePrize(_0x27728a);
+ }
}
+ }
} else {
- let _0xa1a8c7 = _0xcdce9f?.["msg"] || _0xcdce9f?.["resoultMsg"] || _0xcdce9f?.["error"] || "";
- this.log("查询连签抽奖状态错误[" + _0xd160b5 + "]: " + _0xa1a8c7);
+ {
+ let _0x581494 = _0x2141a4?.["msg"] || _0x2141a4?.["resoultMsg"] || _0x2141a4?.["rorre".split("").reverse().join("")] || "";
+ this.log("[误错数天签连奖抽询查".split("").reverse().join("") + _0x5bfa03 + "]: " + _0x581494);
+ }
}
- } catch (_0x696f49) {
- console.log(_0x696f49);
+ } catch (_0x5473b9) {
+ console.log(_0x5473b9);
+ }
}
- }
- async doSign(_0x3d1e97 = {}) {
- try {
- let _0x2c6ae2 = {
- phone: this.name,
- date: Date.now(),
- sysType: "20002"
- };
- let _0x32b4a2 = {
- fn: "doSign",
- method: "post",
- url: "https://wapside.189.cn:9001/jt-sign/webSign/sign",
- json: {
- encode: this.encode_aes(JSON.stringify(_0x2c6ae2))
- }
- };
- let {
- result: _0x4a380a,
- statusCode: _0x39f295
- } = await this.request(_0x32b4a2);
- let _0x66dfe4 = _0x49dfef.get(_0x4a380a, "resoultCode", _0x39f295);
- if (_0x66dfe4 == 0) {
- let _0x3199d0 = _0x49dfef.get(_0x4a380a?.["data"], "code", -1);
- if (_0x3199d0 == 1) {
- const _0x241cc1 = {
- notify: true
- };
- this.log("签到成功,获得" + (_0x4a380a?.["data"]?.["coin"] || 0) + "金豆", _0x241cc1);
- await this.userStatusInfo();
- } else {
- const _0x16b3bf = {
- notify: true
- };
- this.log("签到失败[" + _0x3199d0 + "]: " + _0x4a380a.data.msg, _0x16b3bf);
- }
- } else {
- let _0x48eddc = _0x4a380a?.["msg"] || _0x4a380a?.["resoultMsg"] || _0x4a380a?.["error"] || "";
- this.log("签到错误[" + _0x66dfe4 + "]: " + _0x48eddc);
- }
- } catch (_0x3c07a4) {
- console.log(_0x3c07a4);
- }
- }
- async exchangePrize(_0x503199 = {}) {
- try {
- let _0x15d8af = _0x49dfef.pop(_0x503199, "type", "7");
- let _0x2a4555 = {
- phone: this.name,
- type: _0x15d8af
- };
- let _0x275dee = {
- fn: "exchangePrize",
- method: "post",
- url: "https://wapside.189.cn:9001/jt-sign/webSign/exchangePrize",
- json: {
- para: this.encrypt_para(_0x2a4555)
- }
- };
- let {
- result: _0x122edb,
- statusCode: _0x7493f8
- } = await this.request(_0x275dee);
- let _0x32ecff = _0x49dfef.get(_0x122edb, "resoultCode", _0x7493f8);
- if (_0x32ecff == 0) {
- let _0xfbfebb = _0x49dfef.get(_0x122edb?.["prizeDetail"], "code", -1);
- if (_0xfbfebb == 0) {
- const _0x51aac0 = {
- notify: true
- };
- this.log("连签" + _0x15d8af + "天抽奖: " + _0x122edb?.["prizeDetail"]?.["biz"]?.["winTitle"], _0x51aac0);
- } else {
- let _0x36ea79 = _0x122edb?.["prizeDetail"]?.["err"] || "";
- const _0x513b8a = {
- notify: true
- };
- this.log("连签" + _0x15d8af + "天抽奖失败[" + _0xfbfebb + "]: " + _0x36ea79, _0x513b8a);
- }
- } else {
- let _0x2f0e88 = _0x122edb?.["msg"] || _0x122edb?.["resoultMsg"] || _0x122edb?.["error"] || "";
- this.log("连签" + _0x15d8af + "天抽奖错误[" + _0x32ecff + "]: " + _0x2f0e88);
- }
- } catch (_0x57662f) {
- console.log(_0x57662f);
- }
- }
- async homepage(_0x5a7e8f, _0x26d9a1 = {}) {
- try {
- let _0x60744a = {
- phone: this.name,
- shopId: "20001",
- type: _0x5a7e8f
- };
- let _0x5a9f66 = {
- fn: "homepage",
- method: "post",
- url: "https://wapside.189.cn:9001/jt-sign/webSign/homepage",
- json: {
- para: this.encrypt_para(_0x60744a)
- }
- };
- let {
- result: _0x3462ae,
- statusCode: _0x17c9d0
- } = await this.request(_0x5a9f66);
- let _0x59fe3c = _0x49dfef.get(_0x3462ae, "resoultCode", _0x17c9d0);
- if (_0x59fe3c == 0) {
- let _0x52a59b = _0x49dfef.get(_0x3462ae?.["data"]?.["head"], "code", -1);
- if (_0x52a59b == 0) {
- for (let _0x3e6107 of _0x3462ae?.["data"]?.["biz"]?.["adItems"] || []) {
- let _0x27e7ab = _0x3e6107.title;
- if (["0", "1"].includes(_0x3e6107?.["taskState"])) {
- switch (_0x3e6107.contentOne) {
- case "3":
- {
- if (_0x3e6107?.["rewardId"]) {
- await this.receiveReward(_0x3e6107);
- }
- break;
- }
- case "5":
- {
- await this.openMsg(_0x3e6107);
- break;
- }
- case "6":
- {
- await this.sharingGetGold();
- break;
- }
- case "10":
- case "13":
- {
- if (!this.xtoken) {
- await this.get_usercode();
- }
- this.xtoken && (await this.watchLiveInit());
- break;
- }
- case "18":
- {
- await this.polymerize(_0x3e6107);
- break;
- }
- default:
- {
- break;
- }
- }
- }
- }
- } else {
- let _0xf9bca1 = _0x3462ae?.["data"]?.["head"]?.["err"] || "";
- this.log("获取任务列表失败[" + _0x52a59b + "]: " + _0xf9bca1);
- }
- } else {
- this.log("获取任务列表错误[" + _0x59fe3c + "]");
- }
- } catch (_0x1713d1) {
- console.log(_0x1713d1);
- }
- }
- async receiveReward(_0x1f06a0, _0x27d046 = {}) {
- try {
- let _0x408e82 = _0x1f06a0?.["title"]?.["split"](" ")?.[0];
- let _0x12889d = {
- phone: this.name,
- rewardId: _0x1f06a0?.["rewardId"] || ""
- };
- let _0x4db2f8 = {
- fn: "receiveReward",
- method: "post",
- url: "https://wapside.189.cn:9001/jt-sign/paradise/receiveReward",
- json: {
- para: this.encrypt_para(_0x12889d)
- }
- };
- let {
- result: _0x514940,
- statusCode: _0x5641f8
- } = await this.request(_0x4db2f8);
- let _0x1559d6 = _0x49dfef.get(_0x514940, "resoultCode", _0x5641f8);
- if (_0x1559d6 == 0) {
- this.log("领取任务[" + _0x408e82 + "]奖励成功: " + _0x514940?.["resoultMsg"]);
- } else {
- let _0xa69dbc = _0x514940?.["msg"] || _0x514940?.["resoultMsg"] || _0x514940?.["error"] || "";
- this.log("领取任务[" + _0x408e82 + "]奖励错误[" + _0x1559d6 + "]: " + _0xa69dbc);
- }
- } catch (_0x2a40e0) {
- console.log(_0x2a40e0);
- }
- }
- async openMsg(_0x51c539, _0x46c92d = {}) {
- try {
- let _0x4b897b = _0x51c539?.["title"]?.["split"](" ")?.[0];
- let _0x18e652 = {
- phone: this.name
- };
- let _0x1c217b = {
- fn: "openMsg",
- method: "post",
- url: "https://wapside.189.cn:9001/jt-sign/paradise/openMsg",
- json: {
- para: this.encrypt_para(_0x18e652)
- }
- };
- let {
- result: _0xb6f7bf,
- statusCode: _0x41e108
- } = await this.request(_0x1c217b);
- let _0x1377ff = _0x49dfef.get(_0xb6f7bf, "resoultCode", _0x41e108);
- if (_0x1377ff == 0) {
- this.log("完成任务[" + _0x4b897b + "]成功: " + _0xb6f7bf?.["resoultMsg"]);
- } else {
- let _0x59d65d = _0xb6f7bf?.["msg"] || _0xb6f7bf?.["resoultMsg"] || _0xb6f7bf?.["error"] || "";
- this.log("完成任务[" + _0x4b897b + "]错误[" + _0x1377ff + "]: " + _0x59d65d);
- }
- } catch (_0x574cb0) {
- console.log(_0x574cb0);
- }
- }
- async polymerize(_0x2beade, _0x3610fd = {}) {
- try {
- let _0x27bccc = _0x2beade?.["title"]?.["split"](" ")?.[0];
- let _0x2caf2f = {
- phone: this.name,
- jobId: _0x2beade.taskId
- };
- let _0x493039 = {
- fn: "polymerize",
- method: "post",
- url: "https://wapside.189.cn:9001/jt-sign/webSign/polymerize",
- json: {
- para: this.encrypt_para(_0x2caf2f)
- }
- };
- let {
- result: _0x2c3e91,
- statusCode: _0x3c5244
- } = await this.request(_0x493039);
- let _0x43d9c9 = _0x49dfef.get(_0x2c3e91, "resoultCode", _0x3c5244);
- if (_0x43d9c9 == 0) {
- this.log("完成任务[" + _0x27bccc + "]成功: " + _0x2c3e91?.["resoultMsg"]);
- } else {
- let _0x402f9a = _0x2c3e91?.["msg"] || _0x2c3e91?.["resoultMsg"] || _0x2c3e91?.["error"] || "";
- this.log("完成任务[" + _0x27bccc + "]错误[" + _0x43d9c9 + "]: " + _0x402f9a);
- }
- } catch (_0xc860ab) {
- console.log(_0xc860ab);
- }
- }
- async food(_0x7cbaa1, _0x4b0ab1 = {}) {
- try {
- let _0x5c6c6d = {
- phone: this.name
- };
- let _0x587fa4 = {
- fn: "food",
- method: "post",
- url: "https://wapside.189.cn:9001/jt-sign/paradise/food",
- json: {
- para: this.encrypt_para(_0x5c6c6d)
- }
- };
- let {
- result: _0x156b8d,
- statusCode: _0x191b9d
- } = await this.request(_0x587fa4);
- let _0x117b58 = _0x49dfef.get(_0x156b8d, "resoultCode", _0x191b9d);
- if (_0x117b58 == 0) {
- this.log("第" + _0x7cbaa1 + "次喂食: " + (_0x156b8d?.["resoultMsg"] || "成功"));
- if (_0x156b8d?.["levelUp"]) {
- let _0x265b8d = _0x156b8d?.["currLevelRightList"][0]?.["level"];
- const _0x2eec5b = {
- notify: true
- };
- this.log("宠物已升级到[LV." + _0x265b8d + "], 获得: " + _0x156b8d?.["currLevelRightList"][0]?.["righstName"], _0x2eec5b);
- }
- } else {
- let _0x14117b = _0x156b8d?.["msg"] || _0x156b8d?.["resoultMsg"] || _0x156b8d?.["error"] || "";
- this.log("第" + _0x7cbaa1 + "次喂食失败[" + _0x117b58 + "]: " + _0x14117b);
- _0x14117b?.["includes"]("最大喂食次数") && (this.can_feed = false);
- }
- } catch (_0x523284) {
- console.log(_0x523284);
- }
- }
- async getParadiseInfo(_0x4c16d3 = {}) {
- try {
- let _0x1c882e = {
- phone: this.name
- };
- let _0x2d8a6c = {
- fn: "getParadiseInfo",
- method: "post",
- url: "https://wapside.189.cn:9001/jt-sign/paradise/getParadiseInfo",
- json: {
- para: this.encrypt_para(_0x1c882e)
- }
- };
+ }
+ async ["continueSignRecords"](_0x56e506 = {}) {
+ {
+ let _0x10265a,
+ _0x3c00be = this.rsCkk;
+ _0x10265a = 5;
+ let _0x334d0c = this.getrsCk;
+ _0x334d0c = this.rsFun().getck();
+ _0x3c00be = await this.parseCookies(_0x334d0c, _0x3c00be);
+ try {
{
- let {
- result: _0x13b7df,
- statusCode: _0x1e6dfd
- } = await this.request(_0x2d8a6c);
- let _0x54514a = _0x49dfef.get(_0x13b7df, "resoultCode", _0x1e6dfd);
- if (_0x54514a == 0) {
- let _0xdb66c = _0x13b7df?.["userInfo"]?.["levelInfoMap"];
- this.level = _0xdb66c?.["level"];
- for (let _0x33d3a3 = 1; _0x33d3a3 <= 10 && this.can_feed; _0x33d3a3++) {
- await this.food(_0x33d3a3);
- }
- } else {
- let _0x4e4dd5 = _0x13b7df?.["msg"] || _0x13b7df?.["resoultMsg"] || _0x13b7df?.["error"] || "";
- this.log("查询宠物等级失败[" + _0x54514a + "]: " + _0x4e4dd5);
- return;
+ const _0x5df56a = {
+ "phone": this.name
+ };
+ let _0x43cd99 = {
+ "ckvalue": _0x3c00be,
+ "fn": "continueSignRecords",
+ "method": "post",
+ "url": "https://wapside.189.cn:9001/jt-sign/webSign/continueSignRecords",
+ "json": {
+ "para": this.encrypt_para(_0x5df56a)
+ }
+ },
+ {
+ "result": _0x359bd8,
+ "statusCode": _0xe30af6
+ } = await this.request(_0x43cd99),
+ _0x25608a = _0x1a907b.get(_0x359bd8, "edoCtluoser".split("").reverse().join(""), _0xe30af6);
+ if (_0x25608a == 0) {
+ if (_0x359bd8?.["tsiL51eunitnoc".split("").reverse().join("")]?.["htgnel".split("").reverse().join("")]) {
+ const _0x3bf060 = {
+ "type": "15"
+ };
+ await this.exchangePrize(_0x3bf060);
}
+ if (_0x359bd8?.["continue28List"]?.["htgnel".split("").reverse().join("")]) {
+ const _0x29bedf = {
+ "type": "28"
+ };
+ await this.exchangePrize(_0x29bedf);
+ }
+ } else {
+ {
+ let _0x534645 = _0x359bd8?.["msg"] || _0x359bd8?.["gsMtluoser".split("").reverse().join("")] || _0x359bd8?.["error"] || "";
+ this.log("查询连签抽奖状态错误[" + _0x25608a + "]: " + _0x534645);
+ }
+ }
}
+ } catch (_0x10aad9) {
+ console.log(_0x10aad9);
+ }
+ }
+ }
+ async ["doSign"](_0x4825b4 = {}) {
+ let _0x31122f = this.rsCkk;
+ var _0x2c67f2 = 8;
+ let _0x4217db = this.getrsCk;
+ _0x2c67f2 = 1;
+ _0x4217db = this.rsFun().getck();
+ _0x31122f = await this.parseCookies(_0x4217db, _0x31122f);
+ try {
+ let _0x218f39 = {
+ "phone": this.name,
+ "date": Date.now(),
+ "sysType": "20002"
+ },
+ _0x4662df = {
+ "ckvalue": _0x31122f,
+ "fn": "doSign",
+ "method": "post",
+ "url": "https://wapside.189.cn:9001/jt-sign/webSign/sign",
+ "json": {
+ "encode": this.encode_aes(JSON.stringify(_0x218f39))
+ }
+ },
{
- let {
- result: _0x1334dd,
- statusCode: _0x363378
- } = await this.request(_0x2d8a6c);
- let _0xf71230 = _0x49dfef.get(_0x1334dd, "resoultCode", _0x363378);
- if (_0xf71230 == 0) {
- let _0x41df23 = _0x1334dd?.["userInfo"]?.["levelInfoMap"];
- this.level = _0x41df23?.["level"];
- const _0x268241 = {
- notify: true
- };
- this.log("宠物等级[Lv." + _0x41df23?.["level"] + "], 升级进度: " + _0x41df23?.["growthValue"] + "/" + _0x41df23?.["fullGrowthCoinValue"], _0x268241);
- } else {
- let _0x1036a5 = _0x1334dd?.["msg"] || _0x1334dd?.["resoultMsg"] || _0x1334dd?.["error"] || "";
- this.log("查询宠物等级失败[" + _0xf71230 + "]: " + _0x1036a5);
- return;
+ "result": _0x55f042,
+ "statusCode": _0x4e5989
+ } = await this.request(_0x4662df),
+ _0x104d49 = _0x1a907b.get(_0x55f042, "edoCtluoser".split("").reverse().join(""), _0x4e5989);
+ if (_0x104d49 == 0) {
+ {
+ let _0xc95937 = _0x1a907b.get(_0x55f042?.["atad".split("").reverse().join("")], "code", -1);
+ if (_0xc95937 == 1) {
+ {
+ const _0x1d08e3 = {
+ "notify": true
+ };
+ this.log("签到成功,获得" + (_0x55f042?.["data"]?.["coin"] || 0) + "豆金".split("").reverse().join(""), _0x1d08e3);
+ await this.userStatusInfo();
}
- }
- } catch (_0x94c5b4) {
- console.log(_0x94c5b4);
- }
- }
- async getLevelRightsList(_0x3ea0a7 = {}) {
- try {
- let _0x1fd8f0 = {
- phone: this.name
- };
- let _0x5a0971 = {
- fn: "getLevelRightsList",
- method: "post",
- url: "https://wapside.189.cn:9001/jt-sign/paradise/getLevelRightsList",
- json: {
- para: this.encrypt_para(_0x1fd8f0)
+ } else {
+ {
+ const _0x14ef4a = {
+ "notify": true
+ };
+ this.log("[败失到签".split("").reverse().join("") + _0xc95937 + "]: " + _0x55f042.data.msg, _0x14ef4a);
}
- };
- let {
- result: _0x4cf13d,
- statusCode: _0x5e92a4
- } = await this.request(_0x5a0971);
- if (_0x4cf13d?.["currentLevel"]) {
- let _0x3b50bb = _0x4cf13d?.["currentLevel"] || 6;
- let _0x1f1006 = false;
- let _0x53ddf4 = "V" + _0x3b50bb;
- for (let _0x1ab325 of _0x4cf13d[_0x53ddf4] || []) {
- let _0x59ef49 = _0x1ab325?.["righstName"] || "";
- if (this.coin < _0x1ab325.costCoin) {
- continue;
- }
- (_0x59ef49?.["match"](/\d+元话费/) || _0x59ef49?.["match"](/专享\d+金豆/)) && (await this.getConversionRights(_0x1ab325, _0x1f1006)) && (_0x1f1006 = true);
+ }
+ }
+ } else {
+ let _0x541039 = _0x55f042?.["msg"] || _0x55f042?.["gsMtluoser".split("").reverse().join("")] || _0x55f042?.["error"] || "";
+ this.log("[误错到签".split("").reverse().join("") + _0x104d49 + "]: " + _0x541039);
+ }
+ } catch (_0x1d9780) {
+ console.log(_0x1d9780);
+ }
+ }
+ async ["exchangePrize"](_0x51d651 = {}) {
+ let _0x400dc7,
+ _0x10e174 = this.rsCkk;
+ _0x400dc7 = 11;
+ let _0x315800 = this.getrsCk;
+ _0x315800 = this.rsFun().getck();
+ _0x10e174 = await this.parseCookies(_0x315800, _0x10e174);
+ try {
+ let _0x5571bc = _0x1a907b.pop(_0x51d651, "epyt".split("").reverse().join(""), "7");
+ const _0x1f9f9e = {
+ "phone": this.name,
+ "type": _0x5571bc
+ };
+ let _0x77c0eb = {
+ "ckvalue": _0x10e174,
+ "fn": "exchangePrize",
+ "method": "post",
+ "url": "https://wapside.189.cn:9001/jt-sign/webSign/exchangePrize",
+ "json": {
+ "para": this.encrypt_para(_0x1f9f9e)
+ }
+ },
+ {
+ "result": _0xccdcfb,
+ "statusCode": _0x2c0e72
+ } = await this.request(_0x77c0eb),
+ _0x220066 = _0x1a907b.get(_0xccdcfb, "resoultCode", _0x2c0e72);
+ if (_0x220066 == 0) {
+ {
+ let _0x1a8342 = _0x1a907b.get(_0xccdcfb?.["liateDezirp".split("").reverse().join("")], "edoc".split("").reverse().join(""), -1);
+ if (_0x1a8342 == 0) {
+ {
+ const _0x30dfec = {
+ "notify": true
+ };
+ this.log("连签" + _0x5571bc + "天抽奖: " + _0xccdcfb?.["prizeDetail"]?.["biz"]?.["eltiTniw".split("").reverse().join("")], _0x30dfec);
}
- } else {
- let _0x4ff776 = _0x4cf13d?.["msg"] || _0x4cf13d?.["resoultMsg"] || _0x4cf13d?.["error"] || "";
- this.log("查询宠物兑换权益失败: " + _0x4ff776);
- }
- } catch (_0xcfd2ba) {
- console.log(_0xcfd2ba);
- }
- }
- async getConversionRights(_0xca19ef, _0x28066a, _0x21f772 = {}) {
- let _0x21db60 = false;
- try {
- let _0x5d6f72 = _0xca19ef?.["righstName"] || "";
- let _0x268d4d = {
- phone: this.name,
- rightsId: _0xca19ef.id,
- receiveCount: _0xca19ef.receiveType
- };
- let _0x5ed3b5 = {
- fn: "getConversionRights",
- method: "post",
- url: "https://wapside.189.cn:9001/jt-sign/paradise/getConversionRights",
- json: {
- para: this.encrypt_para(_0x268d4d)
- }
- };
- let {
- result: _0x409ea1,
- statusCode: _0x3fb426
- } = await this.request(_0x5ed3b5);
- let _0x17b3d0 = _0x49dfef.get(_0x409ea1, "code", _0x49dfef.get(_0x409ea1, "resoultCode", _0x3fb426));
- if (_0x17b3d0 == 200) {
- if (!(_0x409ea1?.["rightsStatus"]?.["includes"]("已兑换") || _0x409ea1?.["rightsStatus"]?.["includes"]("已领取"))) {
- _0x21db60 = true;
- if (_0x28066a) {
- await _0x49dfef.wait(3000);
- }
- await this.conversionRights(_0xca19ef);
- }
- } else {
- let _0x267dcb = _0x409ea1?.["msg"] || _0x409ea1?.["resoultMsg"] || _0x409ea1?.["error"] || "";
- this.log("查询权益[" + _0x5d6f72 + "]失败[" + _0x17b3d0 + "]: " + _0x267dcb);
- }
- } catch (_0x1c9805) {
- console.log(_0x1c9805);
- } finally {
- return _0x21db60;
- }
- }
- async conversionRights(_0x1258fb, _0x5ee37a = {}) {
- try {
- let _0x285002 = _0x1258fb?.["righstName"] || "";
- let _0x2e0b22 = {
- phone: this.name,
- rightsId: _0x1258fb.id
- };
- let _0x259df8 = {
- fn: "conversionRights",
- method: "post",
- url: "https://wapside.189.cn:9001/jt-sign/paradise/conversionRights",
- json: {
- para: this.encrypt_para(_0x2e0b22)
- }
- };
- let {
- result: _0x24b720,
- statusCode: _0x2867ce
- } = await this.request(_0x259df8);
- let _0x1caee2 = _0x49dfef.get(_0x24b720, "resoultCode", _0x2867ce);
- if (_0x1caee2 == 0) {
- this.log("兑换权益[" + _0x285002 + "]成功");
- } else {
- let _0x58c8d6 = _0x24b720?.["msg"] || _0x24b720?.["resoultMsg"] || _0x24b720?.["error"] || "";
- this.log("兑换权益[" + _0x285002 + "]失败[" + _0x1caee2 + "]: " + _0x58c8d6);
- }
- } catch (_0x2f6eb8) {
- console.log(_0x2f6eb8);
- }
- }
- async get_usercode(_0x410326 = {}) {
- try {
- const _0x4ad8d0 = {
- fn: "get_usercode",
- method: "get",
- url: "https://xbk.189.cn/xbkapi/api/auth/jump",
- searchParams: {}
- };
- _0x4ad8d0.searchParams.userID = this.ticket;
- _0x4ad8d0.searchParams.version = "9.3.3";
- _0x4ad8d0.searchParams.type = "room";
- _0x4ad8d0.searchParams.l = "renwu";
- let _0x3ed428 = _0x4ad8d0;
- let {
- statusCode: _0x1897af,
- headers: _0xab67f2
- } = await this.request(_0x3ed428);
- let _0x40ae2f = _0xab67f2?.["location"]?.["match"](/usercode=(\w+)/);
- _0x40ae2f ? await this.codeToken(_0x40ae2f[1]) : this.log("获取code失败[" + _0x1897af + "]");
- } catch (_0x3b0319) {
- console.log(_0x3b0319);
- }
- }
- async codeToken(_0x5551c8, _0x4c3418 = {}) {
- try {
- const _0x3ed11c = {
- usercode: _0x5551c8
- };
- let _0x2259ef = {
- fn: "codeToken",
- method: "post",
- url: "https://xbk.189.cn/xbkapi/api/auth/userinfo/codeToken",
- json: _0x3ed11c
- };
- let {
- result: _0x1e1031,
- statusCode: _0x4829ec
- } = await this.request(_0x2259ef);
- let _0xb6579f = _0x49dfef.get(_0x1e1031, "code", -1);
- if (_0xb6579f == 0) {
- this.xtoken = _0x1e1031?.["data"]?.["token"];
- this.got = this.got.extend({
- headers: {
- Authorization: "Bearer " + _0x5b4189.encrypt(this.xtoken, "base64")
- }
- });
- } else {
- let _0x2cb0f8 = _0x1e1031?.["msg"] || _0x1e1031?.["resoultMsg"] || _0x1e1031?.["error"] || _0x1e1031?.["msg"] || "";
- this.log("获取token失败[" + _0xb6579f + "]: " + _0x2cb0f8);
- }
- } catch (_0x324945) {
- console.log(_0x324945);
- }
- }
- async watchLiveInit(_0x410248 = {}) {
- try {
- let _0x28a798 = Math.floor(Math.random() * 1000) + 1000;
- const _0x1e7374 = {
- period: 1,
- liveId: _0x28a798
- };
- let _0x3e4085 = {
- fn: "watchLiveInit",
- method: "post",
- url: "https://xbk.189.cn/xbkapi/lteration/liveTask/index/watchLiveInit",
- json: _0x1e7374
- };
- let {
- result: _0x15080d,
- statusCode: _0x39b570
- } = await this.request(_0x3e4085);
- let _0x488aa2 = _0x49dfef.get(_0x15080d, "code", -1);
- if (_0x488aa2 == 0) {
- await _0x49dfef.wait(15000);
- await this.watchLive(_0x28a798, _0x15080d?.["data"]);
- } else {
- let _0x641985 = _0x15080d?.["msg"] || _0x15080d?.["resoultMsg"] || _0x15080d?.["error"] || _0x15080d?.["msg"] || "";
- this.log("开始观看直播[" + _0x28a798 + "]失败[" + _0x488aa2 + "]: " + _0x641985);
- }
- } catch (_0x58939a) {
- console.log(_0x58939a);
- }
- }
- async watchLive(_0x2df12e, _0x578beb, _0x1de0d1 = {}) {
- try {
- const _0xae75fa = {
- period: 1,
- liveId: _0x2df12e,
- key: _0x578beb
- };
- let _0x363af1 = {
- fn: "watchLive",
- method: "post",
- url: "https://xbk.189.cn/xbkapi/lteration/liveTask/index/watchLive",
- json: _0xae75fa
- };
- let {
- result: _0x5c4954,
- statusCode: _0x1ad01d
- } = await this.request(_0x363af1);
- let _0x4e4cbf = _0x49dfef.get(_0x5c4954, "code", -1);
- if (_0x4e4cbf == 0) {
- this.log("观看直播[" + _0x2df12e + "]成功");
- await this.watchLiveInit();
- } else {
- let _0x132d1d = _0x5c4954?.["msg"] || _0x5c4954?.["resoultMsg"] || _0x5c4954?.["error"] || _0x5c4954?.["msg"] || "";
- this.log("观看直播[" + _0x2df12e + "]失败[" + _0x4e4cbf + "]: " + _0x132d1d);
- }
- } catch (_0x32ce3f) {
- console.log(_0x32ce3f);
- }
- }
- async watchVideo(_0x37b577, _0x3a94a2 = {}) {
- try {
- const _0x15cc23 = {
- articleId: _0x37b577
- };
- let _0x54a72d = {
- fn: "watchVideo",
- method: "post",
- url: "https://xbk.189.cn/xbkapi/lteration/liveTask/index/watchVideo",
- json: _0x15cc23
- };
- let {
- result: _0x3d06a2,
- statusCode: _0xa801d9
- } = await this.request(_0x54a72d);
- let _0x33f743 = _0x49dfef.get(_0x3d06a2, "code", -1);
- if (_0x33f743 == 0) {
- this.log("观看短视频[" + _0x37b577 + "]成功");
- } else {
- let _0x597186 = _0x3d06a2?.["msg"] || _0x3d06a2?.["resoultMsg"] || _0x3d06a2?.["error"] || _0x3d06a2?.["msg"] || "";
- this.log("观看短视频[" + _0x37b577 + "]失败[" + _0x33f743 + "]: " + _0x597186);
- }
- } catch (_0x42a411) {
- console.log(_0x42a411);
- }
- }
- async like(_0x3605f0, _0x42d468 = {}) {
- try {
- const _0x551814 = {
- account: this.name,
- liveId: _0x3605f0
- };
- let _0x3f3d2b = {
- fn: "like",
- method: "post",
- url: "https://xbk.189.cn/xbkapi/lteration/room/like",
- json: _0x551814
- };
- let {
- result: _0x15cd63,
- statusCode: _0x550c11
- } = await this.request(_0x3f3d2b);
- let _0x3cb60d = _0x49dfef.get(_0x15cd63, "code", -1);
- if (_0x3cb60d == 0) {
- this.log("点赞直播间[" + _0x3605f0 + "]成功");
- } else {
- let _0x12573c = _0x15cd63?.["msg"] || _0x15cd63?.["resoultMsg"] || _0x15cd63?.["error"] || _0x15cd63?.["msg"] || "";
- this.log("点赞直播间[" + _0x3605f0 + "]失败[" + _0x3cb60d + "]: " + _0x12573c);
- }
- } catch (_0x33a0d8) {
- console.log(_0x33a0d8);
- }
- }
- async sharingGetGold(_0x5cc2cd = {}) {
- try {
- let _0x5957b6 = {
- fn: "sharingGetGold",
- method: "post",
- url: "https://appfuwu.189.cn:9021/query/sharingGetGold",
- json: {
- headerInfos: {
- code: "sharingGetGold",
- timestamp: _0x49dfef.time("yyyyMMddhhmmss"),
- broadAccount: "",
- broadToken: "",
- clientType: "#9.6.1#channel50#iPhone 14 Pro Max#",
- shopId: "20002",
- source: "110003",
- sourcePassword: "Sid98s",
- token: this.token,
- userLoginName: this.name
- },
- content: {
- attach: "test",
- fieldData: {
- shareSource: "3",
- userId: this.userId,
- account: this.encode_phone()
- }
- }
- }
- };
- let {
- result: _0x36023a,
- statusCode: _0x5ade7c
- } = await this.request(_0x5957b6);
- let _0x3bb612 = _0x49dfef.get(_0x36023a?.["responseData"], "resultCode", -1);
- if (_0x3bb612 == "0000") {
- this.log("分享成功");
- } else {
- let _0x1fc39a = _0x36023a?.["msg"] || _0x36023a?.["responseData"]?.["resultDesc"] || _0x36023a?.["error"] || _0x36023a?.["msg"] || "";
- this.log("分享失败[" + _0x3bb612 + "]: " + _0x1fc39a);
- }
- } catch (_0x221821) {
- console.log(_0x221821);
- }
- }
- async month_jml_preCost(_0x3e12ef = {}) {
- try {
- let _0x54e4a2 = {
- fn: "month_jml_preCost",
- method: "post",
- url: "https://wapside.189.cn:9001/jt-sign/short/message/preCost",
- json: {
- phone: this.encode_aes(this.name),
- activityCode: "shortMesssge"
- }
- };
- let {
- result: _0x19ae9b,
- statusCode: _0x219a77
- } = await this.request(_0x54e4a2);
- let _0xb89634 = _0x49dfef.get(_0x19ae9b, "resoultCode", _0x219a77);
- if (_0xb89634 == 0) {
- let _0x1709f5 = _0x19ae9b?.["data"]?.["resoultMsg"] || "领取成功";
- this.jml_tokenFlag = _0x19ae9b?.["resoultMsg"];
- await this.month_jml_userCost(_0x1709f5);
- await this.month_jml_receive();
- await this.month_jml_getCount();
- await this.month_jml_refresh();
- } else {
- let _0x2dde86 = _0x19ae9b?.["msg"] || _0x19ae9b?.["resoultMsg"] || _0x19ae9b?.["error"] || "";
- this.log("每月见面礼登录失败[" + _0xb89634 + "]: " + _0x2dde86);
- }
- } catch (_0xf5ea71) {
- console.log(_0xf5ea71);
- }
- }
- async month_jml_userCost(_0x5b6d73, _0x434031 = {}) {
- try {
- let _0x223f5d = {
- fn: "month_jml_userCost",
- method: "post",
- url: "https://wapside.189.cn:9001/jt-sign/short/message/userCost",
- json: {
- phone: this.encode_aes(this.name),
- activityCode: "shortMesssge",
- flag: this.jml_tokenFlag
- }
- };
- let {
- result: _0x2add96,
- statusCode: _0x4c7beb
- } = await this.request(_0x223f5d);
- let _0x55ebaa = _0x49dfef.get(_0x2add96, "resoultCode", _0x4c7beb);
- if (_0x55ebaa == 0) {
- let _0x39f674 = _0x2add96?.["data"]?.["map"](_0x475613 => "[" + _0x475613.pizeName + "]") || [];
- this.log("见面礼" + _0x5b6d73 + ": " + _0x39f674.join(", "));
- } else {
- let _0x1c5716 = _0x2add96?.["msg"] || _0x2add96?.["resoultMsg"] || _0x2add96?.["error"] || "";
- this.log("领取每月见面礼失败[" + _0x55ebaa + "]: " + _0x1c5716);
- }
- } catch (_0x3eb9f8) {
- console.log(_0x3eb9f8);
- }
- }
- async month_jml_receive(_0x5aaffc = {}) {
- try {
- let _0x3d08a6 = {
- phone: this.name,
- flag: this.jml_tokenFlag
- };
- let _0x4fe3a1 = {
- fn: "month_jml_receive",
- method: "post",
- url: "https://wapside.189.cn:9001/jt-sign/lottery/receive",
- json: {
- para: this.encrypt_para(_0x3d08a6)
- }
- };
- let {
- result: _0x16a4a1,
- statusCode: _0x389615
- } = await this.request(_0x4fe3a1);
- let _0x4924bc = _0x49dfef.get(_0x16a4a1, "code", -1);
- if (_0x4924bc == 0) {
- this.log("领取APP抽奖次数成功");
- } else {
- let _0x5ef8a4 = _0x16a4a1?.["msg"] || _0x16a4a1?.["resoultMsg"] || _0x16a4a1?.["error"] || "";
- this.log("领取APP抽奖次数失败[" + _0x4924bc + "]: " + _0x5ef8a4);
- }
- } catch (_0x209a71) {
- console.log(_0x209a71);
- }
- }
- async month_jml_getCount(_0x1eebce = {}) {
- try {
- let _0x431dad = {
- phone: this.name,
- flag: this.jml_tokenFlag
- };
- let _0x1d2de9 = {
- fn: "month_jml_getCount",
- method: "post",
- url: "https://wapside.189.cn:9001/jt-sign/lottery/getCount",
- json: {
- para: this.encrypt_para(_0x431dad)
- }
- };
- let {
- result: _0xf1b29a,
- statusCode: _0x4204df
- } = await this.request(_0x1d2de9);
- let _0x4704a8 = _0x49dfef.get(_0xf1b29a, "code", -1);
- if (_0x4704a8 == 0) {
- let _0x141535 = _0xf1b29a?.["video"]?.["map"](_0x33886d => _0x33886d.videoType) || [];
- let _0x2fb772 = _0x131d2d.filter(_0x5bb71b => !_0x141535.includes(_0x5bb71b));
- let _0x22a4b1 = false;
- for (let _0x38b1de of _0x2fb772) {
- if (_0x22a4b1) {
- let _0x296e0d = Math.floor(Math.random() * 5000) + 3000;
- await _0x49dfef.wait(_0x296e0d);
- }
- await this.month_jml_addVideoCount(_0x38b1de);
- _0x22a4b1 = true;
- }
- } else {
- let _0x330a5e = _0xf1b29a?.["msg"] || _0xf1b29a?.["resoultMsg"] || _0xf1b29a?.["error"] || "";
- this.log("查询看视频得抽奖机会次数失败[" + _0x4704a8 + "]: " + _0x330a5e);
- }
- } catch (_0x1c46ec) {
- console.log(_0x1c46ec);
- }
- }
- async month_jml_addVideoCount(_0x10070c, _0x588069 = {}) {
- try {
- let _0x13e584 = {
- phone: this.name,
- videoType: _0x10070c,
- flag: this.jml_tokenFlag
- };
- let _0x2b00ee = {
- fn: "month_jml_addVideoCount",
- method: "post",
- url: "https://wapside.189.cn:9001/jt-sign/lottery/addVideoCount",
- json: {
- para: this.encrypt_para(_0x13e584)
- }
- };
- let {
- result: _0x8dff4,
- statusCode: _0x6fd216
- } = await this.request(_0x2b00ee);
- let _0x3f6886 = _0x49dfef.get(_0x8dff4, "code", -1);
- if (_0x3f6886 == 0) {
- this.log("看视频[" + _0x10070c + "]得抽奖机会成功");
- } else {
- let _0x238dbf = _0x8dff4?.["msg"] || _0x8dff4?.["resoultMsg"] || _0x8dff4?.["error"] || "";
- this.log("看视频[" + _0x10070c + "]得抽奖机会失败[" + _0x3f6886 + "]: " + _0x238dbf);
- }
- } catch (_0x2d129d) {
- console.log(_0x2d129d);
- }
- }
- async month_jml_refresh(_0xcca85f = {}) {
- try {
- let _0x14cad3 = {
- phone: this.name,
- flag: this.jml_tokenFlag
- };
- let _0x5ab84e = {
- fn: "month_jml_refresh",
- method: "post",
- url: "https://wapside.189.cn:9001/jt-sign/lottery/refresh",
- json: {
- para: this.encrypt_para(_0x14cad3)
- }
- };
- let {
- result: _0x764f77,
- statusCode: _0x2cc71c
- } = await this.request(_0x5ab84e);
- let _0x5ecd1e = _0x49dfef.get(_0x764f77, "code", -1);
- if (_0x5ecd1e == -1) {
- let _0x58362e = _0x764f77?.["rNumber"] || 0;
- this.log("可以抽奖" + _0x58362e + "次");
- let _0x31275f = false;
- while (_0x58362e-- > 0) {
- if (_0x31275f) {
- let _0x33dd5d = Math.floor(Math.random() * 5000) + 3000;
- await _0x49dfef.wait(_0x33dd5d);
- }
- await this.month_jml_lotteryRevice();
- _0x31275f = true;
- }
- } else {
- let _0x15024f = _0x764f77?.["msg"] || _0x764f77?.["resoultMsg"] || _0x764f77?.["error"] || "";
- this.log("查询抽奖次数失败[" + _0x5ecd1e + "]: " + _0x15024f);
- }
- } catch (_0x14d546) {
- console.log(_0x14d546);
- }
- }
- async month_jml_lotteryRevice(_0x5bf2d6 = {}) {
- try {
- let _0x489867 = {
- phone: this.name,
- flag: this.jml_tokenFlag
- };
- let _0x57d2e2 = {
- fn: "month_jml_lotteryRevice",
- method: "post",
- url: "https://wapside.189.cn:9001/jt-sign/lottery/lotteryRevice",
- json: {
- para: this.encrypt_para(_0x489867)
- }
- };
- let {
- result: _0x361574,
- statusCode: _0x1225b9
- } = await this.request(_0x57d2e2);
- let _0x4ec03c = _0x49dfef.get(_0x361574, "code", -1);
- if (_0x4ec03c == 0) {
- let {
- rname: _0x232c3b,
- id: _0x23684c
- } = _0x361574;
- const _0x16b601 = {
- notify: true
+ } else {
+ let _0x32bcbc = _0xccdcfb?.["liateDezirp".split("").reverse().join("")]?.["rre".split("").reverse().join("")] || "";
+ const _0x3544f2 = {
+ "notify": true
};
- this.log("每月见面礼抽奖: " + _0x232c3b, _0x16b601);
- } else {
- let _0x97a723 = _0x361574?.["msg"] || _0x361574?.["resoultMsg"] || _0x361574?.["error"] || "";
- this.log("每月见面礼抽奖失败[" + _0x4ec03c + "]: " + _0x97a723);
+ this.log("连签" + _0x5571bc + "天抽奖失败[" + _0x1a8342 + "]: " + _0x32bcbc, _0x3544f2);
+ }
}
- } catch (_0x3b1aef) {
- console.log(_0x3b1aef);
+ } else {
+ {
+ let _0x474fe0 = _0xccdcfb?.["gsm".split("").reverse().join("")] || _0xccdcfb?.["resoultMsg"] || _0xccdcfb?.["error"] || "";
+ this.log("连签" + _0x5571bc + "[误错奖抽天".split("").reverse().join("") + _0x220066 + " :]".split("").reverse().join("") + _0x474fe0);
+ }
+ }
+ } catch (_0x220e9d) {
+ console.log(_0x220e9d);
}
- }
- async rpc_request(_0x390ce7, _0x48b512 = "get", _0x46e01b = null) {
- let _0x2aec3e = _0x390ce7.toString();
- let _0x4b4d49 = this.get_mall_headers();
- let _0x10b963 = _0x46e01b ? JSON.stringify(_0x46e01b) : null;
- const _0x433f30 = new Error();
- const _0xafbbac = _0x433f30.stack;
- const _0x27601e = _0xafbbac.split("\n");
- const _0x17aebc = _0x27601e?.[2]?.["match"](/UserClass\.(\w+)/)?.[1] || "rpc";
- let _0x50ab7c = {
- fn: _0x17aebc,
- method: "post",
- url: _0x16d3ea,
- json: {
- key: _0x344953,
- method: _0x48b512,
- url: _0x390ce7.toString(),
- headers: this.get_mall_headers(),
- data: JSON.stringify(_0x46e01b)
- }
- };
- return await this.request(_0x50ab7c);
- }
- async auth_login(_0x16dd5f = {}) {
- let _0x4b632d = false;
+ }
+ async ["homepage"](_0x12d2b5, _0x5240fc = {}) {
+ var _0x2f987c = 14;
+ let _0xe6f98c = this.rsCkk;
+ _0x2f987c = "lidkch".split("").reverse().join("");
+ var _0xb98d87 = 9;
+ let _0xbd2bb4 = this.getrsCk;
+ _0xb98d87 = "hiamhj";
+ _0xbd2bb4 = this.rsFun().getck();
+ _0xe6f98c = await this.parseCookies(_0xbd2bb4, _0xe6f98c);
try {
- let _0x59ca25 = this.ticket;
- let _0xa64474 = new URL("https://wapact.189.cn:9001/unified/user/login");
- let _0x28641d = {
- ticket: _0x59ca25,
- backUrl: encodeURIComponent("https://wapact.189.cn:9001/JinDouMall/JinDouMall_luckDraw.html?ticket=" + _0x59ca25),
- platformCode: "P201010301",
- loginType: 2
- };
- let {
- result: _0x16b3c5,
- statusCode: _0x3b6fb9
- } = await this.rpc_request(_0xa64474, "POST", _0x28641d);
- let _0x25f5c8 = _0x49dfef.get(_0x16b3c5, "code", _0x3b6fb9);
- if (_0x25f5c8 == 0) {
- let {
- token: _0x202a28,
- sessionId: _0x274600
- } = _0x16b3c5?.["biz"];
- this.mall_token = _0x202a28;
- _0x4b632d = true;
- } else {
- let _0x1c4e69 = _0x49dfef.get(_0x16b3c5, "message", "");
- this.log("商城登录失败[" + _0x25f5c8 + "]: " + _0x1c4e69);
- }
- } catch (_0x3b74e2) {
- console.log(_0x3b74e2);
- } finally {
- return _0x4b632d;
- }
- }
- async queryInfo(_0x3da8a0 = {}) {
- try {
- let _0xc5f478 = new URL("https://wapact.189.cn:9001/gateway/golden/api/queryInfo");
- _0xc5f478.searchParams.append("_", Date.now().toString());
- let {
- result: _0x3bab08,
- statusCode: _0x42dda4
- } = await this.rpc_request(_0xc5f478);
- let _0x69d0a7 = _0x49dfef.get(_0x3bab08, "code", _0x42dda4);
- if (_0x69d0a7 == 0) {
- this.coin = _0x3bab08?.["biz"]?.["amountTotal"] || this.coin;
- await this.queryTurnTable();
- } else {
- let _0x401a81 = _0x49dfef.get(_0x3bab08, "message", "");
- this.log("查询商城状态失败[" + _0x69d0a7 + "]: " + _0x401a81);
- }
- } catch (_0xd507ac) {
- console.log(_0xd507ac);
- }
- }
- async queryTurnTable(_0x12dce0 = {}) {
- try {
- let _0x5dccd4 = new URL("https://wapact.189.cn:9001/gateway/golden/api/queryTurnTable");
- _0x5dccd4.searchParams.append("userType", "1");
- _0x5dccd4.searchParams.append("_", Date.now().toString());
- let {
- result: _0x2ad2d5,
- statusCode: _0x5a8d92
- } = await this.rpc_request(_0x5dccd4);
- let _0x2b1c98 = _0x49dfef.get(_0x2ad2d5, "code", _0x5a8d92);
- if (_0x2b1c98 == 0) {
- let _0x2b2dfc = _0x2ad2d5?.["biz"]?.["xiaoHaoCount"] || 20;
- let _0x15becc = _0x2ad2d5?.["biz"]?.["wzTurntable"]?.["code"] || "";
- _0x15becc ? await this.lottery_check(_0x15becc, _0x2b2dfc) : this.log("没有获取到转盘抽奖ID");
- } else {
- let _0x96a1c8 = _0x49dfef.get(_0x2ad2d5, "message", "");
- this.log("获取转盘抽奖活动失败[" + _0x2b1c98 + "]: " + _0x96a1c8);
- }
- } catch (_0x3408eb) {
- console.log(_0x3408eb);
- }
- }
- async lottery_check(_0x217d19, _0x372f7b, _0x4f6c97 = {}) {
- try {
- let _0xa49a58 = new URL("https://wapact.189.cn:9001/gateway/stand/detail/check");
- _0xa49a58.searchParams.append("activityId", _0x217d19);
- _0xa49a58.searchParams.append("_", Date.now().toString());
- let {
- result: _0x2d69c8,
- statusCode: _0x242328
- } = await this.rpc_request(_0xa49a58);
- let _0x2cccad = _0x49dfef.get(_0x2d69c8, "code", _0x242328);
- if (_0x2cccad == 0) {
- let _0x157881 = _0x2d69c8?.["biz"]?.["resultInfo"]?.["chanceCount"] || 0;
- this.log("转盘可以抽奖" + _0x157881 + "次, 消耗金豆" + _0x372f7b + "/" + this.coin);
- let _0x30a5ac = false;
- while (_0x157881-- > 0 && this.coin >= _0x372f7b) {
- if (_0x30a5ac) {
- await _0x49dfef.wait(3000);
+ const _0x389651 = {
+ "phone": this.name,
+ "shopId": "20001",
+ "type": _0x12d2b5
+ };
+ let _0x3c9174 = {
+ "ckvalue": _0xe6f98c,
+ "fn": "homepage",
+ "method": "post",
+ "url": "https://wapside.189.cn:9001/jt-sign/webSign/homepage",
+ "json": {
+ "para": this.encrypt_para(_0x389651)
+ }
+ },
+ {
+ "result": _0x49f4fc,
+ "statusCode": _0x116999
+ } = await this.request(_0x3c9174),
+ _0x107703 = _0x1a907b.get(_0x49f4fc, "resoultCode", _0x116999);
+ if (_0x107703 == 0) {
+ let _0xe52288 = _0x1a907b.get(_0x49f4fc?.["atad".split("").reverse().join("")]?.["daeh".split("").reverse().join("")], "code", -1);
+ if (_0xe52288 == 0) for (let _0x16bb06 of _0x49f4fc?.["atad".split("").reverse().join("")]?.["zib".split("").reverse().join("")]?.["adItems"] || []) {
+ if (["0", "1"].includes(_0x16bb06?.["taskState"])) {
+ switch (_0x16bb06.contentOne) {
+ case "3":
+ {
+ {
+ _0x16bb06?.["dIdrawer".split("").reverse().join("")] && (await this.receiveReward(_0x16bb06));
+ break;
+ }
+ }
+ case "5":
+ {
+ await this.openMsg(_0x16bb06);
+ break;
+ }
+ case "6":
+ {
+ await this.sharingGetGold();
+ break;
+ }
+ case "10":
+ case "31".split("").reverse().join(""):
+ {
+ !this.xtoken && (await this.get_usercode());
+ this.xtoken && (await this.watchLiveInit());
+ break;
+ }
+ case "81".split("").reverse().join(""):
+ {
+ {
+ await this.polymerize(_0x16bb06);
+ break;
+ }
+ }
+ default:
+ {
+ break;
}
- _0x30a5ac = true;
- await this.lottery_do(_0x217d19, _0x372f7b);
}
+ }
} else {
- let _0x3cd934 = _0x49dfef.get(_0x2d69c8, "message", "");
- this.log("查询转盘抽奖次数失败[" + _0x2cccad + "]: " + _0x3cd934);
+ let _0x4a4e2d = _0x49f4fc?.["data"]?.["daeh".split("").reverse().join("")]?.["err"] || "";
+ this.log("获取任务列表失败[" + _0xe52288 + " :]".split("").reverse().join("") + _0x4a4e2d);
}
- } catch (_0x957f54) {
- console.log(_0x957f54);
+ } else this.log("获取任务列表错误[" + _0x107703 + "]");
+ } catch (_0x1b64c4) {
+ console.log(_0x1b64c4);
}
- }
- async lottery_do(_0x5149a7, _0xc5a8fd = {}) {
+ }
+ async ["receiveReward"](_0x5b0aef, _0x4a06a5 = {}) {
+ {
+ let _0x3afcd1 = this.rsCkk,
+ _0x43acda = this.getrsCk;
+ _0x43acda = this.rsFun().getck();
+ _0x3afcd1 = await this.parseCookies(_0x43acda, _0x3afcd1);
+ try {
+ let _0x298887 = _0x5b0aef?.["title"]?.["split"](" ")?.[0];
+ const _0x10b838 = {
+ "phone": this.name,
+ "rewardId": _0x5b0aef?.["rewardId"] || ""
+ };
+ let _0x5c2dd2 = {
+ "ckvalue": _0x3afcd1,
+ "fn": "receiveReward",
+ "method": "post",
+ "url": "https://wapside.189.cn:9001/jt-sign/paradise/receiveReward",
+ "json": {
+ "para": this.encrypt_para(_0x10b838)
+ }
+ },
+ {
+ "result": _0x360d46,
+ "statusCode": _0x4f0e11
+ } = await this.request(_0x5c2dd2),
+ _0x19bcfa = _0x1a907b.get(_0x360d46, "resoultCode", _0x4f0e11);
+ if (_0x19bcfa == 0) this.log("[务任取领".split("").reverse().join("") + _0x298887 + "]奖励成功: " + _0x360d46?.["gsMtluoser".split("").reverse().join("")]);else {
+ let _0x1d74a9 = _0x360d46?.["msg"] || _0x360d46?.["resoultMsg"] || _0x360d46?.["rorre".split("").reverse().join("")] || "";
+ this.log("[务任取领".split("").reverse().join("") + _0x298887 + "[误错励奖]".split("").reverse().join("") + _0x19bcfa + " :]".split("").reverse().join("") + _0x1d74a9);
+ }
+ } catch (_0x87d7ca) {
+ console.log(_0x87d7ca);
+ }
+ }
+ }
+ async ["openMsg"](_0x3f3428, _0x21565e = {}) {
+ {
+ let _0x5ae01e = this.rsCkk;
+ var _0x5672c8 = 9;
+ let _0x17284d = this.getrsCk;
+ _0x5672c8 = "fennhp";
+ _0x17284d = this.rsFun().getck();
+ _0x5ae01e = await this.parseCookies(_0x17284d, _0x5ae01e);
+ try {
+ {
+ let _0x559622 = _0x3f3428?.["title"]?.["split"](" ")?.[0];
+ const _0x1febad = {
+ "phone": this.name
+ };
+ let _0x3f8902 = {
+ "ckvalue": _0x5ae01e,
+ "fn": "openMsg",
+ "method": "post",
+ "url": "https://wapside.189.cn:9001/jt-sign/paradise/openMsg",
+ "json": {
+ "para": this.encrypt_para(_0x1febad)
+ }
+ },
+ {
+ "result": _0x3fcc57,
+ "statusCode": _0x17815c
+ } = await this.request(_0x3f8902),
+ _0x5edf25 = _0x1a907b.get(_0x3fcc57, "edoCtluoser".split("").reverse().join(""), _0x17815c);
+ if (_0x5edf25 == 0) this.log("完成任务[" + _0x559622 + "]成功: " + _0x3fcc57?.["resoultMsg"]);else {
+ {
+ let _0x2d17da = _0x3fcc57?.["msg"] || _0x3fcc57?.["resoultMsg"] || _0x3fcc57?.["error"] || "";
+ this.log("完成任务[" + _0x559622 + "]错误[" + _0x5edf25 + " :]".split("").reverse().join("") + _0x2d17da);
+ }
+ }
+ }
+ } catch (_0x23c4a1) {
+ console.log(_0x23c4a1);
+ }
+ }
+ }
+ async ["polymerize"](_0x47b1b0, _0x2602a8 = {}) {
+ let _0x58a2f0 = this.rsCkk;
+ var _0x5858a5 = 16;
+ let _0x58ecd8 = this.getrsCk;
+ _0x5858a5 = "pnbjcb".split("").reverse().join("");
+ _0x58ecd8 = this.rsFun().getck();
+ _0x58a2f0 = await this.parseCookies(_0x58ecd8, _0x58a2f0);
try {
- let _0x1794f8 = new URL("https://wapact.189.cn:9001/gateway/golden/api/lottery");
- let _0xe8218a = {
- activityId: _0x5149a7
+ {
+ let _0x10342e = _0x47b1b0?.["eltit".split("").reverse().join("")]?.["split"](" ")?.[0];
+ const _0x5ea9e4 = {
+ "phone": this.name,
+ "jobId": _0x47b1b0.taskId
+ };
+ let _0x2120e2 = {
+ "ckvalue": _0x58a2f0,
+ "fn": "polymerize",
+ "method": "post",
+ "url": "https://wapside.189.cn:9001/jt-sign/webSign/polymerize",
+ "json": {
+ "para": this.encrypt_para(_0x5ea9e4)
+ }
+ },
+ {
+ "result": _0x1d8e9c,
+ "statusCode": _0x1b93af
+ } = await this.request(_0x2120e2),
+ _0x8e8602 = _0x1a907b.get(_0x1d8e9c, "resoultCode", _0x1b93af);
+ if (_0x8e8602 == 0) this.log("[务任成完".split("").reverse().join("") + _0x10342e + " :功成]".split("").reverse().join("") + _0x1d8e9c?.["resoultMsg"]);else {
+ {
+ let _0x5a9935 = _0x1d8e9c?.["msg"] || _0x1d8e9c?.["resoultMsg"] || _0x1d8e9c?.["error"] || "";
+ this.log("完成任务[" + _0x10342e + "[误错]".split("").reverse().join("") + _0x8e8602 + " :]".split("").reverse().join("") + _0x5a9935);
+ }
+ }
+ }
+ } catch (_0x627041) {
+ console.log(_0x627041);
+ }
+ }
+ async ["food"](_0x3ffcd3, _0x527ce7 = {}) {
+ var _0x53bf53 = 12;
+ let _0x5086d1 = this.rsCkk;
+ _0x53bf53 = 9;
+ let _0x49aa48 = this.getrsCk;
+ _0x49aa48 = this.rsFun().getck();
+ _0x5086d1 = await this.parseCookies(_0x49aa48, _0x5086d1);
+ try {
+ const _0x28fe9f = {
+ "phone": this.name
+ };
+ let _0x22f12d = {
+ "ckvalue": _0x5086d1,
+ "fn": "food",
+ "method": "post",
+ "url": "https://wapside.189.cn:9001/jt-sign/paradise/food",
+ "json": {
+ "para": this.encrypt_para(_0x28fe9f)
+ }
+ },
+ {
+ "result": _0x139702,
+ "statusCode": _0x270d92
+ } = await this.request(_0x22f12d),
+ _0x26bb72 = _0x1a907b.get(_0x139702, "edoCtluoser".split("").reverse().join(""), _0x270d92);
+ if (_0x26bb72 == 0) {
+ this.log("第" + _0x3ffcd3 + "次喂食: " + (_0x139702?.["gsMtluoser".split("").reverse().join("")] || "成功"));
+ if (_0x139702?.["pUlevel".split("").reverse().join("")]) {
+ {
+ let _0x5ee413 = _0x139702?.["currLevelRightList"][0]?.["level"];
+ const _0x498e3d = {
+ "notify": true
+ };
+ this.log("宠物已升级到[LV." + _0x5ee413 + " :得获 ,]".split("").reverse().join("") + _0x139702?.["currLevelRightList"][0]?.["emaNtshgir".split("").reverse().join("")], _0x498e3d);
+ }
+ }
+ } else {
+ {
+ let _0x69b941 = _0x139702?.["msg"] || _0x139702?.["gsMtluoser".split("").reverse().join("")] || _0x139702?.["error"] || "";
+ this.log("第" + _0x3ffcd3 + "[败失食喂次".split("").reverse().join("") + _0x26bb72 + " :]".split("").reverse().join("") + _0x69b941);
+ _0x69b941?.["includes"]("最大喂食次数") && (this.can_feed = false);
+ }
+ }
+ } catch (_0x55c71c) {
+ console.log(_0x55c71c);
+ }
+ }
+ async ["getParadiseInfo"](_0x5d0afa = {}) {
+ let _0x360373 = this.rsCkk;
+ var _0x506265 = 18;
+ let _0x65e9ea = this.getrsCk;
+ _0x506265 = 6;
+ _0x65e9ea = this.rsFun().getck();
+ _0x360373 = await this.parseCookies(_0x65e9ea, _0x360373);
+ try {
+ {
+ const _0x46eba0 = {
+ "phone": this.name
+ };
+ let _0x441cb8 = {
+ "ckvalue": _0x360373,
+ "fn": "getParadiseInfo",
+ "method": "post",
+ "url": "https://wapside.189.cn:9001/jt-sign/paradise/getParadiseInfo",
+ "json": {
+ "para": this.encrypt_para(_0x46eba0)
+ }
+ };
+ {
+ {
+ let {
+ "result": _0x5ca580,
+ "statusCode": _0x5122a3
+ } = await this.request(_0x441cb8),
+ _0x4d452c = _0x1a907b.get(_0x5ca580, "resoultCode", _0x5122a3);
+ if (_0x4d452c == 0) {
+ {
+ let _0x1aca35 = _0x5ca580?.["userInfo"]?.["levelInfoMap"];
+ this.level = _0x1aca35?.["level"];
+ for (let _0x1c9e42 = 1; _0x1c9e42 <= 10 && this.can_feed; _0x1c9e42++) {
+ await this.food(_0x1c9e42);
+ }
+ }
+ } else {
+ let _0x21d421 = _0x5ca580?.["gsm".split("").reverse().join("")] || _0x5ca580?.["resoultMsg"] || _0x5ca580?.["rorre".split("").reverse().join("")] || "";
+ this.log("查询宠物等级失败[" + _0x4d452c + "]: " + _0x21d421);
+ return;
+ }
+ }
+ }
+ {
+ {
+ _0x360373 = this.rsCkk;
+ _0x65e9ea = this.getrsCk;
+ _0x65e9ea = this.rsFun().getck();
+ _0x360373 = await this.parseCookies(_0x65e9ea, _0x360373);
+ let _0x3441c9 = {
+ "ckvalue": _0x360373,
+ "fn": "getParadiseInfo",
+ "method": "post",
+ "url": "https://wapside.189.cn:9001/jt-sign/paradise/getParadiseInfo",
+ "json": {
+ "para": this.encrypt_para(_0x46eba0)
+ }
+ },
+ {
+ "result": _0x43dc05,
+ "statusCode": _0x285e3a
+ } = await this.request(_0x3441c9),
+ _0x3fec10 = _0x1a907b.get(_0x43dc05, "edoCtluoser".split("").reverse().join(""), _0x285e3a);
+ if (_0x3fec10 == 0) {
+ {
+ let _0x36ee1f = _0x43dc05?.["userInfo"]?.["levelInfoMap"];
+ this.level = _0x36ee1f?.["level"];
+ const _0x3fbf8e = {
+ "notify": true
+ };
+ this.log("宠物等级[Lv." + _0x36ee1f?.["level"] + " :度进级升 ,]".split("").reverse().join("") + _0x36ee1f?.["growthValue"] + "/" + _0x36ee1f?.["fullGrowthCoinValue"], _0x3fbf8e);
+ }
+ } else {
+ {
+ let _0x42c291 = _0x43dc05?.["gsm".split("").reverse().join("")] || _0x43dc05?.["resoultMsg"] || _0x43dc05?.["error"] || "";
+ this.log("[败失级等物宠询查".split("").reverse().join("") + _0x3fec10 + "]: " + _0x42c291);
+ return;
+ }
+ }
+ }
+ }
+ }
+ } catch (_0x431d56) {
+ console.log(_0x431d56);
+ }
+ }
+ async ["getLevelRightsList"](_0x313581 = {}) {
+ {
+ let _0x32ef46 = this.rsCkk;
+ var _0x40290a = 5;
+ let _0x3747df = this.getrsCk;
+ _0x40290a = "pmlkhn";
+ _0x3747df = this.rsFun().getck();
+ _0x32ef46 = await this.parseCookies(_0x3747df, _0x32ef46);
+ try {
+ const _0x5562b1 = {
+ "phone": this.name
+ };
+ let _0x598a01 = {
+ "ckvalue": _0x32ef46,
+ "fn": "getLevelRightsList",
+ "method": "post",
+ "url": "https://wapside.189.cn:9001/jt-sign/paradise/getLevelRightsList",
+ "json": {
+ "para": this.encrypt_para(_0x5562b1)
+ }
+ },
+ {
+ "result": _0x446a1b,
+ "statusCode": _0x19041d
+ } = await this.request(_0x598a01);
+ if (_0x446a1b?.["currentLevel"]) {
+ let _0xaec461 = _0x446a1b?.["leveLtnerruc".split("").reverse().join("")] || 6,
+ _0x3fe3bd = false,
+ _0xfc6c13 = "V" + _0xaec461;
+ for (let _0x25f158 of _0x446a1b[_0xfc6c13] || []) {
+ {
+ let _0x59f64f = _0x25f158?.["emaNtshgir".split("").reverse().join("")] || "";
+ if (this.coin < _0x25f158.costCoin) {
+ continue;
+ }
+ (_0x59f64f?.["match"](new RegExp("\\d+元话费", "")) || _0x59f64f?.["hctam".split("").reverse().join("")](new RegExp("豆金+d\\享专".split("").reverse().join(""), ""))) && (await this.getConversionRights(_0x25f158, _0x3fe3bd)) && (_0x3fe3bd = true);
+ }
+ }
+ } else {
+ {
+ let _0x246b4f = _0x446a1b?.["msg"] || _0x446a1b?.["gsMtluoser".split("").reverse().join("")] || _0x446a1b?.["error"] || "";
+ this.log(" :败失益权换兑物宠询查".split("").reverse().join("") + _0x246b4f);
+ }
+ }
+ } catch (_0x179b0e) {
+ console.log(_0x179b0e);
+ }
+ }
+ }
+ async ["getConversionRights"](_0x1ce06c, _0x4fabbb, _0x45e01c = {}) {
+ let _0x32aac3 = this.rsCkk,
+ _0xa7161d,
+ _0x37bf7f = this.getrsCk;
+ _0xa7161d = 1;
+ _0x37bf7f = this.rsFun().getck();
+ _0x32aac3 = await this.parseCookies(_0x37bf7f, _0x32aac3);
+ let _0x1efb76 = false;
+ try {
+ {
+ let _0x247a79 = _0x1ce06c?.["righstName"] || "";
+ const _0x1d34e2 = {
+ "phone": this.name,
+ "rightsId": _0x1ce06c.id,
+ "receiveCount": _0x1ce06c.receiveType
+ };
+ let _0x59716c = {
+ "ckvalue": _0x32aac3,
+ "fn": "getConversionRights",
+ "method": "post",
+ "url": "https://wapside.189.cn:9001/jt-sign/paradise/getConversionRights",
+ "json": {
+ "para": this.encrypt_para(_0x1d34e2)
+ }
+ },
+ {
+ "result": _0x216422,
+ "statusCode": _0x41de38
+ } = await this.request(_0x59716c),
+ _0x3f7b73 = _0x1a907b.get(_0x216422, "edoc".split("").reverse().join(""), _0x1a907b.get(_0x216422, "edoCtluoser".split("").reverse().join(""), _0x41de38));
+ if (_0x3f7b73 == 200) {
+ if (!(_0x216422?.["rightsStatus"]?.["sedulcni".split("").reverse().join("")]("已兑换") || _0x216422?.["rightsStatus"]?.["sedulcni".split("").reverse().join("")]("取领已".split("").reverse().join("")))) {
+ _0x1efb76 = true;
+ if (_0x4fabbb) {
+ await _0x1a907b.wait(3000);
+ }
+ await this.conversionRights(_0x1ce06c);
+ }
+ } else {
+ let _0x1f31c7 = _0x216422?.["msg"] || _0x216422?.["resoultMsg"] || _0x216422?.["error"] || "";
+ this.log("[益权询查".split("").reverse().join("") + _0x247a79 + "[败失]".split("").reverse().join("") + _0x3f7b73 + " :]".split("").reverse().join("") + _0x1f31c7);
+ }
+ }
+ } catch (_0x1cd7c3) {
+ console.log(_0x1cd7c3);
+ } finally {
+ return _0x1efb76;
+ }
+ }
+ async ["conversionRights"](_0x4d2734, _0x3840bb = {}) {
+ {
+ let _0x394922 = this.rsCkk,
+ _0x1ee9c5,
+ _0x527353 = this.getrsCk;
+ _0x1ee9c5 = 6;
+ _0x527353 = this.rsFun().getck();
+ _0x394922 = await this.parseCookies(_0x527353, _0x394922);
+ try {
+ let _0x10bd41 = _0x4d2734?.["emaNtshgir".split("").reverse().join("")] || "";
+ const _0x83522b = {
+ "phone": this.name,
+ "rightsId": _0x4d2734.id
+ };
+ let _0x290aba = {
+ "ckvalue": _0x394922,
+ "fn": "conversionRights",
+ "method": "post",
+ "url": "https://wapside.189.cn:9001/jt-sign/paradise/conversionRights",
+ "json": {
+ "para": this.encrypt_para(_0x83522b)
+ }
+ },
+ {
+ "result": _0x502012,
+ "statusCode": _0x29f40d
+ } = await this.request(_0x290aba),
+ _0x7effe1 = _0x1a907b.get(_0x502012, "edoCtluoser".split("").reverse().join(""), _0x29f40d);
+ if (_0x7effe1 == 0) this.log("兑换权益[" + _0x10bd41 + "功成]".split("").reverse().join(""));else {
+ let _0x31092d = _0x502012?.["msg"] || _0x502012?.["resoultMsg"] || _0x502012?.["error"] || "";
+ this.log("[益权换兑".split("").reverse().join("") + _0x10bd41 + "]失败[" + _0x7effe1 + " :]".split("").reverse().join("") + _0x31092d);
+ }
+ } catch (_0x58a778) {
+ console.log(_0x58a778);
+ }
+ }
+ }
+ async ["get_usercode"](_0x314be8 = {}) {
+ {
+ let _0x37903f = this.rsCkk,
+ _0x1ab94b = this.getrsCk;
+ _0x1ab94b = this.rsFun().getck();
+ _0x37903f = await this.parseCookies(_0x1ab94b, _0x37903f);
+ try {
+ {
+ const _0x16e04a = {
+ "ckvalue": _0x37903f,
+ "fn": "get_usercode",
+ "method": "get",
+ "url": "https://xbk.189.cn/xbkapi/api/auth/jump",
+ "searchParams": {}
+ };
+ _0x16e04a.searchParams.userID = this.ticket;
+ _0x16e04a.searchParams.version = "9.3.3";
+ _0x16e04a.searchParams.type = "room";
+ _0x16e04a.searchParams.l = "renwu";
+ let {
+ "statusCode": _0x4b85f9,
+ "headers": _0x35a931
+ } = await this.request(_0x16e04a),
+ _0x247c50 = _0x35a931?.["location"]?.["match"](new RegExp("usercode=(\\w+)", ""));
+ _0x247c50 ? await this.codeToken(_0x247c50[1]) : this.log("获取code失败[" + _0x4b85f9 + "]");
+ }
+ } catch (_0x10af19) {
+ console.log(_0x10af19);
+ }
+ }
+ }
+ async ["codeToken"](_0xdedb3c, _0xcf349 = {}) {
+ {
+ let _0x3ae053 = this.rsCkk,
+ _0x1f567e = this.getrsCk;
+ _0x1f567e = this.rsFun().getck();
+ _0x3ae053 = await this.parseCookies(_0x1f567e, _0x3ae053);
+ try {
+ {
+ const _0x5b22db = {
+ "usercode": _0xdedb3c
+ },
+ _0x158c4b = {
+ "ckvalue": _0x3ae053,
+ "fn": "codeToken",
+ "method": "post",
+ "url": "https://xbk.189.cn/xbkapi/api/auth/userinfo/codeToken",
+ "json": _0x5b22db
+ };
+ let {
+ "result": _0x5db701,
+ "statusCode": _0x4633a6
+ } = await this.request(_0x158c4b),
+ _0x2ec0e9 = _0x1a907b.get(_0x5db701, "edoc".split("").reverse().join(""), -1);
+ if (_0x2ec0e9 == 0) this.xtoken = _0x5db701?.["data"]?.["nekot".split("").reverse().join("")], this.got = this.got.extend({
+ "headers": {
+ "Authorization": "Bearer " + _0x30d16a.encrypt(this.xtoken, "base64")
+ }
+ });else {
+ let _0x4ea71e = _0x5db701?.["msg"] || _0x5db701?.["resoultMsg"] || _0x5db701?.["error"] || _0x5db701?.["gsm".split("").reverse().join("")] || "";
+ this.log("获取token失败[" + _0x2ec0e9 + "]: " + _0x4ea71e);
+ }
+ }
+ } catch (_0x4fd3ae) {
+ console.log(_0x4fd3ae);
+ }
+ }
+ }
+ async ["watchLiveInit"](_0x4ff089 = {}) {
+ let _0xb4a547 = this.rsCkk,
+ _0x4940db,
+ _0x520588 = this.getrsCk;
+ _0x4940db = 12;
+ _0x520588 = this.rsFun().getck();
+ _0xb4a547 = await this.parseCookies(_0x520588, _0xb4a547);
+ try {
+ let _0x29c1b8 = Math.floor(Math.random() * 1000) + 1000;
+ const _0x53ed48 = {
+ "period": 1,
+ "liveId": _0x29c1b8
+ },
+ _0x415a4a = {
+ "ckvalue": _0xb4a547,
+ "fn": "watchLiveInit",
+ "method": "post",
+ "url": "https://xbk.189.cn/xbkapi/lteration/liveTask/index/watchLiveInit",
+ "json": _0x53ed48
+ };
+ let {
+ "result": _0x233a2a,
+ "statusCode": _0x38a917
+ } = await this.request(_0x415a4a),
+ _0x114319 = _0x1a907b.get(_0x233a2a, "code", -1);
+ if (_0x114319 == 0) {
+ await _0x1a907b.wait(15000);
+ await this.watchLive(_0x29c1b8, _0x233a2a?.["data"]);
+ } else {
+ let _0x346c86 = _0x233a2a?.["gsm".split("").reverse().join("")] || _0x233a2a?.["gsMtluoser".split("").reverse().join("")] || _0x233a2a?.["rorre".split("").reverse().join("")] || _0x233a2a?.["gsm".split("").reverse().join("")] || "";
+ this.log("[播直看观始开".split("").reverse().join("") + _0x29c1b8 + "]失败[" + _0x114319 + "]: " + _0x346c86);
+ }
+ } catch (_0x25a8e8) {
+ console.log(_0x25a8e8);
+ }
+ }
+ async ["watchLive"](_0x37f1a7, _0x3101aa, _0x40985a = {}) {
+ var _0x3f5092 = 17;
+ let _0x454bd3 = this.rsCkk;
+ _0x3f5092 = 0;
+ let _0x47d645 = this.getrsCk;
+ _0x47d645 = this.rsFun().getck();
+ _0x454bd3 = await this.parseCookies(_0x47d645, _0x454bd3);
+ try {
+ {
+ const _0x3d2d8d = {
+ "period": 1,
+ "liveId": _0x37f1a7,
+ "key": _0x3101aa
+ },
+ _0x36f81f = {
+ "ckvalue": _0x454bd3,
+ "fn": "watchLive",
+ "method": "post",
+ "url": "https://xbk.189.cn/xbkapi/lteration/liveTask/index/watchLive",
+ "json": _0x3d2d8d
+ };
+ let {
+ "result": _0x32f975,
+ "statusCode": _0x40e6de
+ } = await this.request(_0x36f81f),
+ _0x54187e = _0x1a907b.get(_0x32f975, "code", -1);
+ if (_0x54187e == 0) this.log("观看直播[" + _0x37f1a7 + "功成]".split("").reverse().join("")), await this.watchLiveInit();else {
+ let _0x5945ed = _0x32f975?.["msg"] || _0x32f975?.["gsMtluoser".split("").reverse().join("")] || _0x32f975?.["rorre".split("").reverse().join("")] || _0x32f975?.["gsm".split("").reverse().join("")] || "";
+ this.log("观看直播[" + _0x37f1a7 + "[败失]".split("").reverse().join("") + _0x54187e + "]: " + _0x5945ed);
+ }
+ }
+ } catch (_0x59b019) {
+ console.log(_0x59b019);
+ }
+ }
+ async ["watchVideo"](_0x2e6ab4, _0x1a0ab9 = {}) {
+ let _0x3016fd = this.rsCkk,
+ _0x11fdbc = this.getrsCk;
+ _0x11fdbc = this.rsFun().getck();
+ _0x3016fd = await this.parseCookies(_0x11fdbc, _0x3016fd);
+ try {
+ const _0x4533d5 = {
+ "articleId": _0x2e6ab4
+ },
+ _0x2c788c = {
+ "ckvalue": _0x3016fd,
+ "fn": "watchVideo",
+ "method": "post",
+ "url": "https://xbk.189.cn/xbkapi/lteration/liveTask/index/watchVideo",
+ "json": _0x4533d5
+ };
+ let {
+ "result": _0x19a463,
+ "statusCode": _0xc3f51e
+ } = await this.request(_0x2c788c),
+ _0x58b0b8 = _0x1a907b.get(_0x19a463, "edoc".split("").reverse().join(""), -1);
+ if (_0x58b0b8 == 0) this.log("观看短视频[" + _0x2e6ab4 + "]成功");else {
+ {
+ let _0x2d4f03 = _0x19a463?.["msg"] || _0x19a463?.["resoultMsg"] || _0x19a463?.["error"] || _0x19a463?.["msg"] || "";
+ this.log("观看短视频[" + _0x2e6ab4 + "]失败[" + _0x58b0b8 + "]: " + _0x2d4f03);
+ }
+ }
+ } catch (_0x4b6e2e) {
+ console.log(_0x4b6e2e);
+ }
+ }
+ async ["like"](_0x29115e, _0x2a697c = {}) {
+ let _0x318fce = this.rsCkk,
+ _0x205955 = this.getrsCk;
+ _0x205955 = this.rsFun().getck();
+ _0x318fce = await this.parseCookies(_0x205955, _0x318fce);
+ try {
+ {
+ const _0x8606f5 = {
+ "account": this.name,
+ "liveId": _0x29115e
+ },
+ _0x1dacfc = {
+ "ckvalue": _0x318fce,
+ "fn": "like",
+ "method": "post",
+ "url": "https://xbk.189.cn/xbkapi/lteration/room/like",
+ "json": _0x8606f5
+ };
+ let {
+ "result": _0x22c771,
+ "statusCode": _0x562c24
+ } = await this.request(_0x1dacfc),
+ _0x2e47a1 = _0x1a907b.get(_0x22c771, "edoc".split("").reverse().join(""), -1);
+ if (_0x2e47a1 == 0) {
+ this.log("[间播直赞点".split("").reverse().join("") + _0x29115e + "]成功");
+ } else {
+ {
+ let _0x5b1fb2 = _0x22c771?.["msg"] || _0x22c771?.["gsMtluoser".split("").reverse().join("")] || _0x22c771?.["rorre".split("").reverse().join("")] || _0x22c771?.["msg"] || "";
+ this.log("[间播直赞点".split("").reverse().join("") + _0x29115e + "[败失]".split("").reverse().join("") + _0x2e47a1 + "]: " + _0x5b1fb2);
+ }
+ }
+ }
+ } catch (_0x51f02a) {
+ console.log(_0x51f02a);
+ }
+ }
+ async ["sharingGetGold"](_0x280742 = {}) {
+ let _0xdd9b48 = this.rsCkk,
+ _0x2c29e0 = this.getrsCk;
+ _0x2c29e0 = this.rsFun().getck();
+ _0xdd9b48 = await this.parseCookies(_0x2c29e0, _0xdd9b48);
+ try {
+ let _0x2148d2 = {
+ "ckvalue": _0xdd9b48,
+ "fn": "sharingGetGold",
+ "method": "post",
+ "url": "https://appfuwu.189.cn:9021/query/sharingGetGold",
+ "json": {
+ "headerInfos": {
+ "code": "sharingGetGold",
+ "timestamp": _0x1a907b.time("yyyyMMddhhmmss"),
+ "broadAccount": "",
+ "broadToken": "",
+ "clientType": "#9.6.1#channel50#iPhone 14 Pro Max#",
+ "shopId": "20002",
+ "source": "110003",
+ "sourcePassword": "Sid98s",
+ "token": this.token,
+ "userLoginName": this.name
+ },
+ "content": {
+ "attach": "test",
+ "fieldData": {
+ "shareSource": "3",
+ "userId": this.userId,
+ "account": this.encode_phone()
+ }
+ }
+ }
+ },
+ {
+ "result": _0x5691a6,
+ "statusCode": _0x3d9213
+ } = await this.request(_0x2148d2),
+ _0x7781f1 = _0x1a907b.get(_0x5691a6?.["responseData"], "resultCode", -1);
+ if (_0x7781f1 == "0000") this.log("功成享分".split("").reverse().join(""));else {
+ {
+ let _0x788cc4 = _0x5691a6?.["msg"] || _0x5691a6?.["ataDesnopser".split("").reverse().join("")]?.["resultDesc"] || _0x5691a6?.["rorre".split("").reverse().join("")] || _0x5691a6?.["gsm".split("").reverse().join("")] || "";
+ this.log("分享失败[" + _0x7781f1 + " :]".split("").reverse().join("") + _0x788cc4);
+ }
+ }
+ } catch (_0x24702a) {
+ console.log(_0x24702a);
+ }
+ }
+ async ["month_jml_login"](_0x3495c5 = {}) {
+ let _0x46dace = this.rsCkk,
+ _0x18399d = this.getrsCk;
+ _0x18399d = this.rsFun().getck();
+ _0x46dace = await this.parseCookies(_0x18399d, _0x46dace);
+ try {
+ const _0x519f42 = {
+ "ticket": this.ticket
+ };
+ let _0x2c5273 = {
+ "ckvalue": _0x46dace,
+ "fn": "month_jml_login",
+ "method": "get",
+ "url": "https://wappark.189.cn/jt-sign/ssoHomLoginCommon",
+ "searchParams": _0x519f42
+ },
+ {
+ "result": _0x80b0ed,
+ "statusCode": _0x41466b
+ } = await this.request(_0x2c5273),
+ _0x330b93 = _0x1a907b.get(_0x80b0ed, "resoultCode", _0x41466b);
+ if (_0x330b93 == 0) {
+ this.log("城翼yb-功成录登礼面见".split("").reverse().join(""));
+ let _0x3795bd = _0x1a907b.get(_0x80b0ed, "resoultMsg") || "功成录登".split("").reverse().join("");
+ await this.month_jml_getInfo(_0x3795bd);
+ await this.month_jml_check(_0x1a907b.get(_0x80b0ed, "dIcca".split("").reverse().join("")));
+ await this.month_jml_getCount(_0x1a907b.get(_0x80b0ed, "dIcca".split("").reverse().join("")));
+ await this.month_jml_refresh(_0x1a907b.get(_0x80b0ed, "accId"));
+ await this.month_jml_lotteryrefresh(_0x1a907b.get(_0x80b0ed, "accId"));
+ } else {
+ let _0x47eb8d = _0x80b0ed?.["gsm".split("").reverse().join("")] || _0x80b0ed?.["resoultMsg"] || _0x80b0ed?.["rorre".split("").reverse().join("")] || "";
+ this.log("[败失录登礼面见月每".split("").reverse().join("") + _0x330b93 + " :]".split("").reverse().join("") + _0x47eb8d);
+ }
+ } catch (_0x35a93f) {
+ console.log(_0x35a93f);
+ }
+ }
+ async ["month_jml_check"](_0x3a5e59, _0x510f6e = {}) {
+ var _0xf8c9ae = 14;
+ let _0x5dfb2f = this.rsCkk;
+ _0xf8c9ae = 7;
+ var _0x30620e = 5;
+ let _0x61990b = this.getrsCk;
+ _0x30620e = "bnbbpq";
+ _0x61990b = this.rsFun().getck();
+ _0x5dfb2f = await this.parseCookies(_0x61990b, _0x5dfb2f);
+ try {
+ const _0x310acd = {
+ "phone": _0x3a5e59
+ };
+ let _0xcdcff2 = {
+ "ckvalue": _0x5dfb2f,
+ "fn": "month_jml_check",
+ "method": "post",
+ "url": "https://wappark.189.cn/jt-sign/welfare/check",
+ "json": {
+ "para": this.encrypt_para(_0x310acd)
+ }
+ },
+ {
+ "result": _0x5a7a54,
+ "statusCode": _0x4eae22
+ } = await this.request(_0xcdcff2),
+ _0x4206ab = _0x1a907b.get(_0x5a7a54, "resoultCode", _0x4eae22);
+ if (_0x4206ab == 0) this.jml_tokenFlag = _0x5a7a54?.["atad".split("").reverse().join("")]?.["flag"], this.log("见面礼 " + _0x5a7a54.resoultMsg), await this.month_jml_receive(_0x3a5e59);else {
+ let _0xba31ac = _0x5a7a54?.["msg"] || _0x5a7a54?.["resoultMsg"] || _0x5a7a54?.["rorre".split("").reverse().join("")] || "";
+ this.jml_tokenFlag = _0x5a7a54?.["data"]?.["galf".split("").reverse().join("")];
+ this.log("领取每月见面礼失败[" + _0x4206ab + "]: " + _0xba31ac);
+ }
+ } catch (_0x11f235) {
+ console.log(_0x11f235);
+ }
+ }
+ async ["month_jml_getInfo"](_0x7f140, _0x2054b3 = {}) {
+ {
+ let _0x34b567 = this.rsCkk,
+ _0x238dbd = this.getrsCk;
+ _0x238dbd = this.rsFun().getck();
+ _0x34b567 = await this.parseCookies(_0x238dbd, _0x34b567);
+ try {
+ const _0x38a988 = {
+ "configCode": "nxflb"
+ };
+ let _0x43f2bf = {
+ "ckvalue": _0x34b567,
+ "fn": "month_jml_getInfo",
+ "method": "post",
+ "url": "https://wappark.189.cn/jt-sign/welfare/getInfo",
+ "json": {
+ "para": this.encrypt_para(_0x38a988)
+ }
+ },
+ {
+ "result": _0x3e535f,
+ "statusCode": _0x1aef69
+ } = await this.request(_0x43f2bf),
+ _0x15cf8a = _0x1a907b.get(_0x3e535f, "resoultCode", _0x1aef69);
+ if (_0x15cf8a == 0) {
+ let _0x5160ca = _0x3e535f.data.map(_0x3a8d8a => _0x3a8d8a.title) || [];
+ this.jml_tokenFlag = _0x3e535f?.["data"]?.["flag"];
+ this.log("见面礼" + _0x7f140 + ": " + _0x5160ca.join(" ,".split("").reverse().join("")));
+ } else {
+ let _0x1dd2e9 = _0x3e535f?.["gsm".split("").reverse().join("")] || _0x3e535f?.["gsMtluoser".split("").reverse().join("")] || _0x3e535f?.["error"] || "";
+ this.log("领取每月见面礼失败[" + _0x15cf8a + " :]".split("").reverse().join("") + _0x1dd2e9);
+ }
+ } catch (_0x4a8bf0) {
+ console.log(_0x4a8bf0);
+ }
+ }
+ }
+ async ["month_jml_receive"](_0x41871e, _0x33741d = {}) {
+ var _0x3b5bbf = 6;
+ let _0x28d366 = this.rsCkk;
+ _0x3b5bbf = 6;
+ let _0x41751d = this.getrsCk;
+ _0x41751d = this.rsFun().getck();
+ _0x28d366 = await this.parseCookies(_0x41751d, _0x28d366);
+ try {
+ {
+ const _0x238b48 = {
+ "phone": _0x41871e,
+ "flag": this.jml_tokenFlag
+ };
+ let _0x337c6f = {
+ "ckvalue": _0x28d366,
+ "fn": "month_jml_receive",
+ "method": "post",
+ "url": "https://wappark.189.cn/jt-sign/welfare/receive",
+ "json": {
+ "para": this.encrypt_para(_0x238b48)
+ }
+ },
+ {
+ "result": _0x44ffb4,
+ "statusCode": _0x35e0ee
+ } = await this.request(_0x337c6f),
+ _0x85b1d5 = _0x1a907b.get(_0x44ffb4, "resoultCode", -1);
+ if (_0x85b1d5 == 0) this.log("见面礼:" + _0x44ffb4?.["resoultMsg"]);else {
+ {
+ let _0x343ed1 = _0x44ffb4?.["msg"] || _0x44ffb4?.["resoultMsg"] || _0x44ffb4?.["error"] || "";
+ this.log("领取APP抽奖次数失败[" + _0x85b1d5 + "]: " + _0x343ed1);
+ }
+ }
+ }
+ } catch (_0x364a95) {
+ console.log(_0x364a95);
+ }
+ }
+ async ["month_jml_getCount"](_0x3a8f24, _0x200ed1 = {}) {
+ {
+ let _0x5ea68f,
+ _0x4c2ebd = this.rsCkk;
+ _0x5ea68f = "iefjco".split("").reverse().join("");
+ var _0x62fb17 = 11;
+ let _0x24f64b = this.getrsCk;
+ _0x62fb17 = 7;
+ _0x24f64b = this.rsFun().getck();
+ _0x4c2ebd = await this.parseCookies(_0x24f64b, _0x4c2ebd);
+ try {
+ const _0x5c0fc1 = {
+ "phone": _0x3a8f24,
+ "flag": this.jml_tokenFlag
+ };
+ let _0x4a22b5 = {
+ "ckvalue": _0x4c2ebd,
+ "fn": "month_jml_getCount",
+ "method": "post",
+ "url": "https://wappark.189.cn/jt-sign/lottery/getCount",
+ "json": {
+ "para": this.encrypt_para(_0x5c0fc1)
+ }
+ },
+ {
+ "result": _0x4b70e4,
+ "statusCode": _0x1e351
+ } = await this.request(_0x4a22b5),
+ _0x25282e = _0x1a907b.get(_0x4b70e4, "edoc".split("").reverse().join(""), -1);
+ if (_0x25282e == 0) {
+ {
+ let _0x123ff0 = _0x4b70e4?.["video"]?.["pam".split("").reverse().join("")](_0x21e024 => _0x21e024.videoType) || [],
+ _0x136cfa = _0x59860f.filter(_0x10009e => !_0x123ff0.includes(_0x10009e)),
+ _0x172d12 = false;
+ for (let _0x165bd4 of _0x136cfa) {
+ {
+ if (_0x172d12) {
+ let _0x391f3e = Math.floor(Math.random() * 5000) + 5000;
+ await _0x1a907b.wait(_0x391f3e);
+ }
+ await this.month_jml_addVideoCount(_0x3a8f24, _0x165bd4);
+ _0x172d12 = true;
+ }
+ }
+ }
+ } else {
+ let _0x1ccd7a = _0x4b70e4?.["msg"] || _0x4b70e4?.["gsMtluoser".split("").reverse().join("")] || _0x4b70e4?.["error"] || "";
+ this.log("[败失数次会机奖抽得频视看询查".split("").reverse().join("") + _0x25282e + " :]".split("").reverse().join("") + _0x1ccd7a);
+ }
+ } catch (_0x1a8397) {
+ console.log(_0x1a8397);
+ }
+ }
+ }
+ async ["month_jml_addVideoCount"](_0x3588dd, _0x2e8637, _0x43a1b7 = {}) {
+ let _0xa50529 = this.rsCkk;
+ var _0x43c847 = 11;
+ let _0x4338c1 = this.getrsCk;
+ _0x43c847 = 1;
+ _0x4338c1 = this.rsFun().getck();
+ _0xa50529 = await this.parseCookies(_0x4338c1, _0xa50529);
+ try {
+ const _0x17baec = {
+ "phone": _0x3588dd,
+ "videoType": _0x2e8637,
+ "flag": this.jml_tokenFlag
+ };
+ let _0x48ea21 = {
+ "ckvalue": _0xa50529,
+ "fn": "month_jml_addVideoCount",
+ "method": "post",
+ "url": "https://wappark.189.cn/jt-sign/lottery/addVideoCount",
+ "json": {
+ "para": this.encrypt_para(_0x17baec)
+ }
+ },
+ {
+ "result": _0x25ea16,
+ "statusCode": _0x2ee8b8
+ } = await this.request(_0x48ea21),
+ _0x3c6225 = _0x1a907b.get(_0x25ea16, "edoc".split("").reverse().join(""), -1);
+ if (_0x3c6225 == 0) this.log("[频视看".split("").reverse().join("") + _0x2e8637 + "]得抽奖机会成功");else {
+ {
+ let _0x34bda3 = _0x25ea16?.["gsm".split("").reverse().join("")] || _0x25ea16?.["gsMtluoser".split("").reverse().join("")] || _0x25ea16?.["error"] || "";
+ this.log("[频视看".split("").reverse().join("") + _0x2e8637 + "[败失会机奖抽得]".split("").reverse().join("") + _0x3c6225 + "]: " + _0x34bda3);
+ }
+ }
+ } catch (_0x1b6d99) {
+ console.log(_0x1b6d99);
+ }
+ }
+ async ["month_jml_refresh"](_0x336f0c, _0x4fea48 = {}) {
+ let _0x25b074,
+ _0x587292 = this.rsCkk;
+ _0x25b074 = 12;
+ let _0x14fe49 = this.getrsCk;
+ _0x14fe49 = this.rsFun().getck();
+ _0x587292 = await this.parseCookies(_0x14fe49, _0x587292);
+ try {
+ const _0x2d9be4 = {
+ "phone": _0x336f0c
+ };
+ let _0x4cb729 = {
+ "ckvalue": _0x587292,
+ "fn": "month_jml_refresh",
+ "method": "post",
+ "url": "https://wappark.189.cn/jt-sign/welfare/receiveInfo",
+ "json": {
+ "para": this.encrypt_para(_0x2d9be4)
+ }
+ },
+ {
+ "result": _0x1bde01,
+ "statusCode": _0x4a7ac8
+ } = await this.request(_0x4cb729),
+ _0xe586bc = _0x1a907b.get(_0x1bde01, "resoultCode", -1);
+ if (_0xe586bc == "0") this.log("见面礼包领取到:" + _0x1bde01.data.map(_0xd849f5 => _0xd849f5.prizeName) || []);else {
+ let _0xa3cff = _0x1bde01?.["msg"] || _0x1bde01?.["resoultMsg"] || _0x1bde01?.["error"] || "";
+ this.log("查询抽奖次数失败[" + _0xe586bc + "]: " + _0xa3cff);
+ }
+ } catch (_0x13cced) {
+ console.log(_0x13cced);
+ }
+ }
+ async ["month_jml_lotteryRevice"](_0x90043e, _0x50d070 = {}) {
+ {
+ var _0x238e72 = 6;
+ let _0x48a96e = this.rsCkk;
+ _0x238e72 = 10;
+ let _0x23bb35 = this.getrsCk;
+ _0x23bb35 = this.rsFun().getck();
+ _0x48a96e = await this.parseCookies(_0x23bb35, _0x48a96e);
+ try {
+ const _0x21bcee = {
+ "phone": _0x90043e,
+ "flag": this.jml_tokenFlag
+ };
+ let _0x102aed = {
+ "ckvalue": _0x48a96e,
+ "fn": "month_jml_lotteryRevice",
+ "method": "post",
+ "url": "https://wapside.189.cn:9001/jt-sign/lottery/lotteryRevice",
+ "json": {
+ "para": this.encrypt_para(_0x21bcee)
+ }
+ },
+ {
+ "result": _0x3b42ac,
+ "statusCode": _0x16206b
+ } = await this.request(_0x102aed),
+ _0x2fade7 = _0x1a907b.get(_0x3b42ac, "edoc".split("").reverse().join(""), -1);
+ if (_0x2fade7 == 0) {
+ let {
+ "rname": _0xc04c84,
+ "id": _0xd95992
+ } = _0x3b42ac;
+ const _0x5cefa0 = {
+ "notify": true
+ };
+ this.log("app抽奖: " + _0xc04c84, _0x5cefa0);
+ } else {
+ {
+ let _0x48f7d0 = _0x3b42ac?.["msg"] || _0x3b42ac?.["resoultMsg"] || _0x3b42ac?.["error"] || "";
+ this.log("[奖抽ppa".split("").reverse().join("") + _0x2fade7 + " :]".split("").reverse().join("") + _0x48f7d0);
+ }
+ }
+ } catch (_0x2873f8) {
+ console.log(_0x2873f8);
+ }
+ }
+ }
+ async ["month_jml_lotteryrefresh"](_0xd47f09, _0x45de11 = {}) {
+ var _0x127c16 = 5;
+ let _0x261187 = this.rsCkk;
+ _0x127c16 = 16;
+ let _0xc13f02 = this.getrsCk;
+ _0xc13f02 = this.rsFun().getck();
+ _0x261187 = await this.parseCookies(_0xc13f02, _0x261187);
+ try {
+ {
+ const _0x30527d = {
+ "phone": _0xd47f09,
+ "flag": this.jml_tokenFlag
+ };
+ let _0x450457 = {
+ "ckvalue": _0x261187,
+ "fn": "month_jml_refresh",
+ "method": "post",
+ "url": "https://wappark.189.cn/jt-sign/lottery/refresh",
+ "json": {
+ "para": this.encrypt_para(_0x30527d)
+ }
+ },
+ {
+ "result": _0x4f5aa0,
+ "statusCode": _0x201c76
+ } = await this.request(_0x450457),
+ _0x46deea = _0x1a907b.get(_0x4f5aa0, "resoultCode", -1);
+ if (_0x46deea == -1 || _0x46deea == "1-".split("").reverse().join("")) {
+ let _0x563c6a = _0x4f5aa0?.["rNumber"] || 0;
+ this.log("可以抽奖" + _0x563c6a + "次");
+ let _0x384df8 = false;
+ while (_0x563c6a-- > 0) {
+ if (_0x384df8) {
+ let _0x145134 = Math.floor(Math.random() * 5000) + 3000;
+ await _0x1a907b.wait(_0x145134);
+ }
+ await this.month_jml_lotteryRevice(_0xd47f09);
+ _0x384df8 = true;
+ }
+ } else {
+ let _0x5a93ca = _0x4f5aa0?.["msg"] || _0x4f5aa0?.["resoultMsg"] || _0x4f5aa0?.["error"] || "";
+ this.log("[败失数次奖抽询查".split("").reverse().join("") + _0x46deea + "]: " + _0x5a93ca);
+ }
+ }
+ } catch (_0x2b29df) {
+ console.log(_0x2b29df);
+ }
+ }
+ async ["rpc_request"](_0x57a466, _0x4a841c = "teg".split("").reverse().join(""), _0x14f9f0 = null) {
+ const _0xe2ea84 = new Error(),
+ _0x2637e9 = _0xe2ea84.stack,
+ _0x232c77 = _0x2637e9.split("\n"),
+ _0x476021 = _0x232c77?.[2]?.["match"](new RegExp(")+w\\(.\\ssalCresU".split("").reverse().join(""), ""))?.[1] || "cpr".split("").reverse().join("");
+ let _0x108fff = {
+ "fn": _0x476021,
+ "method": "post",
+ "url": _0x51e8a6,
+ "json": {
+ "key": _0x4b73f5,
+ "method": _0x4a841c,
+ "url": _0x57a466.toString(),
+ "headers": this.get_mall_headers(),
+ "data": JSON.stringify(_0x14f9f0)
+ }
+ };
+ return await this.request(_0x108fff);
+ }
+ async ["auth_login"](_0x305c76 = {}) {
+ let _0x29ab06 = false;
+ try {
+ let _0x20e5e5 = this.ticket,
+ _0x9c040f = new URL("https://wapact.189.cn:9001/unified/user/login"),
+ _0x471647 = {
+ "ticket": _0x20e5e5,
+ "backUrl": encodeURIComponent("https://wapact.189.cn:9001/JinDouMall/JinDouMall_luckDraw.html?ticket=" + _0x20e5e5),
+ "platformCode": "P201010301",
+ "loginType": 2
+ },
+ {
+ "result": _0x318649,
+ "statusCode": _0x427b0a
+ } = await this.rpc_request(_0x9c040f, "TSOP".split("").reverse().join(""), _0x471647),
+ _0x3bb842 = _0x1a907b.get(_0x318649, "edoc".split("").reverse().join(""), _0x427b0a);
+ if (_0x3bb842 == 0) {
+ let {
+ "token": _0x1c90d7,
+ "sessionId": _0x34a1ea
+ } = _0x318649?.["biz"];
+ this.mall_token = _0x1c90d7;
+ _0x29ab06 = true;
+ } else {
+ {
+ let _0x33543a = _0x1a907b.get(_0x318649, "message", "");
+ this.log("[败失录登城商".split("").reverse().join("") + _0x3bb842 + "]: " + _0x33543a);
+ }
+ }
+ } catch (_0x22ecd6) {
+ console.log(_0x22ecd6);
+ } finally {
+ return _0x29ab06;
+ }
+ }
+ async ["queryInfo"](_0x5196aa = {}) {
+ let _0x540aa = this.rsCkk,
+ _0x177e1 = this.getrsCk;
+ _0x177e1 = this.rsFun().getck();
+ _0x540aa = await this.parseCookies(_0x177e1, _0x540aa);
+ try {
+ {
+ let _0x244386 = new URL("ofnIyreuq/ipa/nedlog/yawetag/1009:nc.981.tcapaw//:sptth".split("").reverse().join(""));
+ _0x244386.searchParams.append("_", Date.now().toString());
+ let {
+ "result": _0x1609b1,
+ "statusCode": _0x31ebe5
+ } = await this.rpc_request(_0x244386),
+ _0x3fcf26 = _0x1a907b.get(_0x1609b1, "code", _0x31ebe5);
+ if (_0x3fcf26 == 0) this.coin = _0x1609b1?.["biz"]?.["latoTtnuoma".split("").reverse().join("")] || this.coin, await this.queryTurnTable();else {
+ let _0x460eec = _0x1a907b.get(_0x1609b1, "egassem".split("").reverse().join(""), "");
+ this.log("[败失态状城商询查".split("").reverse().join("") + _0x3fcf26 + " :]".split("").reverse().join("") + _0x460eec);
+ }
+ }
+ } catch (_0x10a6a1) {
+ console.log(_0x10a6a1);
+ }
+ }
+ async ["queryTurnTable"](_0x13e9b2 = {}) {
+ try {
+ {
+ let _0x207904 = new URL("https://wapact.189.cn:9001/gateway/golden/api/queryTurnTable");
+ _0x207904.searchParams.append("epyTresu".split("").reverse().join(""), "1");
+ _0x207904.searchParams.append("_", Date.now().toString());
+ let {
+ "result": _0x418797,
+ "statusCode": _0x33f510
+ } = await this.rpc_request(_0x207904),
+ _0x234989 = _0x1a907b.get(_0x418797, "code", _0x33f510);
+ if (_0x234989 == 0) {
+ {
+ let _0x2478c7 = _0x418797?.["zib".split("").reverse().join("")]?.["tnuoCoaHoaix".split("").reverse().join("")] || 20,
+ _0x3d2007 = _0x418797?.["biz"]?.["wzTurntable"]?.["code"] || "";
+ _0x3d2007 ? await this.lottery_check(_0x3d2007, _0x2478c7) : this.log("DI奖抽盘转到取获有没".split("").reverse().join(""));
+ }
+ } else {
+ let _0x441c18 = _0x1a907b.get(_0x418797, "message", "");
+ this.log("获取转盘抽奖活动失败[" + _0x234989 + "]: " + _0x441c18);
+ }
+ }
+ } catch (_0x53d3e6) {
+ console.log(_0x53d3e6);
+ }
+ }
+ async ["lottery_check"](_0x5144b5, _0x239f8b, _0x27fbba = {}) {
+ try {
+ let _0x52b610 = new URL("kcehc/liated/dnats/yawetag/1009:nc.981.tcapaw//:sptth".split("").reverse().join(""));
+ _0x52b610.searchParams.append("activityId", _0x5144b5);
+ _0x52b610.searchParams.append("_", Date.now().toString());
+ let {
+ "result": _0x9a83dd,
+ "statusCode": _0x5333c5
+ } = await this.rpc_request(_0x52b610),
+ _0x3a983d = _0x1a907b.get(_0x9a83dd, "edoc".split("").reverse().join(""), _0x5333c5);
+ if (_0x3a983d == 0) {
+ let _0x4c2b07 = _0x9a83dd?.["zib".split("").reverse().join("")]?.["ofnItluser".split("").reverse().join("")]?.["chanceCount"] || 0;
+ this.log("转盘可以抽奖" + _0x4c2b07 + "次, 消耗金豆" + _0x239f8b + "/" + this.coin);
+ let _0x2dfc6f = false;
+ while (_0x4c2b07-- > 0 && this.coin >= _0x239f8b) {
+ _0x2dfc6f && (await _0x1a907b.wait(3000));
+ _0x2dfc6f = true;
+ await this.lottery_do(_0x5144b5, _0x239f8b);
+ }
+ } else {
+ {
+ let _0x5ce2c1 = _0x1a907b.get(_0x9a83dd, "message", "");
+ this.log("[败失数次奖抽盘转询查".split("").reverse().join("") + _0x3a983d + " :]".split("").reverse().join("") + _0x5ce2c1);
+ }
+ }
+ } catch (_0x3d0a2c) {
+ console.log(_0x3d0a2c);
+ }
+ }
+ async ["lottery_do"](_0xf447fc, _0x2d0b83 = {}) {
+ try {
+ {
+ let _0x28e248 = new URL("https://wapact.189.cn:9001/gateway/golden/api/lottery");
+ const _0x594e1d = {
+ "activityId": _0xf447fc
};
let {
- result: _0x50d02f,
- statusCode: _0x69dd47
- } = await this.rpc_request(_0x1794f8, "POST", _0xe8218a);
- let _0x301247 = _0x49dfef.get(_0x50d02f, "code", _0x69dd47);
- if (_0x301247 == 0) {
- this.coin = _0x50d02f?.["biz"]?.["amountTotal"] || this.coin - xiaoHaoCount;
- let _0x3d75c1 = _0x50d02f?.["biz"]?.["resultCode"];
- let _0x2f6e42 = "";
- switch (_0x3d75c1) {
- case "0":
- {
- let _0x420d18 = _0x50d02f?.["biz"]?.["resultInfo"]?.["winTitle"] || "空气";
- const _0x580cdf = {
- notify: true
- };
- this.log("转盘抽奖: " + _0x420d18, _0x580cdf);
- return;
- }
- case "412":
- {
- _0x2f6e42 = "抽奖次数已达上限";
- break;
- }
- case "413":
- case "420":
- {
- _0x2f6e42 = "金豆不足";
- break;
- }
- default:
- {
- this.log(": " + JSON.stringify(_0x50d02f));
- _0x2f6e42 = "未知原因";
- break;
- }
+ "result": _0x29a9e6,
+ "statusCode": _0x41c5a5
+ } = await this.rpc_request(_0x28e248, "POST", _0x594e1d),
+ _0xefa201 = _0x1a907b.get(_0x29a9e6, "code", _0x41c5a5);
+ if (_0xefa201 == 0) {
+ {
+ this.coin = _0x29a9e6?.["zib".split("").reverse().join("")]?.["amountTotal"] || this.coin - xiaoHaoCount;
+ let _0x2a89e2 = _0x29a9e6?.["biz"]?.["resultCode"],
+ _0x873825 = "";
+ switch (_0x2a89e2) {
+ case "0":
+ {
+ let _0x3d49ea = _0x29a9e6?.["biz"]?.["resultInfo"]?.["eltiTniw".split("").reverse().join("")] || "空气";
+ const _0x3da76d = {
+ "notify": true
+ };
+ this.log("转盘抽奖: " + _0x3d49ea, _0x3da76d);
+ return;
+ }
+ case "412":
+ {
+ _0x873825 = "抽奖次数已达上限";
+ break;
+ }
+ case "413":
+ case "420":
+ {
+ _0x873825 = "金豆不足";
+ break;
+ }
+ default:
+ {
+ {
+ this.log(": " + JSON.stringify(_0x29a9e6));
+ _0x873825 = "未知原因";
+ break;
+ }
+ }
}
- this.log("转盘抽奖失败[" + _0x3d75c1 + "]: " + _0x2f6e42);
+ this.log("转盘抽奖失败[" + _0x2a89e2 + "]: " + _0x873825);
+ }
} else {
- let _0x1e463b = _0x49dfef.get(_0x50d02f, "message", "");
- this.log("转盘抽奖错误[" + _0x301247 + "]: " + _0x1e463b);
+ let _0x323f95 = _0x1a907b.get(_0x29a9e6, "message", "");
+ this.log("[误错奖抽盘转".split("").reverse().join("") + _0xefa201 + " :]".split("").reverse().join("") + _0x323f95);
}
- } catch (_0x3f560e) {
- console.log(_0x3f560e);
+ }
+ } catch (_0x1a5486) {
+ console.log(_0x1a5486);
}
- }
- async userTask() {
-
- const _0x4d55e5 = {
- notify: true
+ }
+ async ["userTask"]() {
+ console.time("[号账".split("").reverse().join("") + this.index + "]" + "耗时");
+ const _0x331d29 = {
+ "notify": true
};
- _0x49dfef.log("\n======= 账号[" + this.index + "][" + this.name + "] =======", _0x4d55e5);
+ let _0x4cf85d,
+ _0x1e8b64 = this.name;
+ _0x4cf85d = "ocmgng";
+ _0x1a907b.log("\n======= 账号[" + this.index + "[]".split("").reverse().join("") + _0x1e8b64.slice(0, 3) + "****".split("").reverse().join("") + _0x1e8b64.slice(-4) + "] =======", _0x331d29);
if (!this.load_token() && !(await this.login())) {
- return;
+ return;
}
- if (!(await this.get_ticket())) {
- return;
- }
- if (!(await this.get_sign())) {
- return;
- }
-
+ if (!(await this.get_ticket())) return;
+ await this.get_sign();
+ await this.get_ticket();
await this.userCoinInfo();
-
await this.getLevelRightsList();
- await this.month_jml_preCost();
+ await this.month_jml_login();
await this.userStatusInfo();
await this.continueSignRecords();
- await this.homepage("hg_qd_zrwzjd");
+ await this.homepage("djzwrz_dq_gh".split("").reverse().join(""));
await this.getParadiseInfo();
- if (_0x16d3ea) {
- await this.userLotteryTask();
- }
+ _0x51e8a6 && (await this.userLotteryTask());
await this.userCoinInfo(true);
- }
- async userLotteryTask() {
- if (!(await this.auth_login())) {
- return;
- }
+ await _0x1a907b.wait(3000);
+ console.timeEnd("账号[" + this.index + "]" + "时耗".split("").reverse().join(""));
+ }
+ async ["userLotteryTask"]() {
+ if (!(await this.auth_login())) return;
await this.queryInfo();
+ }
}
-}
-!(async () => {
-
- _0x49dfef.read_env(_0x3f433d);
- _0xa0ff1b();
- for (let _0x28b102 of _0x49dfef.userList) {
- await _0x28b102.userTask();
+ !(async () => {
+ {
+ _0x1a907b.read_env(_0x173a90);
+ _0x5c3daa();
+ for (let _0x14b12a of _0x1a907b.userList) {
+ await _0x14b12a.userTask();
+ }
+ }
+ })().catch(_0x1b56c2 => _0x1a907b.log(_0x1b56c2)).finally(() => _0x1a907b.exitNow());
+ async function _0x42f36f(_0x3c60e7 = 0) {
+ {
+ let _0x27f4b7 = [];
+ try {
+ const _0x208967 = {
+ "fn": "auth",
+ "method": "get",
+ "url": _0x14c4e5,
+ "timeout": 20000
+ };
+ let {
+ "statusCode": _0x5cd022,
+ "result": _0x198999
+ } = await _0x42ec34.request(_0x208967);
+ if (_0x5cd022 != 200) return _0x3c60e7++ < _0x503087 && (_0x27f4b7 = await _0x42f36f(_0x3c60e7)), _0x27f4b7;
+ if (_0x198999?.["edoc".split("").reverse().join("")] == 0) {
+ _0x198999 = JSON.parse(_0x198999.data.file.data);
+ if (_0x198999?.["commonNotify"] && _0x198999.commonNotify.length > 0) {
+ const _0x395fa2 = {
+ "notify": true
+ };
+ _0x1a907b.log(_0x198999.commonNotify.join("\n") + "\n", _0x395fa2);
+ }
+ _0x198999?.["gsMnommoc".split("").reverse().join("")] && _0x198999.commonMsg.length > 0 && _0x1a907b.log(_0x198999.commonMsg.join("\n") + "\n");
+ if (_0x198999[_0x26154c]) {
+ {
+ let _0x18f4fa = _0x198999[_0x26154c];
+ _0x18f4fa.status == 0 ? _0x2a1f65 >= _0x18f4fa.version ? (_0x27f4b7 = true, _0x1a907b.log(_0x18f4fa.msg[_0x18f4fa.status]), _0x1a907b.log(_0x18f4fa.updateMsg), _0x1a907b.log(":是本版本脚的行运在现".split("").reverse().join("") + _0x2a1f65 + ",最新脚本版本:" + _0x18f4fa.latestVersion)) : _0x1a907b.log(_0x18f4fa.versionMsg) : _0x1a907b.log(_0x18f4fa.msg[_0x18f4fa.status]);
+ }
+ } else {
+ _0x1a907b.log(_0x198999.errorMsg);
+ }
+ } else _0x3c60e7++ < _0x503087 && (_0x27f4b7 = await _0x42f36f(_0x3c60e7));
+ } catch (_0xb3a78e) {
+ _0x1a907b.log(_0xb3a78e);
+ } finally {
+ return _0x27f4b7;
+ }
+ }
}
-})().catch(_0x3fccb3 => _0x49dfef.log(_0x3fccb3)).finally(() => _0x49dfef.exitNow());
-
-function _0x5370a4(_0x24412c) {
- return new class {
- constructor(_0x198bc4) {
- this.name = _0x198bc4;
+ function _0xf189dd(_0x58fdd8) {
+ return new class {
+ constructor(_0x35e98f) {
+ {
+ this.name = _0x35e98f;
this.startTime = Date.now();
- const _0x555858 = {
- time: true
+ const _0x2f9e2a = {
+ "time": true
};
- this.log("[" + this.name + "]开始运行\n", _0x555858);
+ this.log("[" + this.name + "]开始运行\n", _0x2f9e2a);
this.notifyStr = [];
this.notifyFlag = true;
this.userIdx = 0;
@@ -1769,217 +2306,262 @@ function _0x5370a4(_0x24412c) {
this.default_wait_interval = 1000;
this.default_wait_limit = 3600000;
this.default_wait_ahead = 0;
+ }
}
- log(_0x25f67c, _0x45847d = {}) {
- let _0x192e11 = {
- console: true
+ ["log"](_0x3a25ce, _0x250d9c = {}) {
+ const _0x53456a = {
+ "console": true
+ };
+ Object.assign(_0x53456a, _0x250d9c);
+ if (_0x53456a.time) {
+ {
+ let _0x52a2dc = _0x53456a.fmt || "ss:mm:hh".split("").reverse().join("");
+ _0x3a25ce = "[" + this.time(_0x52a2dc) + "]" + _0x3a25ce;
+ }
+ }
+ if (_0x53456a.notify) {
+ this.notifyStr.push(_0x3a25ce);
+ }
+ _0x53456a.console && console.log(_0x3a25ce);
+ }
+ ["get"](_0x175a36, _0x26ff7a, _0x222b0e = "") {
+ {
+ let _0x745ed7 = _0x222b0e;
+ if (_0x745ed7 === 412) {
+ let _0x51e64 = _0x3b0b0e.parseFromString(_0x175a36, "lmx/noitacilppa".split("").reverse().join(""));
+ _0x51e64 == undefined && (_0x51e64 = _0x3b0b0e.parseFromString(_0x175a36.response.body, "application/xml"));
+ var _0x2ea96e = 15;
+ const _0x1ab896 = _0x51e64.getElementsByTagName("meta")[1]?.["getAttribute"]("tnetnoc".split("").reverse().join(""));
+ _0x2ea96e = 5;
+ const _0x12706b = _0x51e64.getElementsByTagName("meta")[1]?.["getAttribute"]("id"),
+ _0x33d574 = _0x51e64.getElementsByTagName("script");
+ var _0x283812 = 15;
+ const _0x1c9de1 = Array.from(_0x33d574).find(_0x6c5341 => {
+ var _0x28f145 = 10;
+ const _0x5f1bb6 = _0x6c5341.textContent || _0x6c5341.text;
+ _0x28f145 = 5;
+ return _0x5f1bb6.includes("$_ts=window['$_ts']");
+ });
+ _0x283812 = "lkfdbl".split("").reverse().join("");
+ const _0x3b5a1a = Array.from(_0x33d574).find(_0x51d827 => _0x51d827.getAttribute("crs".split("").reverse().join("")));
+ if (_0x1c9de1 && _0x3b5a1a) {
+ let _0x97e26d;
+ const _0x484c30 = _0x1c9de1.textContent || _0x1c9de1.text;
+ _0x97e26d = 4;
+ const _0x520857 = _0x3b5a1a.getAttribute("crs".split("").reverse().join(""));
+ return {
+ "contentCODE": _0x1ab896,
+ "tsCODE": _0x484c30,
+ "srcAttribute": _0x520857,
+ "tsID": _0x12706b
+ };
+ }
+ return {
+ "contentCODE": null,
+ "tsCODE": null,
+ "srcAttribute": null
+ };
+ }
+ _0x175a36?.["hasOwnProperty"](_0x26ff7a) && (_0x745ed7 = _0x175a36[_0x26ff7a]);
+ return _0x745ed7;
+ }
+ }
+ ["pop"](_0x4ce15d, _0x2120b0, _0x272aea = "") {
+ {
+ let _0x3af129 = _0x272aea;
+ _0x4ce15d?.["ytreporPnwOsah".split("").reverse().join("")](_0x2120b0) && (_0x3af129 = _0x4ce15d[_0x2120b0], delete _0x4ce15d[_0x2120b0]);
+ return _0x3af129;
+ }
+ }
+ ["copy"](_0x3d5675) {
+ return Object.assign({}, _0x3d5675);
+ }
+ ["read_env"](_0x4bcb87) {
+ let _0x1a7889 = _0x5dcb01.map(_0x4310e6 => process.env[_0x4310e6]);
+ for (let _0x606e30 of _0x1a7889.filter(_0x453b93 => !!_0x453b93)) {
+ for (let _0x198550 of _0x606e30.split(_0xed67c1).filter(_0x3bf24a => !!_0x3bf24a)) {
+ if (this.userList.includes(_0x198550)) {
+ continue;
+ }
+ this.userList.push(new _0x4bcb87(_0x198550));
+ }
+ }
+ this.userCount = this.userList.length;
+ if (!this.userCount) {
+ const _0x49da5b = {
+ "notify": true
};
- Object.assign(_0x192e11, _0x45847d);
- if (_0x192e11.time) {
- let _0x58f096 = _0x192e11.fmt || "hh:mm:ss";
- _0x25f67c = "[" + this.time(_0x58f096) + "]" + _0x25f67c;
- }
- if (_0x192e11.notify) {
- this.notifyStr.push(_0x25f67c);
- }
- if (_0x192e11.console) {
- console.log(_0x25f67c);
- }
+ this.log("未找到变量,请检查变量" + _0x5dcb01.map(_0x1b005b => "[" + _0x1b005b + "]").join("或"), _0x49da5b);
+ return false;
+ }
+ this.log("到找共".split("").reverse().join("") + this.userCount + "个账号");
+ return true;
}
- get(_0x2ecf4d, _0x5800fb, _0x1ff76e = "") {
- let _0x5a663b = _0x1ff76e;
- _0x2ecf4d?.["hasOwnProperty"](_0x5800fb) && (_0x5a663b = _0x2ecf4d[_0x5800fb]);
- return _0x5a663b;
+ ["time"](_0x49ad16, _0x2b5063 = null) {
+ {
+ let _0x31a923 = _0x2b5063 ? new Date(_0x2b5063) : new Date(),
+ _0x55fc08 = {
+ "M+": _0x31a923.getMonth() + 1,
+ "d+": _0x31a923.getDate(),
+ "h+": _0x31a923.getHours(),
+ "m+": _0x31a923.getMinutes(),
+ "s+": _0x31a923.getSeconds(),
+ "q+": Math.floor((_0x31a923.getMonth() + 3) / 3),
+ "S": this.padStr(_0x31a923.getMilliseconds(), 3)
+ };
+ new RegExp(")+y(".split("").reverse().join(""), "").test(_0x49ad16) && (_0x49ad16 = _0x49ad16.replace(RegExp.$1, (_0x31a923.getFullYear() + "").substr(4 - RegExp.$1.length)));
+ for (let _0x301ea9 in _0x55fc08) new RegExp("(" + _0x301ea9 + ")").test(_0x49ad16) && (_0x49ad16 = _0x49ad16.replace(RegExp.$1, 1 == RegExp.$1.length ? _0x55fc08[_0x301ea9] : ("00" + _0x55fc08[_0x301ea9]).substr(("" + _0x55fc08[_0x301ea9]).length)));
+ return _0x49ad16;
+ }
}
- pop(_0x2ae8ec, _0xbb54f6, _0x9c8563 = "") {
- let _0x213044 = _0x9c8563;
- _0x2ae8ec?.["hasOwnProperty"](_0xbb54f6) && (_0x213044 = _0x2ae8ec[_0xbb54f6], delete _0x2ae8ec[_0xbb54f6]);
- return _0x213044;
+ async ["showmsg"]() {
+ if (!this.notifyFlag) return;
+ if (!this.notifyStr.length) return;
+ var _0x5b49dd = require("./sendNotify");
+ this.log("\n============== 推送 ==============");
+ await _0x5b49dd.sendNotify(this.name, this.notifyStr.join("\n"));
}
- copy(_0x1fbe5b) {
- return Object.assign({}, _0x1fbe5b);
+ ["padStr"](_0x512e4d, _0x1b10cc, _0x42a247 = {}) {
+ let _0x2d42d6 = _0x42a247.padding || "0",
+ _0x451531 = _0x42a247.mode || "l",
+ _0x5a8b0c = String(_0x512e4d),
+ _0x1903c4 = _0x1b10cc > _0x5a8b0c.length ? _0x1b10cc - _0x5a8b0c.length : 0,
+ _0x585dc1 = "";
+ for (let _0x3a78c2 = 0; _0x3a78c2 < _0x1903c4; _0x3a78c2++) {
+ _0x585dc1 += _0x2d42d6;
+ }
+ _0x451531 == "r" ? _0x5a8b0c = _0x5a8b0c + _0x585dc1 : _0x5a8b0c = _0x585dc1 + _0x5a8b0c;
+ return _0x5a8b0c;
}
- read_env(_0x412e83) {
- let _0x1267c5 = _0x4aec53.map(_0x166c56 => process.env[_0x166c56]);
- for (let _0x2b0da2 of _0x1267c5.filter(_0x22b120 => !!_0x22b120)) {
- for (let _0x4465a3 of _0x2b0da2.split(_0x1876a7).filter(_0x3c7dca => !!_0x3c7dca)) {
- if (this.userList.includes(_0x4465a3)) {
- continue;
- }
- this.userList.push(new _0x412e83(_0x4465a3));
- }
+ ["json2str"](_0x3eed1a, _0x2277e1, _0x2069f6 = false) {
+ {
+ let _0x3af26c = [];
+ for (let _0x301b83 of Object.keys(_0x3eed1a).sort()) {
+ let _0x4baceb = _0x3eed1a[_0x301b83];
+ if (_0x4baceb && _0x2069f6) {
+ _0x4baceb = encodeURIComponent(_0x4baceb);
+ }
+ _0x3af26c.push(_0x301b83 + "=" + _0x4baceb);
}
- this.userCount = this.userList.length;
- if (!this.userCount) {
- const _0x3d5d5 = {
- notify: true
- };
- this.log("未找到变量,请检查变量" + _0x4aec53.map(_0x56423f => "[" + _0x56423f + "]").join("或"), _0x3d5d5);
- return false;
- }
- this.log("共找到" + this.userCount + "个账号");
- return true;
+ return _0x3af26c.join(_0x2277e1);
+ }
}
- time(_0x43e381, _0x1822e0 = null) {
- let _0x1de2f7 = _0x1822e0 ? new Date(_0x1822e0) : new Date();
- let _0x180e96 = {
- "M+": _0x1de2f7.getMonth() + 1,
- "d+": _0x1de2f7.getDate(),
- "h+": _0x1de2f7.getHours(),
- "m+": _0x1de2f7.getMinutes(),
- "s+": _0x1de2f7.getSeconds(),
- "q+": Math.floor((_0x1de2f7.getMonth() + 3) / 3),
- S: this.padStr(_0x1de2f7.getMilliseconds(), 3)
+ ["str2json"](_0x45d5f2, _0x2ce388 = false) {
+ {
+ let _0x2c969d = {};
+ for (let _0x576f5e of _0x45d5f2.split("&")) {
+ if (!_0x576f5e) continue;
+ let _0x2c2045 = _0x576f5e.indexOf("=");
+ if (_0x2c2045 == -1) {
+ continue;
+ }
+ let _0x5057c3 = _0x576f5e.substr(0, _0x2c2045),
+ _0x1775cc = _0x576f5e.substr(_0x2c2045 + 1);
+ _0x2ce388 && (_0x1775cc = decodeURIComponent(_0x1775cc));
+ _0x2c969d[_0x5057c3] = _0x1775cc;
+ }
+ return _0x2c969d;
+ }
+ }
+ ["randomPattern"](_0x17c712, _0x20d7b2 = "abcdef0123456789") {
+ let _0x1e24a4 = "";
+ for (let _0x437e45 of _0x17c712) {
+ {
+ if (_0x437e45 == "x") _0x1e24a4 += _0x20d7b2.charAt(Math.floor(Math.random() * _0x20d7b2.length));else {
+ _0x437e45 == "X" ? _0x1e24a4 += _0x20d7b2.charAt(Math.floor(Math.random() * _0x20d7b2.length)).toUpperCase() : _0x1e24a4 += _0x437e45;
+ }
+ }
+ }
+ return _0x1e24a4;
+ }
+ ["randomUuid"]() {
+ return this.randomPattern("xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx");
+ }
+ ["randomString"](_0x50286f, _0x4e74ca = "9876543210fedcba".split("").reverse().join("")) {
+ {
+ let _0x20743d = "";
+ for (let _0x2d3169 = 0; _0x2d3169 < _0x50286f; _0x2d3169++) {
+ _0x20743d += _0x4e74ca.charAt(Math.floor(Math.random() * _0x4e74ca.length));
+ }
+ return _0x20743d;
+ }
+ }
+ ["randomList"](_0x161639) {
+ let _0x5ac11c = Math.floor(Math.random() * _0x161639.length);
+ return _0x161639[_0x5ac11c];
+ }
+ ["wait"](_0x518432) {
+ return new Promise(_0x3b888a => setTimeout(_0x3b888a, _0x518432));
+ }
+ async ["exitNow"]() {
+ await this.showmsg();
+ let _0x1b5003 = Date.now(),
+ _0x45c91d = (_0x1b5003 - this.startTime) / 1000;
+ this.log("");
+ const _0x170131 = {
+ "time": true
+ };
+ this.log("[" + this.name + "了行运共,束结行运]".split("").reverse().join("") + _0x45c91d + "秒", _0x170131);
+ process.exit(0);
+ }
+ ["normalize_time"](_0x52a126, _0xea5f47 = {}) {
+ {
+ let _0x54f8e5 = _0xea5f47.len || this.default_timestamp_len;
+ _0x52a126 = _0x52a126.toString();
+ let _0x2a4248 = _0x52a126.length;
+ while (_0x2a4248 < _0x54f8e5) {
+ _0x52a126 += "0";
+ }
+ _0x2a4248 > _0x54f8e5 && (_0x52a126 = _0x52a126.slice(0, 13));
+ return parseInt(_0x52a126);
+ }
+ }
+ async ["wait_until"](_0x549baf, _0xbd7457 = {}) {
+ let _0x35f3ea = _0xbd7457.logger || this,
+ _0x475b69 = _0xbd7457.interval || this.default_wait_interval,
+ _0x5ed611 = _0xbd7457.limit || this.default_wait_limit,
+ _0x17e7fa = _0xbd7457.ahead || this.default_wait_ahead;
+ if (typeof _0x549baf == "string" && _0x549baf.includes(":")) {
+ if (_0x549baf.includes("-")) _0x549baf = new Date(_0x549baf).getTime();else {
+ {
+ let _0x4619cd = this.time("yyyy-MM-dd ");
+ _0x549baf = new Date(_0x4619cd + _0x549baf).getTime();
+ }
+ }
+ }
+ let _0x1cd343 = this.normalize_time(_0x549baf) - _0x17e7fa,
+ _0x50d161 = this.time("S.ss:mm:hh".split("").reverse().join(""), _0x1cd343),
+ _0x3628a2 = Date.now();
+ _0x3628a2 > _0x1cd343 && (_0x1cd343 += 86400000);
+ let _0x2fb0c8 = _0x1cd343 - _0x3628a2;
+ if (_0x2fb0c8 > _0x5ed611) {
+ const _0x2e3e5c = {
+ "time": true
};
- /(y+)/.test(_0x43e381) && (_0x43e381 = _0x43e381.replace(RegExp.$1, (_0x1de2f7.getFullYear() + "").substr(4 - RegExp.$1.length)));
- for (let _0x2cfbd9 in _0x180e96) new RegExp("(" + _0x2cfbd9 + ")").test(_0x43e381) && (_0x43e381 = _0x43e381.replace(RegExp.$1, 1 == RegExp.$1.length ? _0x180e96[_0x2cfbd9] : ("00" + _0x180e96[_0x2cfbd9]).substr(("" + _0x180e96[_0x2cfbd9]).length)));
- return _0x43e381;
- }
- async showmsg() {
- if (!this.notifyFlag) {
- return;
- }
- if (!this.notifyStr.length) {
- return;
- }
- var _0x2264e = require("./sendNotify");
- this.log("\n============== 推送 ==============");
- await _0x2264e.sendNotify(this.name, this.notifyStr.join("\n"));
- }
- padStr(_0x397014, _0x4fcca2, _0x1abd3c = {}) {
- let _0x10354b = _0x1abd3c.padding || "0";
- let _0x39ed4e = _0x1abd3c.mode || "l";
- let _0x3b33af = String(_0x397014);
- let _0x26e87b = _0x4fcca2 > _0x3b33af.length ? _0x4fcca2 - _0x3b33af.length : 0;
- let _0x3bb60f = "";
- for (let _0x30ac41 = 0; _0x30ac41 < _0x26e87b; _0x30ac41++) {
- _0x3bb60f += _0x10354b;
- }
- _0x39ed4e == "r" ? _0x3b33af = _0x3b33af + _0x3bb60f : _0x3b33af = _0x3bb60f + _0x3b33af;
- return _0x3b33af;
- }
- json2str(_0x123637, _0x402c90, _0x46e6c5 = false) {
- let _0x75d972 = [];
- for (let _0x2a0f42 of Object.keys(_0x123637).sort()) {
- let _0x2bc1ca = _0x123637[_0x2a0f42];
- if (_0x2bc1ca && _0x46e6c5) {
- _0x2bc1ca = encodeURIComponent(_0x2bc1ca);
- }
- _0x75d972.push(_0x2a0f42 + "=" + _0x2bc1ca);
- }
- return _0x75d972.join(_0x402c90);
- }
- str2json(_0x32e5fc, _0x43a064 = false) {
- let _0x4cd4ad = {};
- for (let _0x520529 of _0x32e5fc.split("&")) {
- if (!_0x520529) {
- continue;
- }
- let _0x1dc4e6 = _0x520529.indexOf("=");
- if (_0x1dc4e6 == -1) {
- continue;
- }
- let _0x4998d0 = _0x520529.substr(0, _0x1dc4e6);
- let _0x3ac012 = _0x520529.substr(_0x1dc4e6 + 1);
- if (_0x43a064) {
- _0x3ac012 = decodeURIComponent(_0x3ac012);
- }
- _0x4cd4ad[_0x4998d0] = _0x3ac012;
- }
- return _0x4cd4ad;
- }
- randomPattern(_0x369f7e, _0x4006d8 = "abcdef0123456789") {
- let _0x3140cf = "";
- for (let _0x8e9314 of _0x369f7e) {
- if (_0x8e9314 == "x") {
- _0x3140cf += _0x4006d8.charAt(Math.floor(Math.random() * _0x4006d8.length));
- } else {
- _0x8e9314 == "X" ? _0x3140cf += _0x4006d8.charAt(Math.floor(Math.random() * _0x4006d8.length)).toUpperCase() : _0x3140cf += _0x8e9314;
- }
- }
- return _0x3140cf;
- }
- randomUuid() {
- return this.randomPattern("xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx");
- }
- randomString(_0x33254d, _0x5f4306 = "abcdef0123456789") {
- let _0x440af6 = "";
- for (let _0x475f61 = 0; _0x475f61 < _0x33254d; _0x475f61++) {
- _0x440af6 += _0x5f4306.charAt(Math.floor(Math.random() * _0x5f4306.length));
- }
- return _0x440af6;
- }
- randomList(_0x4242c3) {
- let _0x35c76e = Math.floor(Math.random() * _0x4242c3.length);
- return _0x4242c3[_0x35c76e];
- }
- wait(_0x1dc9b5) {
- return new Promise(_0x54d822 => setTimeout(_0x54d822, _0x1dc9b5));
- }
- async exitNow() {
- await this.showmsg();
- let _0x4210ea = Date.now();
- let _0x52abd1 = (_0x4210ea - this.startTime) / 1000;
- this.log("");
- const _0x4bb8d6 = {
- time: true
+ _0x35f3ea.log("[间时标目离".split("").reverse().join("") + _0x50d161 + "于大]".split("").reverse().join("") + _0x5ed611 / 1000 + "秒,不等待", _0x2e3e5c);
+ } else {
+ const _0xe9ac59 = {
+ "time": true
};
- this.log("[" + this.name + "]运行结束,共运行了" + _0x52abd1 + "秒", _0x4bb8d6);
- process.exit(0);
- }
- normalize_time(_0x2e4fd9, _0x6f3e21 = {}) {
- let _0x2a3018 = _0x6f3e21.len || this.default_timestamp_len;
- _0x2e4fd9 = _0x2e4fd9.toString();
- let _0x54eeae = _0x2e4fd9.length;
- while (_0x54eeae < _0x2a3018) {
- _0x2e4fd9 += "0";
+ _0x35f3ea.log("[间时标目离".split("").reverse().join("") + _0x50d161 + "]还有" + _0x2fb0c8 / 1000 + "待等始开,秒".split("").reverse().join(""), _0xe9ac59);
+ while (_0x2fb0c8 > 0) {
+ {
+ let _0x2b13e7 = Math.min(_0x2fb0c8, _0x475b69);
+ await this.wait(_0x2b13e7);
+ _0x3628a2 = Date.now();
+ _0x2fb0c8 = _0x1cd343 - _0x3628a2;
+ }
}
- _0x54eeae > _0x2a3018 && (_0x2e4fd9 = _0x2e4fd9.slice(0, 13));
- return parseInt(_0x2e4fd9);
+ const _0x4fbb80 = {
+ "time": true
+ };
+ _0x35f3ea.log("待等成完已".split("").reverse().join(""), _0x4fbb80);
+ }
}
- async wait_until(_0x3145a4, _0x3938d8 = {}) {
- let _0x155654 = _0x3938d8.logger || this;
- let _0x808a8f = _0x3938d8.interval || this.default_wait_interval;
- let _0x1929a1 = _0x3938d8.limit || this.default_wait_limit;
- let _0x4fa992 = _0x3938d8.ahead || this.default_wait_ahead;
- if (typeof _0x3145a4 == "string" && _0x3145a4.includes(":")) {
- if (_0x3145a4.includes("-")) {
- _0x3145a4 = new Date(_0x3145a4).getTime();
- } else {
- let _0xbcf425 = this.time("yyyy-MM-dd ");
- _0x3145a4 = new Date(_0xbcf425 + _0x3145a4).getTime();
- }
- }
- let _0x44ad11 = this.normalize_time(_0x3145a4) - _0x4fa992;
- let _0x213d55 = this.time("hh:mm:ss.S", _0x44ad11);
- let _0x64f4d7 = Date.now();
- _0x64f4d7 > _0x44ad11 && (_0x44ad11 += 86400000);
- let _0x539462 = _0x44ad11 - _0x64f4d7;
- if (_0x539462 > _0x1929a1) {
- const _0x533822 = {
- time: true
- };
- _0x155654.log("离目标时间[" + _0x213d55 + "]大于" + _0x1929a1 / 1000 + "秒,不等待", _0x533822);
- } else {
- const _0x436e20 = {
- time: true
- };
- _0x155654.log("离目标时间[" + _0x213d55 + "]还有" + _0x539462 / 1000 + "秒,开始等待", _0x436e20);
- while (_0x539462 > 0) {
- let _0x5a2288 = Math.min(_0x539462, _0x808a8f);
- await this.wait(_0x5a2288);
- _0x64f4d7 = Date.now();
- _0x539462 = _0x44ad11 - _0x64f4d7;
- }
- const _0x179ceb = {
- time: true
- };
- _0x155654.log("已完成等待", _0x179ceb);
- }
+ async ["wait_gap_interval"](_0x3610c9, _0x1513c8) {
+ let _0x4fcaad = Date.now() - _0x3610c9;
+ _0x4fcaad < _0x1513c8 && (await this.wait(_0x1513c8 - _0x4fcaad));
}
- async wait_gap_interval(_0x5caf3a, _0x373b08) {
- let _0x5561b7 = Date.now() - _0x5caf3a;
- _0x5561b7 < _0x373b08 && (await this.wait(_0x373b08 - _0x5561b7));
- }
- }(_0x24412c);
-}
+ }(_0x58fdd8);
+ }
+ })();
\ No newline at end of file