1 Star 4 Fork 2

Dout/ql

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
sf.js 121.63 KB
一键复制 编辑 原始数据 按行查看 历史
Dout 提交于 2024-06-28 15:59 . n
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207
//Fri Jun 28 2024 14:32:14 GMT+0800 (中国标准时间)
//Base:https://github.com/echo094/decode-js
//Modify:https://github.com/smallfawn/decode_action
console.log("=>=>=>=>____来自 By 幼稚园小妹妹 (顶级插件售后服务951584089)丨Autman订阅源:Lxg-021002丨期待为您服务<=<=<=<=");
console.log("=>=>=>=>____来自 By 幼稚园小妹妹 (顶级插件售后服务951584089)丨Autman订阅源:Lxg-021002丨期待为您服务<=<=<=<=");
console.log("=>=>=>=>____来自 By 幼稚园小妹妹 (顶级插件售后服务951584089)丨Autman订阅源:Lxg-021002丨期待为您服务<=<=<=<=");
console.log("=>=>=>=>____来自 By 幼稚园小妹妹 (顶级插件售后服务951584089)丨Autman订阅源:Lxg-021002丨期待为您服务<=<=<=<=");
console.log("=>=>=>=>____来自 By 幼稚园小妹妹 (顶级插件售后服务951584089)丨Autman订阅源:Lxg-021002丨期待为您服务<=<=<=<=");
console.log("=>=>=>=>____来自 By 幼稚园小妹妹 (顶级插件售后服务951584089)丨Autman订阅源:Lxg-021002丨期待为您服务<=<=<=<=");
console.log("=>=>=>=>____来自 By 幼稚园小妹妹 (顶级插件售后服务951584089)丨Autman订阅源:Lxg-021002丨期待为您服务<=<=<=<=");
console.log("=>=>=>=>____来自 By 幼稚园小妹妹 (顶级插件售后服务951584089)丨Autman订阅源:Lxg-021002丨期待为您服务<=<=<=<=");
console.log("=>=>=>=>____来自 By 幼稚园小妹妹 (顶级插件售后服务951584089)丨Autman订阅源:Lxg-021002丨期待为您服务<=<=<=<=");
console.log("=>=>=>=>____来自 By 幼稚园小妹妹 (顶级插件售后服务951584089)丨Autman订阅源:Lxg-021002丨期待为您服务<=<=<=<=");
const _0x1366a8 = _0x1c156a("顺丰速运"),
_0x149a58 = require("got"),
_0x508ad7 = require("path"),
{
exec: _0x39cbfc
} = require("child_process"),
_0x204044 = require("crypto-js"),
{
CookieJar: _0xd37655
} = require("tough-cookie"),
_0x3d0561 = "sfsy",
_0x371509 = /[#]/,
_0x12e0b9 = [_0x3d0561 + "Url"],
_0x94f81d = process.env[_0x3d0561 + "Bee"] || "false",
_0x3bec27 = process.env[_0x3d0561 + "DragonBoatDraw"] || "false",
_0x5b274f = 8000,
_0x238e48 = 3,
_0x30f72a = 3.03,
_0x16c88c = "sfsy",
_0x1e5430 = "https://leafxcy.coding.net/api/user/leafxcy/project/validcode/shared-depot/validCode/git/blob/master/code.json",
_0x5c6146 = "https://leafxcy.coding.net/api/user/leafxcy/project/validcode/shared-depot/validCode/git/blob/master/" + _0x16c88c + ".json",
_0x4da51e = 5,
_0x8785c6 = "Mozilla/5.0 (iPhone; CPU iPhone OS 15_0 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Mobile/15E148",
_0x5aa02d = "wwesldfs29aniversaryvdld29",
_0x2bbd78 = "MCS-MIMP-CORE",
_0x1f992f = "czflqdlhbxcx",
_0x51a8e3 = "wxwd26mem1",
_0xd3a68c = {
"BAOZHU_CARD": "[爆竹卡]",
"CHUNLIAN_CARD": "[春联卡]",
"DENGLONG_CARD": "[灯笼卡]",
"HONGBAO_CARD": "[红包卡]",
"YUANXIAO_CARD": "[元宵卡]",
"CHUANGHUA_CARD": "[窗花卡]",
"COMMON_CARD": "[万能卡]"
},
_0x2500ab = {
"PUSH_TIMES": "推金币次数",
"COIN": "金币",
"WELFARE_CARD": "财富卡",
"RICH_CARD_GAME": "发财卡"
},
_0xb8d615 = "YEAR_END_2023",
_0x4c1524 = "ANNIVERSARY_2024",
_0x1c616b = "MEMBER_DAY",
_0x49a488 = "DRAGONBOAT_2024",
_0x48074c = 8,
_0x596697 = 1 << _0x48074c - 1,
_0x144bb1 = ["完成连签7天", "参与积分活动", "每月累计寄件", "完成每月任务", "与好友微信分享会员福利", "DAILY_VIP_TASK_TYPE", "去新增一个收件偏好", "用行业模板寄件下单", "用积分兑任意礼品", "领任意生活特权福利", "设置你的顺丰ID"];
let _0x11aa2a = [],
_0x479306 = {},
_0x48776e = 0,
_0x3ecd02 = 0;
function _0x52bf8a() {
_0x3ecd02 = 1;
process.on("SIGTERM", () => {
_0x3ecd02 = 2;
process.exit(0);
});
const _0x3e98e2 = _0x508ad7.basename(process.argv[1]),
_0xa3967e = ["bash", "timeout", "grep"];
let _0x583e12 = ["ps afx"];
_0x583e12.push("grep " + _0x3e98e2);
_0x583e12 = _0x583e12.concat(_0xa3967e.map(_0x2bf780 => "grep -v \"" + _0x2bf780 + " \""));
_0x583e12.push("wc -l");
const _0x24a76c = _0x583e12.join("|"),
_0x28f521 = () => {
_0x39cbfc(_0x24a76c, (_0x1c7109, _0x3e0b5d, _0x3f3281) => {
if (_0x1c7109 || _0x3f3281) return;
_0x48776e = parseInt(_0x3e0b5d.trim(), 10);
});
_0x3ecd02 == 1 && setTimeout(_0x28f521, 2000);
};
_0x28f521();
}
class _0x5d22ab {
constructor() {
this.index = _0x1366a8.userIdx++;
this.name = "";
this.valid = false;
const _0x3ac48a = {
"limit": 0
},
_0x4a1a6c = {
"Connection": "keep-alive"
},
_0x1a56a6 = {
"retry": _0x3ac48a,
"timeout": _0x5b274f,
"followRedirect": false,
"ignoreInvalidCookies": true,
"headers": _0x4a1a6c
};
this.got = _0x149a58.extend(_0x1a56a6);
_0x3ecd02 == 0 && _0x52bf8a();
}
["log"](_0x18bb3f, _0x5189ce = {}) {
var _0x38b6ba = "",
_0x5ee027 = _0x1366a8.userCount.toString().length;
this.index && (_0x38b6ba += "账号[" + _0x1366a8.padStr(this.index, _0x5ee027) + "]");
if (this.name) {
_0x38b6ba += "[" + this.name + "]";
}
_0x1366a8.log(_0x38b6ba + _0x18bb3f, _0x5189ce);
}
["set_cookie"](_0x334f76, _0x5a825b, _0x1318d1, _0x5dd2a8, _0x1faa72 = {}) {
this.cookieJar.setCookieSync(_0x334f76 + "=" + _0x5a825b + "; Domain=" + _0x1318d1 + ";", "" + _0x5dd2a8);
}
async ["request"](_0x1f70b1) {
const _0x75f6a9 = ["ECONNRESET", "EADDRINUSE", "ENOTFOUND", "EAI_AGAIN"],
_0x4314e8 = ["TimeoutError"],
_0x557e54 = ["EPROTO"],
_0x10d039 = [];
var _0x43a206 = null,
_0x3f492e = 0,
_0x47c755 = _0x1f70b1.fn || _0x1f70b1.url;
let _0x541698 = _0x1366a8.get(_0x1f70b1, "valid_code", _0x10d039);
_0x1f70b1.method = _0x1f70b1?.["method"]?.["toUpperCase"]() || "GET";
let _0xea53fa, _0x340307;
while (_0x3f492e < _0x238e48) {
try {
_0x3f492e++;
_0xea53fa = "";
_0x340307 = "";
let _0x20a921 = null,
_0x4eec9a = _0x1f70b1?.["timeout"] || this.got?.["defaults"]?.["options"]?.["timeout"]?.["request"] || _0x5b274f,
_0x2d5ae2 = false,
_0x1b7c7b = Math.max(this.index - 2, 0),
_0x2b9c9a = Math.min(Math.max(this.index - 2, 1), 4),
_0x286c0d = Math.min(Math.max(this.index - 4, 1), 5),
_0x5da671 = _0x1b7c7b * _0x2b9c9a * _0x286c0d * _0x286c0d * 600,
_0x500bb1 = _0x1b7c7b * _0x2b9c9a * _0x286c0d * _0x286c0d * 4000,
_0x13baae = _0x5da671 + Math.floor(Math.random() * _0x500bb1),
_0x4fe481 = _0x48776e * (_0x48776e - 1) * 3000,
_0x2d3b7a = (_0x48776e - 1) * (_0x48776e - 1) * 5000,
_0x2e08a9 = _0x4fe481 + Math.floor(Math.random() * _0x2d3b7a),
_0x1587eb = Math.max(_0x1366a8.userCount - 2, 0),
_0x24e0a4 = Math.max(_0x1366a8.userCount - 3, 0),
_0x1a4b14 = _0x1587eb * 400,
_0x2cd422 = _0x24e0a4 * 1000,
_0x16c86f = _0x1a4b14 + Math.floor(Math.random() * _0x2cd422),
_0x2ba79b = _0x13baae + _0x2e08a9 + _0x16c86f;
await _0x1366a8.wait(_0x2ba79b);
await new Promise(async _0x4951e5 => {
setTimeout(() => {
_0x2d5ae2 = true;
_0x4951e5();
}, _0x4eec9a);
await this.got(_0x1f70b1).then(_0x75cc76 => {
_0x43a206 = _0x75cc76;
}, _0xb606d5 => {
_0x20a921 = _0xb606d5;
_0x43a206 = _0xb606d5.response;
_0xea53fa = _0x20a921?.["code"] || "";
_0x340307 = _0x20a921?.["name"] || "";
});
_0x4951e5();
});
if (_0x2d5ae2) {
this.log("[" + _0x47c755 + "]请求超时(" + _0x4eec9a / 1000 + "秒),重试第" + _0x3f492e + "");
} else {
if (_0x557e54.includes(_0xea53fa)) {
this.log("[" + _0x47c755 + "]请求错误[" + _0xea53fa + "][" + _0x340307 + "]");
_0x20a921?.["message"] && console.log(_0x20a921.message);
break;
} else {
if (_0x4314e8.includes(_0x340307)) this.log("[" + _0x47c755 + "]请求错误[" + _0xea53fa + "][" + _0x340307 + "],重试第" + _0x3f492e + "");else {
if (_0x75f6a9.includes(_0xea53fa)) this.log("[" + _0x47c755 + "]请求错误[" + _0xea53fa + "][" + _0x340307 + "],重试第" + _0x3f492e + "");else {
let _0x5b2811 = _0x43a206?.["statusCode"] || "",
_0x429b05 = _0x5b2811 / 100 | 0;
if (_0x5b2811) {
_0x429b05 > 3 && !_0x541698.includes(_0x5b2811) && (_0x5b2811 ? this.log("请求[" + _0x47c755 + "]返回[" + _0x5b2811 + "]") : this.log("请求[" + _0x47c755 + "]错误[" + _0xea53fa + "][" + _0x340307 + "]"));
if (_0x429b05 <= 4) {
break;
}
} else {
this.log("请求[" + _0x47c755 + "]错误[" + _0xea53fa + "][" + _0x340307 + "]");
}
}
}
}
}
} catch (_0x14879c) {
_0x14879c.name == "TimeoutError" ? this.log("[" + _0x47c755 + "]请求超时,重试第" + _0x3f492e + "") : this.log("[" + _0x47c755 + "]请求错误(" + _0x14879c.message + "),重试第" + _0x3f492e + "");
}
}
const _0x4b11b1 = {
"statusCode": _0xea53fa || -1,
"headers": null,
"result": null
};
if (_0x43a206 == null) return Promise.resolve(_0x4b11b1);
let {
statusCode: _0x53c07e,
headers: _0x59f1b9,
body: _0x5ae6fa
} = _0x43a206;
if (_0x5ae6fa) try {
_0x5ae6fa = JSON.parse(_0x5ae6fa);
} catch {}
const _0x25eb93 = {
"statusCode": _0x53c07e,
"headers": _0x59f1b9,
"result": _0x5ae6fa
};
return Promise.resolve(_0x25eb93);
}
}
let _0x49bd9d = _0x5d22ab;
try {
let _0x5e0ebf = require("./LocalBasic");
_0x49bd9d = _0x5e0ebf;
} catch {}
let _0xd9af8d = new _0x49bd9d(_0x1366a8);
class _0x520715 extends _0x49bd9d {
constructor(_0x57e016) {
super(_0x1366a8);
this.refreshUrl = _0x57e016;
this.cookieJar = new _0xd37655();
this.deviceId = _0x1366a8.randomPattern("xxxxxxxx-xxxx-xxxx");
this.jika_black = false;
this.anniversary_black = false;
this.dragonBoat_black = false;
this.memberDay_black = false;
this.memberDay_redPacket_drewToday = false;
this.memberDay_redPacket_map = {};
const _0x446e4f = {
"User-Agent": _0x8785c6
};
this.got = this.got.extend({
"cookieJar": this.cookieJar,
"headers": _0x446e4f
});
}
["getSign"](_0x16fa3a = {}) {
let _0x4dce84 = Date.now(),
_0x2a5e46 = "token=" + _0x5aa02d + "&timestamp=" + _0x4dce84 + "&sysCode=" + _0x2bbd78,
_0x218a9d = _0x204044.MD5(_0x2a5e46).toString();
const _0x14c5f2 = {
"platform": "MINI_PROGRAM",
"channel": _0x51a8e3,
"sysCode": _0x2bbd78,
"timestamp": _0x4dce84,
"signature": _0x218a9d
};
return _0x14c5f2;
}
async ["refresh_cookie"](_0x35aff7 = {}) {
let _0x43db8d = false;
try {
const _0x47b68d = {
"fn": "refresh_cookie",
"method": "get",
"url": this.refreshUrl
};
let {
statusCode: _0x1126c1,
headers: _0x8ca9df
} = await this.request(_0x47b68d);
if (_0x1126c1 == 302) {
for (let _0x41619c of _0x8ca9df["set-cookie"]) {
if (_0x41619c.includes("_login_mobile_")) {
let _0x36185b = _0x41619c.match(/_login_mobile_=(\d+);/);
_0x36185b && (this.name = _0x36185b[1]);
break;
}
}
_0x43db8d = true;
this.log("登录成功");
} else this.log("登录失败[" + _0x1126c1 + "]");
} catch (_0x325fd4) {
console.log(_0x325fd4);
} finally {
return _0x43db8d;
}
}
async ["personalInfo"](_0x585543 = {}) {
try {
let _0x44cdb8 = {
"fn": "personalInfo",
"method": "post",
"url": "https://mcs-mimp-web.sf-express.com/mcs-mimp/member/personalInfo",
"headers": {
...this.getSign()
},
"json": {}
},
{
result: _0x3520dc
} = await this.request(_0x44cdb8);
if (_0x3520dc?.["success"]) {
const _0x3cfe8d = {
"notify": true
};
this.log("积分: " + _0x3520dc.obj.availablePoints, _0x3cfe8d);
} else this.log("查询账号信息失败: " + (_0x3520dc?.["errorMessage"] || (_0x3520dc ? JSON.stringify(_0x3520dc) : "无返回")));
} catch (_0x4db3e6) {
console.log(_0x4db3e6);
}
}
async ["queryUserInfo"](_0x4b4d39 = {}) {
try {
let _0x51a0eb = {
"fn": "queryUserInfo",
"method": "post",
"url": "https://mcs-mimp-web.sf-express.com/mcs-mimp/commonPost/~memberIntegral~userInfoService~queryUserInfo",
"headers": {
...this.getSign()
},
"json": {
"sysCode": "ESG-CEMP-CORE",
"optionalColumns": ["usablePoint", "cycleSub", "leavePoint"],
"token": "zeTLTYeG0bLetfRk"
}
},
{
result: _0x43a299
} = await this.request(_0x51a0eb);
if (_0x43a299?.["success"]) {
let {
usablePoint: _0x49e347,
cycleAdd: _0x1f38b5,
cycleSub: _0x269749,
leavePoint: _0x282eb4,
pointClearCycle: _0x150d2c
} = _0x43a299.obj,
_0x355cdd = "积分: " + _0x49e347,
_0x1ca292 = _0x282eb4 - _0x269749,
_0x5f27a4 = new Date(_0x150d2c + " 00:00:00");
_0x5f27a4.setFullYear(_0x5f27a4.getFullYear() + 1);
let _0x347404 = _0x5f27a4.getTime();
if (_0x1ca292 > 0 && _0x347404 > Date.now()) {
let _0xd1e3cf = _0x1366a8.time("yyyy-MM-dd", _0x347404);
_0x355cdd += ", 有" + _0x1ca292 + "积分将在" + _0xd1e3cf + "过期";
}
const _0x5d7241 = {
"notify": true
};
this.log(_0x355cdd, _0x5d7241);
} else this.log("查询账号信息失败: " + (_0x43a299?.["errorMessage"] || (_0x43a299 ? JSON.stringify(_0x43a299) : "无返回")));
} catch (_0x1259de) {
console.log(_0x1259de);
}
}
async ["automaticSignFetchPackage"](_0x589265 = {}) {
try {
let _0x2645c8 = {
"fn": "automaticSignFetchPackage",
"method": "post",
"url": "https://mcs-mimp-web.sf-express.com/mcs-mimp/commonPost/~memberNonactivity~integralTaskSignPlusService~automaticSignFetchPackage",
"headers": {
...this.getSign()
},
"json": {
"comeFrom": _0x1366a8.get(_0x589265, "comeFrom", "vioin"),
"channelFrom": _0x1366a8.get(_0x589265, "channelFrom", "SFAPP")
}
},
{
result: _0x5c4778
} = await this.request(_0x2645c8);
if (_0x5c4778?.["success"]) {
_0x5c4778?.["obj"]?.["hasFinishSign"] ? this.log("今天已签到") : _0x5c4778?.["obj"]?.["integralTaskSignPackageVOList"]?.["length"] && this.log("签到获得: " + _0x5c4778?.["obj"]?.["integralTaskSignPackageVOList"]?.["map"](_0x41ba54 => _0x41ba54.packetName)?.["join"](", "));
await this.queryPointTaskAndSignFromES();
const _0x289b1c = {
"channelType": 3
};
await this.queryPointTaskAndSignFromES(_0x289b1c);
await this.queryUserInfo();
} else this.log("查询签到失败: " + (_0x5c4778?.["errorMessage"] || (_0x5c4778 ? JSON.stringify(_0x5c4778) : "无返回")));
} catch (_0x8f6001) {
console.log(_0x8f6001);
}
}
async ["queryPointTaskAndSignFromES"](_0x1b9e29 = {}) {
try {
let _0x39ed33 = {
"fn": "queryPointTaskAndSignFromES",
"method": "post",
"url": "https://mcs-mimp-web.sf-express.com/mcs-mimp/commonPost/~memberNonactivity~integralTaskStrategyService~queryPointTaskAndSignFromES",
"headers": {
...this.getSign()
},
"json": {
"deviceId": this.deviceId,
"channelType": String(_0x1366a8.get(_0x1b9e29, "channelType", 1))
}
},
{
result: _0x4e5a12
} = await this.request(_0x39ed33);
if (_0x4e5a12?.["success"]) {
for (let _0x2c39c1 of _0x4e5a12.obj.taskTitleLevels) {
switch (_0x2c39c1.status) {
case 2:
if (_0x144bb1.includes(_0x2c39c1.title)) break;
await this.finishTask(_0x2c39c1);
case 1:
await this.fetchIntegral(_0x2c39c1);
break;
case 3:
break;
default:
this.log("任务[" + _0x2c39c1.title + "] -- 未知状态[" + _0x2c39c1.status + "]");
break;
}
}
} else this.log("查询任务失败: " + (_0x4e5a12?.["errorMessage"] || (_0x4e5a12 ? JSON.stringify(_0x4e5a12) : "无返回")));
} catch (_0x5a9f32) {
console.log(_0x5a9f32);
}
}
async ["finishTask"](_0x4609d5, _0x140605 = {}) {
try {
const _0x5cdc07 = {
"taskCode": _0x4609d5.taskCode
};
let _0x473db9 = {
"fn": "finishTask",
"method": "post",
"url": "https://mcs-mimp-web.sf-express.com/mcs-mimp/commonRoutePost/memberEs/taskRecord/finishTask",
"headers": {
...this.getSign()
},
"json": _0x5cdc07
},
{
result: _0x1d3302
} = await this.request(_0x473db9);
_0x1d3302?.["success"] ? this.log("完成任务[" + _0x4609d5.title + "]成功") : this.log("完成任务[" + _0x4609d5.title + "]失败: " + (_0x1d3302?.["errorMessage"] || (_0x1d3302 ? JSON.stringify(_0x1d3302) : "无返回")));
} catch (_0x3c5b5e) {
console.log(_0x3c5b5e);
}
}
async ["fetchIntegral"](_0xa30118, _0x470b81 = {}) {
try {
let _0x271f34 = {
"fn": "fetchIntegral",
"method": "post",
"url": "https://mcs-mimp-web.sf-express.com/mcs-mimp/commonPost/~memberNonactivity~integralTaskStrategyService~fetchIntegral",
"headers": {
...this.getSign()
},
"json": {
"strategyId": _0xa30118.strategyId,
"taskId": _0xa30118.taskId,
"taskCode": _0xa30118.taskCode,
"deviceId": this.deviceId
}
},
{
result: _0x1d856c
} = await this.request(_0x271f34);
_0x1d856c?.["success"] ? this.log("领取任务[" + _0xa30118.title + "]奖励: " + _0x1d856c.obj.point + "积分") : this.log("领取任务[" + _0xa30118.title + "]奖励失败: " + (_0x1d856c?.["errorMessage"] || (_0x1d856c ? JSON.stringify(_0x1d856c) : "无返回")));
} catch (_0x442c88) {
console.log(_0x442c88);
}
}
async ["queryPointTaskAndSign"](_0x4c2a3e = {}) {
try {
let _0x4bfa75 = {
"fn": "queryPointTaskAndSign",
"method": "post",
"url": "https://mcs-mimp-web.sf-express.com/mcs-mimp/appTask/queryPointTaskAndSign",
"headers": {
...this.getSign()
},
"json": {
"channel": _0x1366a8.get(_0x4c2a3e, "channel", "SFAPP"),
"pageType": _0x1366a8.get(_0x4c2a3e, "pageType", "APP_MINE_TASK")
}
},
{
result: _0x69fea0
} = await this.request(_0x4bfa75);
if (_0x69fea0?.["success"]) for (let _0x49c4dc of _0x69fea0?.["obj"]?.["taskTitleLevels"] || []) {
if (_0x144bb1.includes(_0x49c4dc.title)) continue;
await this.scanPageToRecord(_0x49c4dc);
await this.fetchPoint(_0x49c4dc);
} else this.log("查询旧版任务失败: " + (_0x69fea0?.["errorMessage"] || (_0x69fea0 ? JSON.stringify(_0x69fea0) : "无返回")));
} catch (_0x38c1b6) {
console.log(_0x38c1b6);
}
}
async ["scanPageToRecord"](_0x47b9d7, _0x40873e = {}) {
try {
let _0x1de44b = {
"fn": "scanPageToRecord",
"method": "post",
"url": "https://mcs-mimp-web.sf-express.com/mcs-mimp/appTask/scanPageToRecord",
"headers": {
...this.getSign()
},
"json": {
"channel": _0x1366a8.get(_0x40873e, "channel", "SFAPP"),
"pageType": _0x47b9d7.pageType
}
},
{
result: _0x2f4b08
} = await this.request(_0x1de44b);
_0x2f4b08?.["success"] ? this.log("完成任务[" + _0x47b9d7.title + "]成功") : this.log("完成任务[" + _0x47b9d7.title + "]失败: " + (_0x2f4b08?.["errorMessage"] || (_0x2f4b08 ? JSON.stringify(_0x2f4b08) : "无返回")));
} catch (_0x17edce) {
console.log(_0x17edce);
}
}
async ["fetchPoint"](_0x58bdb9, _0x264f89 = {}) {
try {
let _0x596644 = {
"fn": "fetchPoint",
"method": "post",
"url": "https://mcs-mimp-web.sf-express.com/mcs-mimp/appTask/fetchPoint",
"headers": {
...this.getSign()
},
"json": {
"channel": _0x1366a8.get(_0x264f89, "channel", "SFAPP"),
"pageType": _0x58bdb9.pageType,
"deviceId": this.deviceId
}
},
{
result: _0x466366
} = await this.request(_0x596644);
_0x466366?.["success"] ? this.log("领取任务[" + _0x58bdb9.title + "]奖励成功") : this.log("领取任务[" + _0x58bdb9.title + "]奖励失败: " + (_0x466366?.["errorMessage"] || (_0x466366 ? JSON.stringify(_0x466366) : "无返回")));
} catch (_0x36139d) {
console.log(_0x36139d);
}
}
async ["coupon_list"](_0x1dae8a = 1, _0x473a62 = 100, _0x434640 = {}) {
try {
const _0x45683e = {
"couponType": "",
"pageNo": _0x1dae8a,
"pageSize": _0x473a62
};
let _0x2503de = {
"fn": "coupon_list",
"method": "post",
"url": "https://mcs-mimp-web.sf-express.com/mcs-mimp/coupon/available/list",
"headers": {
...this.getSign()
},
"json": _0x45683e
},
{
result: _0x50c5c2
} = await this.request(_0x2503de);
if (_0x50c5c2?.["success"]) {
let _0x4f36a0 = [],
_0x1ebddc = _0x50c5c2?.["obj"] || [];
for (let _0x19e14d of _0x1ebddc) {
let {
couponType: _0x1f0b9d,
invalidTm: _0x1433a1,
pledgeAmt: _0x3c8e25,
couponName: _0x374289
} = _0x19e14d;
_0x1f0b9d === "1" && _0x3c8e25 >= 8 && _0x4f36a0.push(_0x374289 + ", 过期时间: " + _0x1433a1);
}
if (_0x4f36a0.length) {
const _0xd8ce5b = {
"notify": true
};
this.log("大额优惠券:", _0xd8ce5b);
const _0x44721f = {
"notify": true
};
_0x1366a8.log(_0x4f36a0.join("\n"), _0x44721f);
}
} else {
this.log("查询账号券失败: " + (_0x50c5c2?.["errorMessage"] || (_0x50c5c2 ? JSON.stringify(_0x50c5c2) : "无返回")));
}
} catch (_0x1f98b7) {
console.log(_0x1f98b7);
}
}
async ["personalInfoNew"](_0x565d2a = {}) {
try {
let _0x4e47eb = {
"fn": "personalInfoNew",
"method": "post",
"url": "https://mcs-mimp-web.sf-express.com/mcs-mimp/commonPost/~memberIntegral~userInfoService~personalInfoNew",
"headers": {
...this.getSign()
},
"json": {}
},
{
result: _0x35910e
} = await this.request(_0x4e47eb);
if (_0x35910e?.["success"]) {
this.userId = _0x35910e.obj.userId;
const _0x489f8c = {
"notify": true
};
this.log("积分: " + _0x35910e.obj.availablePoints, _0x489f8c);
} else this.log("查询账号积分失败: " + (_0x35910e?.["errorMessage"] || (_0x35910e ? JSON.stringify(_0x35910e) : "无返回")));
} catch (_0x294812) {
console.log(_0x294812);
}
}
async ["bee_indexData"](_0x43497d = {}) {
try {
let _0x142bef = _0x1366a8.randomList(_0x11aa2a.filter(_0x25c9cf => _0x25c9cf != this.userId));
const _0x577cf9 = {
"inviteUserId": _0x142bef
};
let _0x59a35d = {
"fn": "bee_indexData",
"method": "post",
"url": "https://mcs-mimp-web.sf-express.com/mcs-mimp/commonPost/~memberNonactivity~receiveExchangeIndexService~indexData",
"headers": {
...this.getSign()
},
"json": _0x577cf9
};
{
let {
result: _0x3d5e5d
} = await this.request(_0x1366a8.copy(_0x59a35d));
if (_0x3d5e5d?.["success"]) {
let {
friendAwards = [],
gameNum = 0,
usableHoney: _0x38c698,
capacity: _0x55f4ce
} = _0x3d5e5d?.["obj"];
friendAwards?.["length"] && this.log("获得奖励: " + _0x3d5e5d.obj.friendAwards.map(_0x483aec => _0x483aec.name).join(","));
_0x38c698 >= _0x55f4ce;
this.log("可以采蜜冒险" + gameNum + "");
while (gameNum-- > 0) {
await this.bee_gameReport();
}
await this.bee_taskDetail();
} else {
const _0x12ce8d = {
"notify": true
};
this.log("进入采蜜游戏主页失败: " + (_0x3d5e5d?.["errorMessage"] || (_0x3d5e5d ? JSON.stringify(_0x3d5e5d) : "无返回")), _0x12ce8d);
return;
}
}
{
let {
result: _0x150aae
} = await this.request(_0x1366a8.copy(_0x59a35d));
if (_0x150aae?.["success"]) for (let _0x3e1965 of _0x150aae?.["obj"]?.["taskDetail"] || []) {
await this.bee_receiveHoney(_0x3e1965);
} else {
const _0x2a5f7e = {
"notify": true
};
this.log("进入采蜜游戏主页失败: " + (_0x150aae?.["errorMessage"] || (_0x150aae ? JSON.stringify(_0x150aae) : "无返回")), _0x2a5f7e);
return;
}
}
{
let {
result: _0x52de93
} = await this.request(_0x1366a8.copy(_0x59a35d));
if (_0x52de93?.["success"]) {
const _0x1d0233 = {
"notify": true
};
this.log("采蜜游戏丰蜜: " + (_0x52de93?.["obj"]?.["usableHoney"] || 0), _0x1d0233);
} else {
const _0x3b15c0 = {
"notify": true
};
this.log("进入采蜜游戏主页失败: " + (_0x52de93?.["errorMessage"] || (_0x52de93 ? JSON.stringify(_0x52de93) : "无返回")), _0x3b15c0);
return;
}
}
} catch (_0x3f9cbf) {
console.log(_0x3f9cbf);
}
}
async ["bee_expand"](_0x1641ac = {}) {
let _0x4f4ee2 = false;
try {
let _0x112898 = {
"fn": "bee_expand",
"method": "post",
"url": "https://mcs-mimp-web.sf-express.com/mcs-mimp/commonPost/~memberNonactivity~receiveExchangeApiService~expand",
"headers": {
...this.getSign()
},
"json": {}
},
{
result: _0x3901c4
} = await this.request(_0x112898);
console.log(JSON.stringify(_0x3901c4));
_0x3901c4?.["success"] ? (_0x4f4ee2 = true, this.log("采蜜游戏扩容成功")) : this.log("采蜜游戏扩容失败: " + (_0x3901c4?.["errorMessage"] || (_0x3901c4 ? JSON.stringify(_0x3901c4) : "无返回")));
} catch (_0xd32d80) {
console.log(_0xd32d80);
} finally {
return _0x4f4ee2;
}
}
async ["bee_receiveHoney"](_0x432633, _0x282b77 = {}) {
try {
const _0x57c74d = {
"taskType": _0x432633.type
};
let _0x4feddb = {
"fn": "bee_receiveHoney",
"method": "post",
"url": "https://mcs-mimp-web.sf-express.com/mcs-mimp/commonPost/~memberNonactivity~receiveExchangeIndexService~receiveHoney",
"headers": {
...this.getSign()
},
"json": _0x57c74d
},
{
result: _0x220c55
} = await this.request(_0x4feddb);
_0x220c55?.["success"] ? this.log("领取[" + _0x432633.type + "]奖励获得: " + _0x432633.value + "丰蜜") : this.log("领取[" + _0x432633.type + "]奖励失败: " + (_0x220c55?.["errorMessage"] || (_0x220c55 ? JSON.stringify(_0x220c55) : "无返回")));
} catch (_0x1221e4) {
console.log(_0x1221e4);
}
}
async ["bee_gameReport"](_0x4a4fb5 = {}) {
try {
let _0x49cf24 = 20;
const _0x599c6f = {
"gatherHoney": _0x49cf24
};
let _0x1081f1 = {
"fn": "bee_gameReport",
"method": "post",
"url": "https://mcs-mimp-web.sf-express.com/mcs-mimp/commonPost/~memberNonactivity~receiveExchangeGameService~gameReport",
"headers": {
...this.getSign()
},
"json": _0x599c6f
},
{
result: _0x363b8c
} = await this.request(_0x1081f1);
if (_0x363b8c?.["success"]) this.log("采蜜冒险获得" + _0x49cf24 + "丰蜜");else {
let _0x293602 = _0x363b8c?.["errorMessage"] || (_0x363b8c ? JSON.stringify(_0x363b8c) : "无返回");
this.log("采蜜冒险失败: " + _0x293602);
}
} catch (_0x31cd52) {
console.log(_0x31cd52);
}
}
async ["bee_taskDetail"](_0x30e4e1 = {}) {
try {
let _0x210751 = {
"fn": "bee_taskDetail",
"method": "post",
"url": "https://mcs-mimp-web.sf-express.com/mcs-mimp/commonPost/~memberNonactivity~receiveExchangeIndexService~taskDetail",
"headers": {
...this.getSign()
},
"json": {}
},
{
result: _0x33161c
} = await this.request(_0x210751);
if (_0x33161c?.["success"]) for (let _0x277604 of _0x33161c.obj.list) {
if (!_0x277604.taskCode) {
continue;
}
switch (_0x277604.status) {
case 2:
if (_0x144bb1.includes(_0x277604.taskType)) break;
await this.bee_finishTask(_0x277604);
case 1:
case 3:
break;
default:
this.log("任务[" + _0x277604.title + "] -- 未知状态[" + _0x277604.status + "]");
break;
}
} else this.log("查询任务失败: " + (_0x33161c?.["errorMessage"] || (_0x33161c ? JSON.stringify(_0x33161c) : "无返回")));
} catch (_0x206d03) {
console.log(_0x206d03);
}
}
async ["bee_finishTask"](_0x46f54c, _0x50580f = {}) {
try {
const _0x395986 = {
"taskCode": _0x46f54c.taskCode
};
let _0x16ae71 = {
"fn": "bee_finishTask",
"method": "post",
"url": "https://mcs-mimp-web.sf-express.com/mcs-mimp/commonPost/~memberEs~taskRecord~finishTask",
"headers": {
...this.getSign()
},
"json": _0x395986
},
{
result: _0x14dccc
} = await this.request(_0x16ae71);
_0x14dccc?.["success"] ? this.log("完成采蜜任务[" + _0x46f54c.taskType + "]成功") : this.log("完成采蜜任务[" + _0x46f54c.taskType + "]失败: " + (_0x14dccc?.["errorMessage"] || (_0x14dccc ? JSON.stringify(_0x14dccc) : "无返回")));
} catch (_0x52b5a6) {
console.log(_0x52b5a6);
}
}
async ["superWelfare_receiveRedPacket"](_0x2f3817 = {}) {
try {
const _0x11cf88 = {
"channel": _0x1f992f
};
let _0x38db94 = {
"fn": "superWelfare_receiveRedPacket",
"method": "post",
"url": "https://mcs-mimp-web.sf-express.com/mcs-mimp/commonPost/~memberActLengthy~redPacketActivityService~superWelfare~receiveRedPacket",
"headers": {
...this.getSign()
},
"json": _0x11cf88
},
{
result: _0x297522
} = await this.request(_0x38db94);
if (_0x297522?.["success"]) {
let _0x2c4730 = _0x297522?.["obj"]?.["giftList"];
_0x297522?.["obj"]?.["extraGiftList"]?.["length"] && (_0x2c4730 = _0x2c4730.concat(_0x297522.obj.extraGiftList));
let _0x124f4b = _0x2c4730?.["map"](_0xb704c0 => _0xb704c0.giftName)?.["join"](", ") || "",
_0x50c1d9 = _0x297522?.["obj"]?.["receiveStatus"] == 1 ? "领取成功" : "已领取过";
const _0x4cee51 = {
"notify": true
};
this.log("超值福利签到[" + _0x50c1d9 + "]: " + _0x124f4b, _0x4cee51);
} else this.log("超值福利签到失败: " + (_0x297522?.["errorMessage"] || (_0x297522 ? JSON.stringify(_0x297522) : "无返回")));
} catch (_0x434680) {
console.log(_0x434680);
}
}
async ["memberDay_invite"](_0x1e27a7 = {}) {
try {
let _0x54922d = _0x1366a8.randomList(_0x11aa2a.filter(_0x356285 => _0x356285 != this.userId));
const _0x34ca16 = {
"inviteUserId": _0x54922d
};
let _0x1e5cfd = {
"fn": "memberDay_invite",
"method": "post",
"url": "https://mcs-mimp-web.sf-express.com/mcs-mimp/commonPost/~memberNonactivity~memberDayIndexService~index",
"headers": {
...this.getSign()
},
"json": _0x34ca16
};
await this.request(_0x1e5cfd);
let {
result: _0x465a9f
} = await this.request(_0x1e5cfd);
if (_0x465a9f?.["success"]) {
let {
canReceiveInviteAward: _0x57fc09,
risk: _0xe61764
} = _0x465a9f?.["obj"];
_0x57fc09 && (await this.memberDay_receiveInviteAward(_0x54922d));
if (this.memberDay_black) return;
await this.memberDay_index();
} else {
let _0x12cf87 = _0x465a9f?.["errorMessage"] || (_0x465a9f ? JSON.stringify(_0x465a9f) : "无返回");
this.log("查询会员日失败: " + _0x12cf87);
if (_0x12cf87?.["includes"]("没有资格参与活动")) {
this.memberDay_black = true;
const _0x11620c = {
"notify": true
};
this.log("会员日任务风控", _0x11620c);
}
}
} catch (_0x1ba610) {
console.log(_0x1ba610);
}
}
async ["memberDay_index"](_0x81d7c8 = {}) {
try {
let _0x2c9844 = {
"fn": "memberDay_index",
"method": "post",
"url": "https://mcs-mimp-web.sf-express.com/mcs-mimp/commonPost/~memberNonactivity~memberDayIndexService~index",
"headers": {
...this.getSign()
},
"json": {}
},
{
result: _0x35e110
} = await this.request(_0x2c9844);
if (_0x35e110?.["success"]) {
let {
lotteryNum: _0x5224db,
risk: _0x1e3de6
} = _0x35e110?.["obj"];
await this.memberDay_redPacketReceivedStatus();
_0x5224db = _0x5224db || 0;
this.log("会员日可以抽奖" + _0x5224db + "");
while (_0x5224db-- > 0) {
await this.memberDay_lottery();
}
if (this.memberDay_black) return;
await this.memberDay_taskList();
if (this.memberDay_black) return;
await this.memberDay_redPacketStatus();
} else {
let _0x52dd58 = _0x35e110?.["errorMessage"] || (_0x35e110 ? JSON.stringify(_0x35e110) : "无返回");
this.log("查询会员日失败: " + _0x52dd58);
if (_0x52dd58?.["includes"]("没有资格参与活动")) {
this.memberDay_black = true;
const _0x19c5ff = {
"notify": true
};
this.log("会员日任务风控", _0x19c5ff);
}
}
} catch (_0x569224) {
console.log(_0x569224);
}
}
async ["memberDay_receiveInviteAward"](_0xd29e8, _0x2a6c84 = {}) {
try {
const _0x547a7d = {
"inviteUserId": _0xd29e8
};
let _0x49302f = {
"fn": "memberDay_receiveInviteAward",
"method": "post",
"url": "https://mcs-mimp-web.sf-express.com/mcs-mimp/commonPost/~memberNonactivity~memberDayIndexService~receiveInviteAward",
"headers": {
...this.getSign()
},
"json": _0x547a7d
},
{
result: _0x3cb0f7
} = await this.request(_0x49302f);
if (_0x3cb0f7?.["success"]) {
let {
productName = "空气"
} = _0x3cb0f7?.["obj"] || {};
const _0x2239ca = {
"notify": true
};
this.log("会员日奖励: " + productName, _0x2239ca);
} else {
let _0x232087 = _0x3cb0f7?.["errorMessage"] || (_0x3cb0f7 ? JSON.stringify(_0x3cb0f7) : "无返回");
this.log("领取会员日奖励失败: " + _0x232087);
if (_0x232087?.["includes"]("没有资格参与活动")) {
this.memberDay_black = true;
const _0x53a183 = {
"notify": true
};
this.log("会员日任务风控", _0x53a183);
}
}
} catch (_0x4843dc) {
console.log(_0x4843dc);
}
}
async ["memberDay_lottery"](_0x4782fd = {}) {
try {
let _0x5a51c8 = {
"fn": "memberDay_lottery",
"method": "post",
"url": "https://mcs-mimp-web.sf-express.com/mcs-mimp/commonPost/~memberNonactivity~memberDayLotteryService~lottery",
"headers": {
...this.getSign()
},
"json": {}
},
{
result: _0x2736d2
} = await this.request(_0x5a51c8);
if (_0x2736d2?.["success"]) {
let {
productName = "空气"
} = _0x2736d2?.["obj"] || {};
const _0x72c471 = {
"notify": true
};
this.log("会员日抽奖: " + productName, _0x72c471);
} else {
let _0x1d7fc3 = _0x2736d2?.["errorMessage"] || (_0x2736d2 ? JSON.stringify(_0x2736d2) : "无返回");
this.log("会员日抽奖失败: " + _0x1d7fc3);
if (_0x1d7fc3?.["includes"]("没有资格参与活动")) {
this.memberDay_black = true;
const _0x24b579 = {
"notify": true
};
this.log("会员日任务风控", _0x24b579);
}
}
} catch (_0x4d7d07) {
console.log(_0x4d7d07);
}
}
async ["memberDay_taskList"](_0x1f0fed = {}) {
try {
const _0x1c99c2 = {
"activityCode": _0x1c616b,
"channelType": "MINI_PROGRAM"
};
let _0x3030dd = {
"fn": "memberDay_taskList",
"method": "post",
"url": "https://mcs-mimp-web.sf-express.com/mcs-mimp/commonPost/~memberNonactivity~activityTaskService~taskList",
"headers": {
...this.getSign()
},
"json": _0x1c99c2
},
{
result: _0x404b18
} = await this.request(_0x3030dd);
if (_0x404b18?.["success"]) {
let _0x27adcb = _0x404b18?.["obj"] || [];
for (let _0xc7f524 of _0x27adcb.filter(_0x154620 => _0x154620.status == 1)) {
if (this.memberDay_black) return;
await this.memberDay_fetchMixTaskReward(_0xc7f524);
}
for (let _0x33b5a8 of _0x27adcb.filter(_0x1e6d14 => _0x1e6d14.status == 2)) {
if (this.memberDay_black) return;
switch (_0x33b5a8.taskType) {
case "SEND_SUCCESS":
case "INVITEFRIENDS_PARTAKE_ACTIVITY":
case "OPEN_SVIP":
case "OPEN_NEW_EXPRESS_CARD":
case "OPEN_FAMILY_CARD":
case "CHARGE_NEW_EXPRESS_CARD":
case "INTEGRAL_EXCHANGE":
{
break;
}
default:
{
for (let _0x164a48 = 0; _0x164a48 < _0x33b5a8.restFinishTime && !this.memberDay_black; _0x164a48++) {
await this.memberDay_finishTask(_0x33b5a8);
}
break;
}
}
}
} else {
let _0x21a618 = _0x404b18?.["errorMessage"] || (_0x404b18 ? JSON.stringify(_0x404b18) : "无返回");
this.log("查询会员日任务失败: " + _0x21a618);
if (_0x21a618?.["includes"]("没有资格参与活动")) {
this.memberDay_black = true;
const _0x15312c = {
"notify": true
};
this.log("会员日任务风控", _0x15312c);
}
}
} catch (_0x4514a4) {
console.log(_0x4514a4);
}
}
async ["memberDay_finishTask"](_0x28086e, _0x51414e = {}) {
try {
const _0x1a3d83 = {
"taskCode": _0x28086e.taskCode
};
let _0xfe7e82 = {
"fn": "memberDay_finishTask",
"method": "post",
"url": "https://mcs-mimp-web.sf-express.com/mcs-mimp/commonPost/~memberEs~taskRecord~finishTask",
"headers": {
...this.getSign()
},
"json": _0x1a3d83
},
{
result: _0x15bd3e
} = await this.request(_0xfe7e82);
if (_0x15bd3e?.["success"]) {
this.log("完成会员日任务[" + _0x28086e.taskName + "]成功");
await this.memberDay_fetchMixTaskReward(_0x28086e);
} else {
let _0xdf75a2 = _0x15bd3e?.["errorMessage"] || (_0x15bd3e ? JSON.stringify(_0x15bd3e) : "无返回");
this.log("完成会员日任务[" + _0x28086e.taskName + "]失败: " + _0xdf75a2);
if (_0xdf75a2?.["includes"]("没有资格参与活动")) {
this.memberDay_black = true;
const _0x3d8ac4 = {
"notify": true
};
this.log("会员日任务风控", _0x3d8ac4);
}
}
} catch (_0xa4d425) {
console.log(_0xa4d425);
}
}
async ["memberDay_fetchMixTaskReward"](_0x3d7d80, _0x59bb84 = {}) {
try {
const _0x42eeee = {
"taskType": _0x3d7d80.taskType,
"activityCode": _0x1c616b,
"channelType": "MINI_PROGRAM"
};
let _0x217ae5 = {
"fn": "memberDay_fetchMixTaskReward",
"method": "post",
"url": "https://mcs-mimp-web.sf-express.com/mcs-mimp/commonPost/~memberNonactivity~activityTaskService~fetchMixTaskReward",
"headers": {
...this.getSign()
},
"json": _0x42eeee
},
{
result: _0x55ebdd
} = await this.request(_0x217ae5);
if (_0x55ebdd?.["success"]) this.log("领取会员日任务[" + _0x3d7d80.taskName + "]奖励成功");else {
let _0xbb7484 = _0x55ebdd?.["errorMessage"] || (_0x55ebdd ? JSON.stringify(_0x55ebdd) : "无返回");
this.log("领取会员日任务[" + _0x3d7d80.taskName + "]奖励失败: " + _0xbb7484);
if (_0xbb7484?.["includes"]("没有资格参与活动")) {
this.memberDay_black = true;
const _0x35118e = {
"notify": true
};
this.log("会员日任务风控", _0x35118e);
}
}
} catch (_0x37a52c) {
console.log(_0x37a52c);
}
}
async ["memberDay_redPacketReceivedStatus"](_0x8359b1 = {}) {
try {
let _0x4b585a = {
"fn": "memberDay_redPacketReceivedStatus",
"method": "post",
"url": "https://mcs-mimp-web.sf-express.com/mcs-mimp/commonPost/~memberNonactivity~memberDayTaskService~redPacketReceivedStatus",
"headers": {
...this.getSign()
},
"json": {}
},
{
result: _0x3b8e96
} = await this.request(_0x4b585a);
if (_0x3b8e96?.["success"]) {
for (let _0x402473 of _0x3b8e96?.["obj"] || []) {
if (_0x402473.received) {
continue;
}
let _0x38cb45 = new Date().getHours();
_0x402473.receiveHour == _0x38cb45 && (await this.memberDay_receiveRedPacket(_0x402473.receiveHour));
}
} else {
let _0x204939 = _0x3b8e96?.["errorMessage"] || (_0x3b8e96 ? JSON.stringify(_0x3b8e96) : "无返回");
this.log("会员日查询整点领红包失败: " + _0x204939);
if (_0x204939?.["includes"]("没有资格参与活动")) {
this.memberDay_black = true;
const _0x1e42c5 = {
"notify": true
};
this.log("会员日任务风控", _0x1e42c5);
}
}
} catch (_0x413342) {
console.log(_0x413342);
}
}
async ["memberDay_receiveRedPacket"](_0x1c1d7a, _0x4eaab9 = {}) {
try {
const _0x306393 = {
"receiveHour": _0x1c1d7a
};
let _0x171ec0 = {
"fn": "memberDay_receiveRedPacket",
"method": "post",
"url": "https://mcs-mimp-web.sf-express.com/mcs-mimp/commonPost/~memberNonactivity~memberDayTaskService~receiveRedPacket",
"headers": {
...this.getSign()
},
"json": _0x306393
},
{
result: _0x3749c9
} = await this.request(_0x171ec0);
if (_0x3749c9?.["success"]) {
this.log("会员日领取" + _0x1c1d7a + "点红包成功");
} else {
let _0x1b4107 = _0x3749c9?.["errorMessage"] || (_0x3749c9 ? JSON.stringify(_0x3749c9) : "无返回");
this.log("会员日领取" + _0x1c1d7a + "点红包失败: " + _0x1b4107);
if (_0x1b4107?.["includes"]("没有资格参与活动")) {
this.memberDay_black = true;
const _0x440d5d = {
"notify": true
};
this.log("会员日任务风控", _0x440d5d);
}
}
} catch (_0x1a7fca) {
console.log(_0x1a7fca);
}
}
async ["memberDay_redPacketStatus"](_0x5accd3 = {}) {
try {
let _0x28b707 = {
"fn": "memberDay_redPacketStatus",
"method": "post",
"url": "https://mcs-mimp-web.sf-express.com/mcs-mimp/commonPost/~memberNonactivity~memberDayPacketService~redPacketStatus",
"headers": {
...this.getSign()
},
"json": {}
},
{
result: _0x232b77
} = await this.request(_0x28b707);
if (_0x232b77?.["success"]) {
let {
drewToday: _0x438e86,
packetList: _0x7dfdbe
} = _0x232b77?.["obj"];
this.memberDay_redPacket_drewToday = _0x438e86;
for (let _0x3126df of _0x7dfdbe) {
this.memberDay_redPacket_map[_0x3126df.level] = _0x3126df.count;
}
let _0x240a58 = _0x48074c;
for (let _0x337807 = 1; _0x337807 < _0x240a58; _0x337807++) {
let _0x2867ae = this.memberDay_redPacket_map[_0x337807];
while (_0x2867ae >= 2) {
await this.memberDay_redPacketMerge(_0x337807);
_0x2867ae -= 2;
}
}
let _0x42de88 = [],
_0x20d125 = 0;
for (let _0x3c0b10 in this.memberDay_redPacket_map) {
if (!this.memberDay_redPacket_map[_0x3c0b10]) continue;
_0x42de88.push("[" + _0x3c0b10 + "级]X" + this.memberDay_redPacket_map[_0x3c0b10]);
let _0x2fc706 = parseInt(_0x3c0b10);
_0x2fc706 < _0x240a58 && (_0x20d125 += 1 << _0x2fc706 - 1);
}
const _0x24195d = {
"notify": true
};
this.log("会员日合成列表: " + _0x42de88.join(", "), _0x24195d);
if (this.memberDay_redPacket_map[_0x240a58]) {
const _0xeafb4f = {
"notify": true
};
this.log("会员日已拥有[" + _0x240a58 + "级]红包X" + this.memberDay_redPacket_map[_0x240a58], _0xeafb4f);
await this.memberDay_redPacketDraw(_0x240a58);
} else {
let _0x1140a4 = _0x596697 - _0x20d125;
const _0xf37ad2 = {
"notify": true
};
this.log("会员日距离[" + _0x240a58 + "级]红包还差: [1级]红包X" + _0x1140a4, _0xf37ad2);
}
} else {
let _0x59f7a1 = _0x232b77?.["errorMessage"] || (_0x232b77 ? JSON.stringify(_0x232b77) : "无返回");
this.log("查询会员日合成失败: " + _0x59f7a1);
if (_0x59f7a1?.["includes"]("没有资格参与活动")) {
this.memberDay_black = true;
const _0x52f5f3 = {
"notify": true
};
this.log("会员日任务风控", _0x52f5f3);
}
}
} catch (_0x162555) {
console.log(_0x162555);
}
}
async ["memberDay_redPacketMerge"](_0x2abaa8, _0x1265af = {}) {
try {
const _0x3ed0ae = {
"level": _0x2abaa8,
"num": 2
};
let _0x5a8e1a = {
"fn": "memberDay_redPacketMerge",
"method": "post",
"url": "https://mcs-mimp-web.sf-express.com/mcs-mimp/commonPost/~memberNonactivity~memberDayPacketService~redPacketMerge",
"headers": {
...this.getSign()
},
"json": _0x3ed0ae
},
{
result: _0x2fbd4e
} = await this.request(_0x5a8e1a);
if (_0x2fbd4e?.["success"]) {
this.log("会员日合成: [" + _0x2abaa8 + "级]红包X2 -> [" + (_0x2abaa8 + 1) + "级]红包");
this.memberDay_redPacket_map[_0x2abaa8] -= 2;
if (!this.memberDay_redPacket_map[_0x2abaa8 + 1]) {
this.memberDay_redPacket_map[_0x2abaa8 + 1] = 0;
}
this.memberDay_redPacket_map[_0x2abaa8 + 1]++;
} else {
let _0x1fd8a3 = _0x2fbd4e?.["errorMessage"] || (_0x2fbd4e ? JSON.stringify(_0x2fbd4e) : "无返回");
this.log("会员日合成两个[" + _0x2abaa8 + "级]红包失败: " + _0x1fd8a3);
if (_0x1fd8a3?.["includes"]("没有资格参与活动")) {
this.memberDay_black = true;
const _0xd92eaf = {
"notify": true
};
this.log("会员日任务风控", _0xd92eaf);
}
}
} catch (_0x20b301) {
console.log(_0x20b301);
}
}
async ["memberDay_redPacketDraw"](_0xc2e091, _0x6b0dbb = {}) {
try {
let _0xbbeca3 = {
"fn": "memberDay_redPacketDraw",
"method": "post",
"url": "https://mcs-mimp-web.sf-express.com/mcs-mimp/commonPost/~memberNonactivity~memberDayPacketService~redPacketDraw",
"headers": {
...this.getSign()
},
"json": {
"level": _0xc2e091.toString()
}
},
{
result: _0x10a9d4
} = await this.request(_0xbbeca3);
if (_0x10a9d4?.["success"]) {
let _0x17eb7b = _0x10a9d4?.["obj"]?.["map"](_0x263c52 => _0x263c52.couponName) || [];
const _0x299056 = {
"notify": true
};
this.log("会员日提取[" + _0xc2e091 + "级]红包: " + (_0x17eb7b.join(", ") || "空气"), _0x299056);
} else {
let _0x587a73 = _0x10a9d4?.["errorMessage"] || (_0x10a9d4 ? JSON.stringify(_0x10a9d4) : "无返回");
this.log("会员日提取[" + _0xc2e091 + "级]红包失败: " + _0x587a73);
if (_0x587a73?.["includes"]("没有资格参与活动")) {
this.memberDay_black = true;
const _0x5aa9c4 = {
"notify": true
};
this.log("会员日任务风控", _0x5aa9c4);
}
}
} catch (_0x511a08) {
console.log(_0x511a08);
}
}
async ["jika2024_taskList"](_0xfd1505 = {}) {
try {
let _0x17721f = {
"fn": "jika2024_taskList",
"method": "post",
"url": "https://mcs-mimp-web.sf-express.com/mcs-mimp/commonPost/~memberNonactivity~activityTaskService~taskList",
"headers": {
...this.getSign()
},
"json": {
"activityCode": _0xb8d615,
"channelType": "MINI_PROGRAM"
}
},
{
result: _0x340c96
} = await this.request(_0x17721f);
if (_0x340c96?.["success"]) {
let _0x5ca5a1 = _0x340c96?.["obj"] || [];
for (let _0x4b27b3 of _0x5ca5a1.filter(_0x4c2382 => _0x4c2382.status == 1)) {
if (this.jika_black) {
return;
}
for (let _0x86df00 = 0; _0x86df00 < _0x4b27b3.canReceiveTokenNum; _0x86df00++) {
await this.jika2024_fetchMixTaskReward(_0x4b27b3);
}
}
for (let _0x28dcf9 of _0x5ca5a1.filter(_0xa18bc9 => _0xa18bc9.status == 2)) {
if (this.jika_black) {
return;
}
switch (_0x28dcf9.taskType) {
case "PLAY_ACTIVITY_GAME":
{
this.log("开始玩新年集卡猜成语");
for (let _0x489351 = 1; _0x489351 <= 10; _0x489351++) {
let _0x6c2720 = Math.floor(Math.random() * 3000) + 1000;
await _0x1366a8.wait(_0x6c2720);
await this.jika2024_chengyu_win(_0x489351);
}
break;
}
case "FOLLOW_SFZHUNONG_VEDIO_ID":
{
break;
}
case "CLICK_MY_SETTING":
case "CLICK_TEMPLATE":
case "REAL_NAME":
case "SEND_SUCCESS_RECALL":
case "OPEN_SVIP":
case "OPEN_FAST_CARD":
case "FIRST_CHARGE_NEW_EXPRESS_CARD":
case "CHARGE_NEW_EXPRESS_CARD":
case "INTEGRAL_EXCHANGE":
{
break;
}
default:
{
for (let _0x151647 = 0; _0x151647 < _0x28dcf9.restFinishTime && !this.jika_black; _0x151647++) {
await this.jika2024_finishTask(_0x28dcf9);
}
break;
}
}
}
} else this.log("查询新年集卡任务失败: " + (_0x340c96?.["errorMessage"] || (_0x340c96 ? JSON.stringify(_0x340c96) : "无返回")));
} catch (_0x36aa76) {
console.log(_0x36aa76);
}
}
async ["jika2024_finishTask"](_0x4eaebd, _0x37da57 = {}) {
try {
const _0x53b9df = {
"taskCode": _0x4eaebd.taskCode
};
let _0x4cd8ec = {
"fn": "jika2024_finishTask",
"method": "post",
"url": "https://mcs-mimp-web.sf-express.com/mcs-mimp/commonRoutePost/memberEs/taskRecord/finishTask",
"headers": {
...this.getSign()
},
"json": _0x53b9df
},
{
result: _0x3d58ea
} = await this.request(_0x4cd8ec);
_0x3d58ea?.["success"] ? (this.log("完成新年集卡任务[" + _0x4eaebd.taskName + "]成功"), await this.jika2024_fetchMixTaskReward(_0x4eaebd)) : this.log("完成新年集卡任务[" + _0x4eaebd.taskName + "]失败: " + (_0x3d58ea?.["errorMessage"] || (_0x3d58ea ? JSON.stringify(_0x3d58ea) : "无返回")));
} catch (_0x273f5d) {
console.log(_0x273f5d);
}
}
async ["jika2024_fetchMixTaskReward"](_0x3c2c7f, _0x5bd7b4 = {}) {
try {
const _0x142391 = {
"taskType": _0x3c2c7f.taskType,
"activityCode": _0xb8d615,
"channelType": "MINI_PROGRAM"
};
let _0x1f4573 = {
"fn": "jika2024_fetchMixTaskReward",
"method": "post",
"url": "https://mcs-mimp-web.sf-express.com/mcs-mimp/commonNoLoginPost/~memberNonactivity~yearEnd2023TaskService~fetchMixTaskReward",
"headers": {
...this.getSign()
},
"json": _0x142391
},
{
result: _0x330180
} = await this.request(_0x1f4573);
if (_0x330180?.["success"]) {
let _0x2fc2c6 = [],
{
receivedAccountList = [],
turnedAward = {}
} = _0x330180.obj;
for (let _0x3e7741 of receivedAccountList) {
_0x2fc2c6.push("" + (_0xd3a68c[_0x3e7741.currency] || "[" + _0x3e7741.currency + "]"));
}
turnedAward?.["couponName"] && _0x2fc2c6.push("[优惠券]" + turnedAward?.["couponName"]);
this.log("领取任务[" + _0x3c2c7f.taskName + "]奖励: " + _0x2fc2c6.join(", "));
} else {
let _0x4ac5e3 = _0x330180?.["errorMessage"] || (_0x330180 ? JSON.stringify(_0x330180) : "无返回");
this.log("领取任务[" + _0x3c2c7f.taskName + "]奖励失败: " + _0x4ac5e3);
_0x4ac5e3?.["includes"]("用户手机号校验未通过") && (this.jika_black = true);
}
} catch (_0x4ad922) {
console.log(_0x4ad922);
}
}
async ["jika2024_getAward"](_0x4142d9, _0x39ec59 = {}) {
try {
const _0x5c1e8b = {
"cardType": _0x4142d9
};
let _0x947280 = {
"fn": "jika2024_getAward",
"method": "post",
"url": "https://mcs-mimp-web.sf-express.com/mcs-mimp/commonPost/~memberNonactivity~yearEnd2023GardenPartyService~getAward",
"headers": {
...this.getSign()
},
"json": _0x5c1e8b
},
{
result: _0x58f4b7
} = await this.request(_0x947280);
if (_0x58f4b7?.["success"]) {
let _0x1fcd8e = [],
{
receivedAccountList = [],
turnedAward = {}
} = _0x58f4b7.obj;
for (let _0x395409 of receivedAccountList) {
_0x1fcd8e.push("" + (_0xd3a68c[_0x395409.currency] || "[" + _0x395409.currency + "]"));
}
turnedAward?.["couponName"] && _0x1fcd8e.push("[优惠券]" + turnedAward?.["couponName"]);
this.log("逛集市领卡奖励: " + _0x1fcd8e.join(", "));
} else {
let _0x1de8e6 = _0x58f4b7?.["errorMessage"] || (_0x58f4b7 ? JSON.stringify(_0x58f4b7) : "无返回");
this.log("逛集市领卡失败: " + _0x1de8e6);
_0x1de8e6?.["includes"]("用户手机号校验未通过") && (this.jika_black = true);
}
} catch (_0x3a2fb0) {
console.log(_0x3a2fb0);
}
}
async ["jika2024_chengyu_index"](_0x4fde86 = {}) {
try {
let _0x3a0819 = {
"fn": "jika2024_chengyu_index",
"method": "post",
"url": "https://mcs-mimp-web.sf-express.com/mcs-mimp/commonPost/~memberNonactivity~yearEnd2023GuessIdiomService~index",
"headers": {
...this.getSign()
},
"json": {}
},
{
result: _0xe875a
} = await this.request(_0x3a0819);
if (_0xe875a?.["success"]) {
if (_0xe875a?.["obj"]?.["bigCardFlag"]) this.log("今天已完成新年集卡猜成语");else {
this.log("开始玩新年集卡猜成语");
for (let _0x25d9bc = 1; _0x25d9bc <= 10; _0x25d9bc++) {
let _0x5190a7 = Math.floor(Math.random() * 3000) + 1000;
await _0x1366a8.wait(_0x5190a7);
await this.jika2024_chengyu_win(_0x25d9bc);
}
}
} else this.log("查询新年集卡猜成语任务失败: " + (_0xe875a?.["errorMessage"] || (_0xe875a ? JSON.stringify(_0xe875a) : "无返回")));
} catch (_0x2f445d) {
console.log(_0x2f445d);
}
}
async ["jika2024_chengyu_win"](_0x27f9b9, _0x296498 = {}) {
try {
const _0x474ef4 = {
"index": _0x27f9b9
};
let _0x36197a = {
"fn": "jika2024_chengyu_win",
"method": "post",
"url": "https://mcs-mimp-web.sf-express.com/mcs-mimp/commonPost/~memberNonactivity~yearEnd2023GuessIdiomService~win",
"headers": {
...this.getSign()
},
"json": _0x474ef4
},
{
result: _0x56c255
} = await this.request(_0x36197a);
if (_0x56c255?.["success"]) {
let {
isAward: _0x39fe4b,
currencyDTOList: _0x339326
} = _0x56c255?.["obj"];
if (_0x39fe4b) {
let _0x5d385e = [];
for (let _0x55f4dd of _0x339326) {
_0x5d385e.push("" + (_0xd3a68c[_0x55f4dd.currency] || "[" + _0x55f4dd.currency + "]"));
}
this.log("猜成语第" + _0x27f9b9 + "关通关成功: " + _0x5d385e.join(", "));
} else this.log("猜成语第" + _0x27f9b9 + "关通关成功");
} else {
let _0x567902 = _0x56c255?.["errorMessage"] || (_0x56c255 ? JSON.stringify(_0x56c255) : "无返回");
this.log("猜成语第" + _0x27f9b9 + "关失败: " + _0x567902);
_0x567902?.["includes"]("系统繁忙") && (this.jika_black = true);
}
} catch (_0x5209fc) {
console.log(_0x5209fc);
}
}
async ["jika2024_cardStatus"](_0x1798b0 = {}) {
try {
let _0x38899a = {
"fn": "jika2024_cardStatus",
"method": "post",
"url": "https://mcs-mimp-web.sf-express.com/mcs-mimp/commonPost/~memberNonactivity~yearEnd2023CardService~cardStatus",
"headers": {
...this.getSign()
},
"json": {}
},
{
result: _0x1fc4d6
} = await this.request(_0x38899a);
if (_0x1fc4d6?.["success"]) {
let _0x29582e = _0x1fc4d6?.["obj"]?.["accountList"] || [];
if (_0x29582e?.["length"]) {
this.cards = _0x29582e.filter(_0x4e57ac => _0x4e57ac.balance > 0);
this.cards.sort((_0x5d1f72, _0x3e3b9a) => {
return _0x3e3b9a.balance - _0x5d1f72.balance;
});
let _0x2594b8 = [];
for (let _0x19077a of this.cards) {
let _0x34f762 = _0xd3a68c[_0x19077a.currency] || "[" + _0x19077a.currency + "]";
_0x2594b8.push(_0x34f762 + "X" + _0x19077a.balance);
}
const _0x479d92 = {
"notify": true
};
this.log("年卡: " + _0x2594b8.join(", "), _0x479d92);
if (this.cards.filter(_0x2f95e3 => _0x2f95e3.balance > 0).filter(_0x5b3ac1 => _0x5b3ac1.currency == "COMMON_CARD").length > 0) {
const _0x3856ca = {
"notify": true
};
this.log("拥有万能卡, 请自行合成, 不自动抽奖", _0x3856ca);
return;
}
while (this.cards.filter(_0x14de1b => _0x14de1b.balance > 0).length >= 3 && !this.jika_black) {
await this.jika2024_collectDrawAward();
}
} else {
const _0xbf6fca = {
"notify": true
};
this.log("还没有收集到年卡", _0xbf6fca);
}
} else this.log("查询已收集年卡失败: " + (_0x1fc4d6?.["errorMessage"] || (_0x1fc4d6 ? JSON.stringify(_0x1fc4d6) : "无返回")));
} catch (_0x1b557e) {
console.log(_0x1b557e);
}
}
async ["jika2024_collectDrawAward"](_0x464ea7 = {}) {
try {
let _0x24d373 = this.cards.filter(_0x19be8f => _0x19be8f.balance > 0).map(_0xe200be => _0xe200be.currency);
_0x24d373.length > 6 && (_0x24d373 = _0x24d373.slice(0, 6));
const _0x25a170 = {
"accountList": _0x24d373
};
let _0x4f9807 = {
"fn": "jika2024_collectDrawAward",
"method": "post",
"url": "https://mcs-mimp-web.sf-express.com/mcs-mimp/commonPost/~memberNonactivity~yearEnd2023CardService~collectDrawAward",
"headers": {
...this.getSign()
},
"json": _0x25a170
},
{
result: _0x4544ed
} = await this.request(_0x4f9807);
if (_0x4544ed?.["success"]) {
let {
productName: _0x357289
} = _0x4544ed?.["obj"];
const _0x46ff81 = {
"notify": true
};
this.log("使用" + _0x24d373.length + "种年卡合成: " + _0x357289, _0x46ff81);
for (let _0x515315 of this.cards) {
_0x24d373.includes(_0x515315.currency) && (_0x515315.balance -= 1);
}
} else {
let _0x472a5e = _0x4544ed?.["errorMessage"] || (_0x4544ed ? JSON.stringify(_0x4544ed) : "无返回");
this.log("使用" + _0x24d373.length + "种年卡合成失败: " + _0x472a5e);
_0x472a5e?.["includes"]("系统繁忙") && (this.jika_black = true);
}
} catch (_0x281380) {
console.log(_0x281380);
}
}
async ["jika2024_task"](_0x807a85 = {}) {
await this.jika2024_cardStatus();
}
async ["anniversary2024_weeklyGiftStatus"](_0x2c70ee = {}) {
try {
let _0x2199e4 = {
"fn": "anniversary2024_weeklyGiftStatus",
"method": "post",
"url": "https://mcs-mimp-web.sf-express.com/mcs-mimp/commonPost/~memberNonactivity~anniversary2024IndexService~weeklyGiftStatus",
"headers": {
...this.getSign()
},
"json": {}
},
{
result: _0x3aa2fe
} = await this.request(_0x2199e4);
if (_0x3aa2fe?.["success"]) {
let _0x91a2c2 = _0x3aa2fe?.["obj"]?.["weeklyGiftList"] || [];
for (let _0x18f5e1 of _0x91a2c2) {
if (!_0x18f5e1.received) {
let _0x5112be = new Date(_0x18f5e1.receiveStartTime),
_0x5b8b6b = new Date(_0x18f5e1.receiveEndTime),
_0xd4697c = Date.now();
_0xd4697c >= _0x5112be.getTime() && _0xd4697c <= _0x5b8b6b.getTime() && (await this.anniversary2024_receiveWeeklyGift());
}
}
} else {
let _0x50ed8b = _0x3aa2fe?.["errorMessage"] || (_0x3aa2fe ? JSON.stringify(_0x3aa2fe) : "无返回");
this.log("查询周年庆每周领券失败: " + _0x50ed8b);
(_0x50ed8b?.["includes"]("系统繁忙") || _0x50ed8b?.["includes"]("用户手机号校验未通过")) && (this.anniversary_black = true);
}
} catch (_0xd58429) {
console.log(_0xd58429);
}
}
async ["anniversary2024_receiveWeeklyGift"](_0xc65749 = {}) {
try {
let _0x1ed4e2 = {
"fn": "anniversary2024_receiveWeeklyGift",
"method": "post",
"url": "https://mcs-mimp-web.sf-express.com/mcs-mimp/commonPost/~memberNonactivity~anniversary2024IndexService~receiveWeeklyGift",
"headers": {
...this.getSign()
},
"json": {}
},
{
result: _0x28ed91
} = await this.request(_0x1ed4e2);
if (_0x28ed91?.["success"]) {
let _0x3b00e1 = _0x28ed91?.["obj"]?.["map"](_0x46780f => _0x46780f.productName);
this.log("周年庆每周领券: " + _0x3b00e1.join(", "));
} else {
let _0x5e8604 = _0x28ed91?.["errorMessage"] || (_0x28ed91 ? JSON.stringify(_0x28ed91) : "无返回");
this.log("周年庆每周领券失败: " + _0x5e8604);
(_0x5e8604?.["includes"]("系统繁忙") || _0x5e8604?.["includes"]("用户手机号校验未通过")) && (this.anniversary_black = true);
}
} catch (_0x52d8ec) {
console.log(_0x52d8ec);
}
}
async ["anniversary2024_taskList"](_0xec72f3 = {}) {
try {
let _0x2b8e57 = {
"fn": "anniversary2024_taskList",
"method": "post",
"url": "https://mcs-mimp-web.sf-express.com/mcs-mimp/commonPost/~memberNonactivity~activityTaskService~taskList",
"headers": {
...this.getSign()
},
"json": {
"activityCode": _0x4c1524,
"channelType": "MINI_PROGRAM"
}
},
{
result: _0x2cbc6f
} = await this.request(_0x2b8e57);
if (_0x2cbc6f?.["success"]) {
let _0xb9a07f = _0x2cbc6f?.["obj"] || [];
for (let _0x11b603 of _0xb9a07f.filter(_0x47a348 => _0x47a348.status == 1)) {
if (this.anniversary_black) return;
for (let _0x23afc4 = 0; _0x23afc4 < _0x11b603.canReceiveTokenNum; _0x23afc4++) {
await this.anniversary2024_fetchMixTaskReward(_0x11b603);
}
}
for (let _0x4a19e5 of _0xb9a07f.filter(_0x1b2efb => _0x1b2efb.status == 2)) {
if (this.anniversary_black) return;
switch (_0x4a19e5.taskType) {
case "PLAY_ACTIVITY_GAME":
case "PLAY_HAPPY_ELIMINATION":
case "PARTAKE_SUBJECT_GAME":
{
break;
}
case "FOLLOW_SFZHUNONG_VEDIO_ID":
{
break;
}
case "BROWSE_VIP_CENTER":
case "GUESS_GAME_TIP":
case "CREATE_SFID":
case "CLICK_MY_SETTING":
case "CLICK_TEMPLATE":
case "REAL_NAME":
case "SEND_SUCCESS_RECALL":
case "OPEN_SVIP":
case "OPEN_FAST_CARD":
case "FIRST_CHARGE_NEW_EXPRESS_CARD":
case "CHARGE_NEW_EXPRESS_CARD":
case "INTEGRAL_EXCHANGE":
{
break;
}
default:
{
for (let _0x51f1da = 0; _0x51f1da < _0x4a19e5.restFinishTime && !this.anniversary_black; _0x51f1da++) {
await this.anniversary2024_finishTask(_0x4a19e5);
}
break;
}
}
}
} else this.log("查询任务失败: " + (_0x2cbc6f?.["errorMessage"] || (_0x2cbc6f ? JSON.stringify(_0x2cbc6f) : "无返回")));
} catch (_0x7b81b5) {
console.log(_0x7b81b5);
}
}
async ["anniversary2024_finishTask"](_0x3d0844, _0x3afcb3 = {}) {
try {
const _0x74be4b = {
"taskCode": _0x3d0844.taskCode
};
let _0x1b2859 = {
"fn": "anniversary2024_finishTask",
"method": "post",
"url": "https://mcs-mimp-web.sf-express.com/mcs-mimp/commonRoutePost/memberEs/taskRecord/finishTask",
"headers": {
...this.getSign()
},
"json": _0x74be4b
},
{
result: _0x2adee7
} = await this.request(_0x1b2859);
_0x2adee7?.["success"] ? (this.log("完成任务[" + _0x3d0844.taskName + "]成功"), await this.anniversary2024_fetchMixTaskReward(_0x3d0844)) : this.log("完成任务[" + _0x3d0844.taskName + "]失败: " + (_0x2adee7?.["errorMessage"] || (_0x2adee7 ? JSON.stringify(_0x2adee7) : "无返回")));
} catch (_0x5578cd) {
console.log(_0x5578cd);
}
}
async ["anniversary2024_fetchMixTaskReward"](_0x183882, _0x5c7536 = {}) {
try {
let _0xb9a4eb = {
"fn": "anniversary2024_fetchMixTaskReward",
"method": "post",
"url": "https://mcs-mimp-web.sf-express.com/mcs-mimp/commonPost/~memberNonactivity~anniversary2024TaskService~fetchMixTaskReward",
"headers": {
...this.getSign()
},
"json": {
"taskType": _0x183882.taskType,
"activityCode": _0x4c1524,
"channelType": "MINI_PROGRAM"
}
},
{
result: _0x4205ce
} = await this.request(_0xb9a4eb);
if (_0x4205ce?.["success"]) {
let _0x51ce28 = [],
{
receivedAccountList = [],
turnedAward = {}
} = _0x4205ce?.["obj"]?.["account"];
for (let _0x4ba0fe of receivedAccountList) {
_0x51ce28.push("[" + _0x4ba0fe.currency + "]X" + _0x4ba0fe.amount);
}
turnedAward?.["productName"] && _0x51ce28.push("[优惠券]" + turnedAward?.["productName"]);
this.log("领取任务[" + _0x183882.taskName + "]奖励: " + _0x51ce28.join(", "));
} else {
let _0x289206 = _0x4205ce?.["errorMessage"] || (_0x4205ce ? JSON.stringify(_0x4205ce) : "无返回");
this.log("领取任务[" + _0x183882.taskName + "]奖励失败: " + _0x289206);
_0x289206?.["includes"]("用户手机号校验未通过") && (this.anniversary_black = true);
}
} catch (_0x367d24) {
console.log(_0x367d24);
}
}
async ["anniversary2024_unbox"](_0x44cd84 = {}) {
try {
let _0x1d8096 = {
"fn": "anniversary2024_unbox",
"method": "post",
"url": "https://mcs-mimp-web.sf-express.com/mcs-mimp/commonPost/~memberNonactivity~anniversary2024CardService~unbox",
"headers": {
...this.getSign()
},
"json": {}
},
{
result: _0x2af907
} = await this.request(_0x1d8096);
if (_0x2af907?.["success"]) {
let _0x1cf4f4 = [],
_0x5ce586 = _0x2af907?.["obj"]?.["account"]?.["receivedAccountList"] || [];
for (let _0x5c87ca of _0x5ce586) {
_0x1cf4f4.push("[" + _0x5c87ca.currency + "]X" + _0x5c87ca.amount);
}
this.log("拆盒子: " + (_0x1cf4f4.join(", ") || "空气"));
} else {
let _0x3b206f = _0x2af907?.["errorMessage"] || (_0x2af907 ? JSON.stringify(_0x2af907) : "无返回");
this.log("拆盒子失败: " + _0x3b206f);
_0x3b206f?.["includes"]("用户手机号校验未通过") && (this.anniversary_black = true);
}
} catch (_0xc0b941) {
console.log(_0xc0b941);
}
}
async ["anniversary2024_game_list"](_0x211ab3 = {}) {
try {
let _0x541149 = {
"fn": "anniversary2024_game_list",
"method": "post",
"url": "https://mcs-mimp-web.sf-express.com/mcs-mimp/commonPost/~memberNonactivity~anniversary2024GameParkService~list",
"headers": {
...this.getSign()
},
"json": {}
},
{
result: _0x1bf4eb
} = await this.request(_0x541149);
if (_0x1bf4eb?.["success"]) {
let {
topicPKInfo: _0x7e74c8,
searchWordInfo: _0x12dacd,
happyEliminationInfo: _0x4908f6
} = _0x1bf4eb?.["obj"];
!_0x7e74c8?.["isPassFlag"] && (this.log("开始话题PK赛"), await this.anniversary2024_TopicPk_topicList());
if (!_0x12dacd?.["isPassFlag"] || !_0x12dacd?.["isFinishDailyFlag"]) {
this.log("开始找字游戏");
for (let _0x37e9ea = 1; _0x37e9ea <= 10; _0x37e9ea++) {
let _0x1bb3b1 = Math.floor(Math.random() * 2000) + 1000;
await _0x1366a8.wait(_0x1bb3b1);
if (!(await this.anniversary2024_SearchWord_win(_0x37e9ea))) {
break;
}
}
}
if (!_0x4908f6?.["isPassFlag"] || !_0x4908f6?.["isFinishDailyFlag"]) {
this.log("开始消消乐");
for (let _0x4f8a4f = 1; _0x4f8a4f <= 30; _0x4f8a4f++) {
let _0x2e1da6 = Math.floor(Math.random() * 2000) + 1000;
await _0x1366a8.wait(_0x2e1da6);
if (!(await this.anniversary2024_HappyElimination_win(_0x4f8a4f))) break;
}
}
} else {
let _0x137bd7 = _0x1bf4eb?.["errorMessage"] || (_0x1bf4eb ? JSON.stringify(_0x1bf4eb) : "无返回");
this.log("查询游戏状态失败: " + _0x137bd7);
_0x137bd7?.["includes"]("用户手机号校验未通过") && (this.anniversary_black = true);
}
} catch (_0x14a39d) {
console.log(_0x14a39d);
}
}
async ["anniversary2024_SearchWord_win"](_0x4ce8d7, _0x3ced9a = {}) {
let _0x2b4015 = true;
try {
const _0x4b686a = {
"index": _0x4ce8d7
};
let _0x152e09 = {
"fn": "anniversary2024_SearchWord_win",
"method": "post",
"url": "https://mcs-mimp-web.sf-express.com/mcs-mimp/commonPost/~memberNonactivity~anniversary2024SearchWordService~win",
"headers": {
...this.getSign()
},
"json": _0x4b686a
},
{
result: _0x389496
} = await this.request(_0x152e09);
if (_0x389496?.["success"]) {
let {
currencyDTOList = []
} = _0x389496?.["obj"];
if (currencyDTOList?.["length"]) {
let _0x4e5c0a = [];
for (let _0x529ff7 of currencyDTOList) {
_0x4e5c0a.push("[" + _0x529ff7.currency + "]X" + _0x529ff7.amount);
}
this.log("找字游戏第" + _0x4ce8d7 + "关通关成功: " + _0x4e5c0a.join(", "));
} else this.log("找字游戏第" + _0x4ce8d7 + "关通关成功");
} else {
let _0x3a1b66 = _0x389496?.["errorMessage"] || (_0x389496 ? JSON.stringify(_0x389496) : "无返回");
this.log("找字游戏第" + _0x4ce8d7 + "关失败: " + _0x3a1b66);
_0x3a1b66?.["includes"]("系统繁忙") && (_0x2b4015 = false);
}
} catch (_0x159460) {
console.log(_0x159460);
} finally {
return _0x2b4015;
}
}
async ["anniversary2024_HappyElimination_win"](_0x3b9f2c, _0x3e128e = {}) {
let _0x5914a3 = true;
try {
const _0x19b1f1 = {
"index": _0x3b9f2c
};
let _0x3d5e9b = {
"fn": "anniversary2024_HappyElimination_win",
"method": "post",
"url": "https://mcs-mimp-web.sf-express.com/mcs-mimp/commonPost/~memberNonactivity~anniversary2024HappyEliminationService~win",
"headers": {
...this.getSign()
},
"json": _0x19b1f1
},
{
result: _0x7ce062
} = await this.request(_0x3d5e9b);
if (_0x7ce062?.["success"]) {
let {
isAward: _0x5bf56a,
currencyDTOList: _0x4df9c2
} = _0x7ce062?.["obj"];
if (_0x5bf56a) {
let _0x268b0b = [];
for (let _0x2f11ea of _0x4df9c2) {
_0x268b0b.push("[" + _0x2f11ea.currency + "]X" + _0x2f11ea.amount);
}
this.log("消消乐第" + _0x3b9f2c + "关通关成功: " + _0x268b0b.join(", "));
} else this.log("消消乐第" + _0x3b9f2c + "关通关成功");
} else {
let _0x341596 = _0x7ce062?.["errorMessage"] || (_0x7ce062 ? JSON.stringify(_0x7ce062) : "无返回");
this.log("消消乐第" + _0x3b9f2c + "关失败: " + _0x341596);
_0x341596?.["includes"]("系统繁忙") && (_0x5914a3 = false);
}
} catch (_0x55cf04) {
console.log(_0x55cf04);
} finally {
return _0x5914a3;
}
}
async ["anniversary2024_TopicPk_topicList"](_0x144d2c = {}) {
try {
let _0x57cda6 = {
"fn": "anniversary2024_TopicPk_topicList",
"method": "post",
"url": "https://mcs-mimp-web.sf-express.com/mcs-mimp/commonPost/~memberNonactivity~anniversary2024TopicPkService~topicList",
"headers": {
...this.getSign()
},
"json": {}
},
{
result: _0xed82e1
} = await this.request(_0x57cda6);
if (_0xed82e1?.["success"]) {
let _0x2dfbd2 = _0xed82e1?.["obj"]?.["topics"] || [],
_0x5f7465 = _0x2dfbd2?.["filter"](_0x27d743 => !_0x27d743?.["choose"])?.[0]?.["index"] || 1;
for (let _0x2fa630 = parseInt(_0x5f7465); _0x2fa630 <= 12; _0x2fa630++) {
let _0xe40d9 = Math.floor(Math.random() * 2000) + 2000;
await _0x1366a8.wait(_0xe40d9);
if (!(await this.anniversary2024_TopicPk_chooseSide(_0x2fa630))) break;
}
} else {
let _0x4b98a8 = _0xed82e1?.["errorMessage"] || (_0xed82e1 ? JSON.stringify(_0xed82e1) : "无返回");
this.log("查询话题PK赛记录失败: " + _0x4b98a8);
_0x4b98a8?.["includes"]("系统繁忙") && (this.anniversary_black = true);
}
} catch (_0x1992ae) {
console.log(_0x1992ae);
}
}
async ["anniversary2024_queryAccountStatus_refresh"](_0x3dcac4 = {}) {
try {
let _0x493b13 = {
"fn": "anniversary2024_queryAccountStatus_refresh",
"method": "post",
"url": "https://mcs-mimp-web.sf-express.com/mcs-mimp/commonPost/~memberNonactivity~anniversary2024CardService~queryAccountStatus",
"headers": {
...this.getSign()
},
"json": {}
};
await this.request(_0x493b13);
} catch (_0xaa462e) {
console.log(_0xaa462e);
}
}
async ["anniversary2024_TopicPk_chooseSide"](_0x10c758, _0x5b240d = {}) {
let _0x515875 = true;
try {
const _0x3e948e = {
"index": _0x10c758,
"choose": 0
};
let _0x566510 = {
"fn": "anniversary2024_TopicPk_chooseSide",
"method": "post",
"url": "https://mcs-mimp-web.sf-express.com/mcs-mimp/commonPost/~memberNonactivity~anniversary2024TopicPkService~chooseSide",
"headers": {
...this.getSign()
},
"json": _0x3e948e
},
{
result: _0x1ace1a
} = await this.request(_0x566510);
if (_0x1ace1a?.["success"]) {
let {
currencyDTOList = []
} = _0x1ace1a?.["obj"];
if (currencyDTOList.length) {
let _0x49997c = [];
for (let _0x24ff1f of currencyDTOList) {
_0x49997c.push("[" + _0x24ff1f.currency + "]X" + _0x24ff1f.amount);
}
this.log("话题PK赛第" + _0x10c758 + "个话题选择成功: " + _0x49997c.join(", "));
} else this.log("话题PK赛第" + _0x10c758 + "个话题选择成功");
} else {
let _0x1ee6df = _0x1ace1a?.["errorMessage"] || (_0x1ace1a ? JSON.stringify(_0x1ace1a) : "无返回");
this.log("话题PK赛第" + _0x10c758 + "个话题失败: " + _0x1ee6df);
_0x1ee6df?.["includes"]("系统繁忙") && (_0x515875 = false);
}
} catch (_0x5806c) {
console.log(_0x5806c);
} finally {
return _0x515875;
}
}
async ["anniversary2024_titleList"](_0xb9cfe2 = {}) {
try {
let _0x796570 = {
"fn": "anniversary2024_titleList",
"method": "post",
"url": "https://mcs-mimp-web.sf-express.com/mcs-mimp/commonPost/~memberNonactivity~anniversary2024GuessService~titleList",
"headers": {
...this.getSign()
},
"json": {}
},
{
result: _0x29c51a
} = await this.request(_0x796570);
if (_0x29c51a?.["success"]) {
let {
guessTitleInfoList = []
} = _0x29c51a?.["obj"],
_0xd233b8 = _0x1366a8.time("yyyy-MM-dd"),
_0x20fcab = guessTitleInfoList.filter(_0x5b746c => _0x5b746c.gameDate == _0xd233b8);
if (_0x20fcab.length > 0) {
let _0x5287ac = _0x20fcab[0];
if (_0x5287ac.answerStatus) this.log("今日已回答过竞猜");else {
let _0xdebffb = _0x479306?.["answer"]?.[_0xd233b8];
_0x479306?.["answer"]?.[_0xd233b8] && (await this.anniversary2024_answer(_0x5287ac, _0xdebffb));
}
} else this.log("没有查询到今日竞猜题目");
} else {
let _0x42fd1e = _0x29c51a?.["errorMessage"] || (_0x29c51a ? JSON.stringify(_0x29c51a) : "无返回");
this.log("查询每日口令竞猜失败: " + _0x42fd1e);
}
} catch (_0x5ed3f5) {
console.log(_0x5ed3f5);
}
}
async ["anniversary2024_titleList_award"](_0x20bbbb = {}) {
try {
let _0x441a1a = {
"fn": "anniversary2024_titleList_award",
"method": "post",
"url": "https://mcs-mimp-web.sf-express.com/mcs-mimp/commonPost/~memberNonactivity~anniversary2024GuessService~titleList",
"headers": {
...this.getSign()
},
"json": {}
},
{
result: _0x5771d2
} = await this.request(_0x441a1a);
if (_0x5771d2?.["success"]) {
let {
guessTitleInfoList = []
} = _0x5771d2?.["obj"],
_0x4f3b17 = _0x1366a8.time("yyyy-MM-dd"),
_0x5d4692 = guessTitleInfoList.filter(_0x9916d3 => _0x9916d3.gameDate == _0x4f3b17);
if (_0x5d4692.length > 0) {
let _0x2423e5 = _0x5d4692[0];
if (_0x2423e5.answerStatus) {
let _0x424add = [],
{
awardList = [],
puzzleList = []
} = _0x2423e5;
_0x424add = _0x424add.concat(awardList.map(_0x5bc780 => _0x5bc780.productName));
_0x424add = _0x424add.concat(puzzleList.map(_0x413bd5 => "[" + _0x413bd5.currency + "]X" + _0x413bd5.amount));
const _0x536e39 = {
"notify": true
};
this.log("口令竞猜奖励: " + (_0x424add.join(", ") || "空气"), _0x536e39);
} else this.log("今日还没回答竞猜");
} else this.log("没有查询到今日竞猜奖励");
} else {
let _0x3fe2f8 = _0x5771d2?.["errorMessage"] || (_0x5771d2 ? JSON.stringify(_0x5771d2) : "无返回");
this.log("查询每日口令竞猜奖励失败: " + _0x3fe2f8);
}
} catch (_0x439917) {
console.log(_0x439917);
}
}
async ["anniversary2024_answer"](_0x2e58f5, _0x2f456d, _0x7d3bb2 = {}) {
try {
const _0x233136 = {
"period": _0x2e58f5.period,
"answerInfo": _0x2f456d
};
let _0x457cfc = {
"fn": "anniversary2024_answer",
"method": "post",
"url": "https://mcs-mimp-web.sf-express.com/mcs-mimp/commonPost/~memberNonactivity~anniversary2024GuessService~answer",
"headers": {
...this.getSign()
},
"json": _0x233136
},
{
result: _0x1c3b5e
} = await this.request(_0x457cfc);
if (_0x1c3b5e?.["success"]) this.log("口令竞猜回答成功"), await this.anniversary2024_titleList_award();else {
let _0x5b9516 = _0x1c3b5e?.["errorMessage"] || (_0x1c3b5e ? JSON.stringify(_0x1c3b5e) : "无返回");
this.log("口令竞猜回答失败: " + _0x5b9516);
}
} catch (_0xc4f5bb) {
console.log(_0xc4f5bb);
}
}
async ["anniversary2024_queryAccountStatus"](_0x522285 = {}) {
try {
let _0x924382 = {
"fn": "anniversary2024_queryAccountStatus",
"method": "post",
"url": "https://mcs-mimp-web.sf-express.com/mcs-mimp/commonPost/~memberNonactivity~anniversary2024CardService~queryAccountStatus",
"headers": {
...this.getSign()
},
"json": {}
};
{
let {
result: _0x2b40cb
} = await this.request(_0x924382);
if (_0x2b40cb?.["success"]) {
let _0x4abcc2 = _0x2b40cb?.["obj"]?.["accountCurrencyList"] || [],
_0x496fb7 = _0x4abcc2.filter(_0x9ce8bc => _0x9ce8bc.currency == "UNBOX_CHANCE"),
_0xa0bce5 = _0x496fb7?.[0]?.["balance"] || 0;
this.log("可以拆" + _0xa0bce5 + "次盒子");
while (_0xa0bce5-- > 0) {
await this.anniversary2024_unbox();
}
} else {
this.log("查询已收集拼图失败: " + (_0x2b40cb?.["errorMessage"] || (_0x2b40cb ? JSON.stringify(_0x2b40cb) : "无返回")));
}
}
{
let {
result: _0x12580e
} = await this.request(_0x924382);
if (_0x12580e?.["success"]) {
let _0x5ceb41 = _0x12580e?.["obj"]?.["accountCurrencyList"] || [];
_0x5ceb41 = _0x5ceb41.filter(_0x2731fc => _0x2731fc.currency != "UNBOX_CHANCE");
if (_0x5ceb41?.["length"]) {
this.cards = _0x5ceb41;
let _0x43ca38 = [];
for (let _0x5429a8 of this.cards) {
_0x43ca38.push("[" + _0x5429a8.currency + "]X" + _0x5429a8.balance);
}
const _0x2a0e36 = {
"notify": true
};
this.log("拼图: " + _0x43ca38.join(", "), _0x2a0e36);
this.cards.sort((_0x4a2381, _0x18c4a1) => {
return _0x18c4a1.balance - _0x4a2381.balance;
});
} else {
const _0x5d47bd = {
"notify": true
};
this.log("还没有收集到拼图", _0x5d47bd);
}
} else {
this.log("查询已收集拼图失败: " + (_0x12580e?.["errorMessage"] || (_0x12580e ? JSON.stringify(_0x12580e) : "无返回")));
}
}
} catch (_0x1835c1) {
console.log(_0x1835c1);
}
}
async ["anniversary2024_queryAccountStatus_card"](_0xb1b26a = {}) {
try {
let _0x5c1482 = {
"fn": "anniversary2024_queryAccountStatus_card",
"method": "post",
"url": "https://mcs-mimp-web.sf-express.com/mcs-mimp/commonPost/~memberNonactivity~anniversary2024CardService~queryAccountStatus",
"headers": {
...this.getSign()
},
"json": {}
},
{
result: _0x5803c5
} = await this.request(_0x5c1482);
if (_0x5803c5?.["success"]) {
let _0x1b2171 = _0x5803c5?.["obj"]?.["accountCurrencyList"] || [];
_0x1b2171 = _0x1b2171.filter(_0xd37b01 => _0xd37b01.currency != "UNBOX_CHANCE");
if (_0x1b2171?.["length"]) {
this.cards = _0x1b2171.sort((_0x506792, _0x2e80f2) => {
return _0x2e80f2.balance - _0x506792.balance;
});
let _0x48d237 = [];
for (let _0x5198e3 of this.cards) {
_0x48d237.push("[" + _0x5198e3.currency + "]X" + _0x5198e3.balance);
}
const _0xce49b5 = {
"notify": true
};
this.log("拼图: " + _0x48d237.join(", "), _0xce49b5);
while (this.cards.filter(_0x560ab5 => _0x560ab5.balance > 0).length >= 3 && !this.anniversary_black) {
await this.anniversary2024_collectDrawAward();
}
} else {
const _0x352d32 = {
"notify": true
};
this.log("还没有收集到拼图", _0x352d32);
}
} else {
this.log("查询已收集拼图失败: " + (_0x5803c5?.["errorMessage"] || (_0x5803c5 ? JSON.stringify(_0x5803c5) : "无返回")));
}
} catch (_0x1982fa) {
console.log(_0x1982fa);
}
}
async ["anniversary2024_collectDrawAward"](_0x5e9a06 = {}) {
try {
this.cards = this.cards.sort((_0x65c525, _0x4489c8) => {
return _0x4489c8.balance - _0x65c525.balance;
});
let _0x6d2444 = this.cards.filter(_0x50d066 => _0x50d066.balance > 0).map(_0x30a0dd => _0x30a0dd.currency);
if (_0x6d2444.length == 9) {
_0x6d2444 = _0x6d2444.slice(0, 9);
} else _0x6d2444.length >= 7 ? _0x6d2444 = _0x6d2444.slice(0, 7) : _0x6d2444.length >= 5 ? _0x6d2444 = _0x6d2444.slice(0, 5) : _0x6d2444.length >= 3 && (_0x6d2444 = _0x6d2444.slice(0, 3));
const _0x2227db = {
"accountList": _0x6d2444
};
let _0x4e6f71 = {
"fn": "anniversary2024_collectDrawAward",
"method": "post",
"url": "https://mcs-mimp-web.sf-express.com/mcs-mimp/commonPost/~memberNonactivity~anniversary2024CardService~collectDrawAward",
"headers": {
...this.getSign()
},
"json": _0x2227db
},
{
result: _0x3c4b34
} = await this.request(_0x4e6f71);
if (_0x3c4b34?.["success"]) {
let {
productName: _0x78321b
} = _0x3c4b34?.["obj"];
const _0x176341 = {
"notify": true
};
this.log("使用" + _0x6d2444.length + "种卡合成: " + _0x78321b, _0x176341);
for (let _0x5f38b2 of this.cards) {
_0x6d2444.includes(_0x5f38b2.currency) && (_0x5f38b2.balance -= 1);
}
} else {
let _0xb98474 = _0x3c4b34?.["errorMessage"] || (_0x3c4b34 ? JSON.stringify(_0x3c4b34) : "无返回");
this.log("使用" + _0x6d2444.length + "种年卡合成失败: " + _0xb98474);
_0xb98474?.["includes"]("系统繁忙") && (this.anniversary_black = true);
}
} catch (_0x40d48a) {
console.log(_0x40d48a);
}
}
async ["dragonBoat2024_weeklyGiftStatus"](_0x2dd462 = {}) {
try {
let _0x36db5a = {
"fn": "dragonBoat2024_weeklyGiftStatus",
"method": "post",
"url": "https://mcs-mimp-web.sf-express.com/mcs-mimp/commonPost/~memberNonactivity~dragonBoat2024IndexService~weeklyGiftStatus",
"headers": {
...this.getSign()
},
"json": {}
},
{
result: _0x4b6208
} = await this.request(_0x36db5a);
if (_0x4b6208?.["success"]) {
let _0x27154a = _0x4b6208?.["obj"] || [];
for (let _0x33e265 of _0x27154a) {
if (!_0x33e265.received) {
let _0x216d50 = new Date(_0x33e265.receiveStartTime),
_0x513724 = new Date(_0x33e265.receiveEndTime),
_0x2497f4 = Date.now();
_0x2497f4 >= _0x216d50.getTime() && _0x2497f4 <= _0x513724.getTime() && (await this.dragonBoat2024_receiveWeeklyGift());
}
}
} else {
let _0x55c72e = _0x4b6208?.["errorMessage"] || (_0x4b6208 ? JSON.stringify(_0x4b6208) : "无返回");
this.log("端午查询每周领券失败: " + _0x55c72e);
(_0x55c72e?.["includes"]("系统繁忙") || _0x55c72e?.["includes"]("用户手机号校验未通过")) && (this.dragonBoat_black = true);
}
} catch (_0x4688a9) {
console.log(_0x4688a9);
}
}
async ["dragonBoat2024_receiveWeeklyGift"](_0x432d34 = {}) {
try {
let _0x3fbead = _0x1366a8.randomList(_0x11aa2a.filter(_0x1554de => _0x1554de != this.userId));
const _0x42d61a = {
"inviteUserId": _0x3fbead,
"moduleType": "welfare_card"
};
let _0x4cf967 = {
"fn": "dragonBoat2024_receiveWeeklyGift",
"method": "post",
"url": "https://mcs-mimp-web.sf-express.com/mcs-mimp/commonPost/~memberNonactivity~dragonBoat2024IndexService~receiveWeeklyGift",
"headers": {
...this.getSign()
},
"json": _0x42d61a
},
{
result: _0x2261cf
} = await this.request(_0x4cf967);
if (_0x2261cf?.["success"]) {
let _0x4bad46 = _0x2261cf?.["obj"]?.["map"](_0x585b16 => _0x585b16.productName);
this.log("端午每周领券: " + _0x4bad46.join(", "));
} else {
let _0x153834 = _0x2261cf?.["errorMessage"] || (_0x2261cf ? JSON.stringify(_0x2261cf) : "无返回");
this.log("端午每周领券失败: " + _0x153834);
(_0x153834?.["includes"]("系统繁忙") || _0x153834?.["includes"]("用户手机号校验未通过")) && (this.dragonBoat_black = true);
}
} catch (_0x4359ca) {
console.log(_0x4359ca);
}
}
async ["dragonBoat2024_taskList"](_0x137059 = {}) {
try {
let _0x5df6b1 = {
"fn": "dragonBoat2024_taskList",
"method": "post",
"url": "https://mcs-mimp-web.sf-express.com/mcs-mimp/commonPost/~memberNonactivity~activityTaskService~taskList",
"headers": {
...this.getSign()
},
"json": {
"activityCode": _0x49a488,
"channelType": "MINI_PROGRAM"
}
},
{
result: _0x4a2cae
} = await this.request(_0x5df6b1);
if (_0x4a2cae?.["success"]) {
let _0x369f72 = _0x4a2cae?.["obj"] || [];
for (let _0x12c161 of _0x369f72.filter(_0x280d85 => _0x280d85.status == 1)) {
if (this.dragonBoat_black) return;
for (let _0x1c5348 = 0; _0x1c5348 < _0x12c161.canReceiveTokenNum; _0x1c5348++) {
await this.dragonBoat2024_fetchMixTaskReward(_0x12c161);
}
}
for (let _0x453a00 of _0x369f72.filter(_0x3c0dd5 => _0x3c0dd5.status == 2)) {
if (this.dragonBoat_black) {
return;
}
switch (_0x453a00.taskType) {
case "PLAY_ACTIVITY_GAME":
case "FIRST_CHARGE_NEW_EXPRESS_CARD":
case "SEND_SUCCESS_RECALL":
case "OPEN_SVIP":
case "CHARGE_NEW_EXPRESS_CARD":
case "INTEGRAL_EXCHANGE":
{
break;
}
default:
{
for (let _0x2fc2df = 0; _0x2fc2df < _0x453a00.restFinishTime && !this.dragonBoat_black; _0x2fc2df++) {
await this.dragonBoat2024_finishTask(_0x453a00);
}
break;
}
}
}
} else this.log("端午查询任务失败: " + (_0x4a2cae?.["errorMessage"] || (_0x4a2cae ? JSON.stringify(_0x4a2cae) : "无返回")));
} catch (_0x478fca) {
console.log(_0x478fca);
}
}
async ["dragonBoat2024_finishTask"](_0x28e51e, _0x53729c = {}) {
try {
const _0xc80577 = {
"taskCode": _0x28e51e.taskCode
};
let _0x5416e9 = {
"fn": "dragonBoat2024_finishTask",
"method": "post",
"url": "https://mcs-mimp-web.sf-express.com/mcs-mimp/commonPost/~memberEs~taskRecord~finishTask",
"headers": {
...this.getSign()
},
"json": _0xc80577
},
{
result: _0x51b28e
} = await this.request(_0x5416e9);
_0x51b28e?.["success"] ? (this.log("端午完成任务[" + _0x28e51e.taskName + "]成功"), await this.dragonBoat2024_fetchMixTaskReward(_0x28e51e)) : this.log("端午完成任务[" + _0x28e51e.taskName + "]失败: " + (_0x51b28e?.["errorMessage"] || (_0x51b28e ? JSON.stringify(_0x51b28e) : "无返回")));
} catch (_0x12fd0e) {
console.log(_0x12fd0e);
}
}
["dragonBoat2024_parse_item"](_0x53522a) {
let _0x44549a = [];
for (let _0x2a4e0b of _0x53522a) {
let _0x1a089b = _0x2a4e0b.currency,
_0x5416a5 = _0x2500ab[_0x1a089b] || "[" + _0x1a089b + "]",
_0x2241df = _0x2a4e0b.balance || _0x2a4e0b.amount || 0;
const _0x55c7c5 = {
"currency": _0x1a089b,
"type": _0x5416a5,
"amount": _0x2241df
};
_0x44549a.push(_0x55c7c5);
}
return _0x44549a;
}
async ["dragonBoat2024_fetchMixTaskReward"](_0x1c2a68, _0x2dc011 = {}) {
try {
let _0x41a09a = {
"fn": "dragonBoat2024_fetchMixTaskReward",
"method": "post",
"url": "https://mcs-mimp-web.sf-express.com/mcs-mimp/commonPost/~memberNonactivity~dragonBoat2024TaskService~fetchTasksReward",
"headers": {
...this.getSign()
},
"json": {}
},
{
result: _0x40f4bd
} = await this.request(_0x41a09a);
if (_0x40f4bd?.["success"]) {
let _0x44ead6 = this.dragonBoat2024_parse_item(_0x40f4bd?.["obj"]?.["receivedAccountList"] || []);
_0x44ead6 = _0x44ead6.map(_0x20dd2d => _0x20dd2d.type + "x" + _0x20dd2d.amount);
this.log("端午领取任务[" + _0x1c2a68.taskName + "]奖励: " + _0x44ead6.join(", "));
} else {
let _0x2b15ae = _0x40f4bd?.["errorMessage"] || (_0x40f4bd ? JSON.stringify(_0x40f4bd) : "无返回");
this.log("端午领取任务[" + _0x1c2a68.taskName + "]奖励失败: " + _0x2b15ae);
_0x2b15ae?.["includes"]("用户手机号校验未通过") && (this.dragonBoat_black = true);
}
} catch (_0x131822) {
console.log(_0x131822);
}
}
async ["dragonBoat2024_game_indexInfo"](_0x49a515 = {}) {
try {
let _0x1e2301 = {
"fn": "dragonBoat2024_game_indexInfo",
"method": "post",
"url": "https://mcs-mimp-web.sf-express.com/mcs-mimp/commonPost/~memberNonactivity~dragonBoat2024GameService~indexInfo",
"headers": {
...this.getSign()
},
"json": {}
},
{
result: _0x47f65f
} = await this.request(_0x1e2301);
if (_0x47f65f?.["success"]) {
let _0x53ecf8 = _0x47f65f?.["obj"]?.["ifPassAllLevel"];
await this.dragonBoat2024_game_init(_0x53ecf8);
} else {
let _0x42af49 = _0x47f65f?.["errorMessage"] || (_0x47f65f ? JSON.stringify(_0x47f65f) : "无返回");
this.log("端午查询游戏状态失败: " + _0x42af49);
_0x42af49?.["includes"]("用户手机号校验未通过") && (this.dragonBoat_black = true);
}
} catch (_0x56b169) {
console.log(_0x56b169);
}
}
async ["dragonBoat2024_game_init"](_0x1f91f1, _0xe3ef77 = {}) {
try {
let _0x396027 = {
"fn": "dragonBoat2024_game_init",
"method": "post",
"url": "https://mcs-mimp-web.sf-express.com/mcs-mimp/commonPost/~memberNonactivity~dragonBoat2024GameService~init",
"headers": {
...this.getSign()
},
"json": {}
},
{
result: _0x5e414c
} = await this.request(_0x396027);
if (_0x5e414c?.["success"]) {
let {
gotPushTimeOfToday: _0x50e92f,
currentIndex: _0x20e417
} = _0x5e414c?.["obj"],
_0x46d8c6 = 0;
!_0x1f91f1 ? _0x46d8c6 = 30 : _0x50e92f < 3 && (_0x46d8c6 = 3 * (3 - _0x50e92f));
if (_0x46d8c6 > 0) {
this.log("端午划龙舟, 目标: " + _0x46d8c6 + "");
let _0x430a17 = Math.min(_0x46d8c6 + _0x20e417, 30);
for (let _0x373735 = _0x20e417; _0x373735 <= _0x430a17; _0x373735++) {
let _0x10c824 = Math.floor(Math.random() * 2000) + 2000;
await _0x1366a8.wait(_0x10c824);
if (!(await this.dragonBoat2024_boat_win(_0x373735))) {
break;
}
}
}
} else {
let _0x39abea = _0x5e414c?.["errorMessage"] || (_0x5e414c ? JSON.stringify(_0x5e414c) : "无返回");
this.log("端午查询游戏状态失败: " + _0x39abea);
_0x39abea?.["includes"]("用户手机号校验未通过") && (this.dragonBoat_black = true);
}
} catch (_0x11297f) {
console.log(_0x11297f);
}
}
async ["dragonBoat2024_boat_win"](_0x45513e = 1, _0x213bac = {}) {
let _0x37dc0a = true;
try {
const _0x55bd30 = {
"levelIndex": _0x45513e
};
let _0x8f3c47 = {
"fn": "dragonBoat2024_boat_win",
"method": "post",
"url": "https://mcs-mimp-web.sf-express.com/mcs-mimp/commonPost/~memberNonactivity~dragonBoat2024GameService~win",
"headers": {
...this.getSign()
},
"json": _0x55bd30
},
{
result: _0xa1eed4
} = await this.request(_0x8f3c47);
if (_0xa1eed4?.["success"]) {
let _0x345639 = this.dragonBoat2024_parse_item(_0xa1eed4?.["obj"]?.["currentAwardList"] || []);
_0x345639 = _0x345639.map(_0x34ce59 => _0x34ce59.type + "x" + _0x34ce59.amount);
_0x345639.length ? this.log("端午划龙舟第" + _0x45513e + "关通关成功: " + _0x345639.join(", ")) : this.log("端午划龙舟第" + _0x45513e + "关通关成功");
} else {
let _0x4914a2 = _0xa1eed4?.["errorMessage"] || (_0xa1eed4 ? JSON.stringify(_0xa1eed4) : "无返回");
this.log("端午划龙舟第" + _0x45513e + "关失败: " + _0x4914a2);
_0x4914a2?.["includes"]("系统繁忙") && (_0x37dc0a = false);
}
} catch (_0x4d1c03) {
console.log(_0x4d1c03);
} finally {
return _0x37dc0a;
}
}
async ["dragonBoat2024_coinStatus"](_0x30a227 = {}) {
try {
let _0x281dcc = {
"fn": "dragonBoat2024_coinStatus",
"method": "post",
"url": "https://mcs-mimp-web.sf-express.com/mcs-mimp/commonPost/~memberNonactivity~dragonBoat2024CoinService~coinStatus",
"headers": {
...this.getSign()
},
"json": {}
};
{
let {
result: _0xe87587
} = await this.request(_0x281dcc);
if (_0xe87587?.["success"]) {
let _0x235561 = _0xe87587?.["obj"]?.["accountCurrencyList"] || [],
_0x256c50 = _0x235561.filter(_0x7f9215 => _0x7f9215.currency == "PUSH_TIMES"),
_0xe61a60 = _0x256c50?.[0]?.["balance"] || 0;
this.log("端午可以推" + _0xe61a60 + "次金币");
while (_0xe61a60-- > 0) {
await this.dragonBoat2024_pushCoin();
}
} else this.log("端午查询推金币状态失败: " + (_0xe87587?.["errorMessage"] || (_0xe87587 ? JSON.stringify(_0xe87587) : "无返回")));
}
{
let {
result: _0x4d782e
} = await this.request(_0x281dcc);
if (_0x4d782e?.["success"]) {
let {
accountCurrencyList = [],
pushedTimesToday: _0x48f9bb,
pushedTimesTotal: _0x49ed52
} = _0x4d782e?.["obj"],
_0x462b51 = this.dragonBoat2024_parse_item(accountCurrencyList),
_0xf9c4a5 = _0x462b51.filter(_0x6998f0 => _0x6998f0.currency == "COIN"),
_0x39e60d = _0x462b51.filter(_0x43002a => _0x43002a.currency == "RICH_CARD_GAME");
this.coin = _0xf9c4a5?.[0]?.["amount"] || 0;
this.rich_card = _0x39e60d?.[0]?.["amount"] || 0;
const _0x267f50 = {
"notify": true
};
this.log("端午金币: " + this.coin + ", 发财卡: " + this.rich_card, _0x267f50);
let _0x51ff5c = Math.floor(this.coin / 230),
_0x4c3a7f = Math.min(_0x51ff5c, this.rich_card);
this.log("端午可以抽发财卡池" + _0x4c3a7f + "");
while (_0x4c3a7f-- > 0) {
await this.dragonBoat2024_prizeDraw(4);
}
} else this.log("端午查询金币失败: " + (_0x4d782e?.["errorMessage"] || (_0x4d782e ? JSON.stringify(_0x4d782e) : "无返回")));
}
} catch (_0x5bbeb3) {
console.log(_0x5bbeb3);
}
}
async ["dragonBoat2024_givePushTimes"](_0x196c51 = {}) {
let _0x383b34 = true;
try {
let _0x17ce78 = {
"fn": "dragonBoat2024_givePushTimes",
"method": "post",
"url": "https://mcs-mimp-web.sf-express.com/mcs-mimp/commonPost/~memberNonactivity~dragonBoat2024CoinService~givePushTimes",
"headers": {
...this.getSign()
},
"json": {}
};
await this.request(_0x17ce78);
} catch (_0x1531c1) {
console.log(_0x1531c1);
} finally {
return _0x383b34;
}
}
async ["dragonBoat2024_pushCoin"](_0x102c43 = {}) {
try {
const _0x10d7f0 = {
"plateToken": null
};
let _0x5c303f = {
"fn": "dragonBoat2024_pushCoin",
"method": "post",
"url": "https://mcs-mimp-web.sf-express.com/mcs-mimp/commonPost/~memberNonactivity~dragonBoat2024CoinService~pushCoin",
"headers": {
...this.getSign()
},
"json": _0x10d7f0
},
{
result: _0x2dc466
} = await this.request(_0x5c303f);
if (_0x2dc466?.["success"]) {
let _0x4b150a = this.dragonBoat2024_parse_item(_0x2dc466?.["obj"]?.["receivedAccountList"] || []);
_0x4b150a = _0x4b150a.map(_0x23e9e4 => _0x23e9e4.type + "x" + _0x23e9e4.amount);
_0x4b150a.length ? this.log("端午推金币成功: " + _0x4b150a.join(", ")) : this.log("端午推金币成功, 没有获得奖品");
} else {
this.log("端午推金币失败: " + (_0x2dc466?.["errorMessage"] || (_0x2dc466 ? JSON.stringify(_0x2dc466) : "无返回")));
}
} catch (_0x180993) {
console.log(_0x180993);
}
}
async ["dragonBoat2024_coinStatus_checkDraw"](_0x31c630 = {}) {
try {
let _0x32f4bf = {
"fn": "dragonBoat2024_coinStatus",
"method": "post",
"url": "https://mcs-mimp-web.sf-express.com/mcs-mimp/commonPost/~memberNonactivity~dragonBoat2024CoinService~coinStatus",
"headers": {
...this.getSign()
},
"json": {}
},
{
result: _0x2fa08f
} = await this.request(_0x32f4bf);
if (_0x2fa08f?.["success"]) {
let {
accountCurrencyList = [],
pushedTimesToday: _0x45450d,
pushedTimesTotal: _0x3c2437
} = _0x2fa08f?.["obj"],
_0x13729f = this.dragonBoat2024_parse_item(accountCurrencyList),
_0x1eb5d9 = _0x13729f.filter(_0x895a95 => _0x895a95.currency == "COIN"),
_0x143eab = _0x13729f.filter(_0x2c25d3 => _0x2c25d3.currency == "RICH_CARD_GAME");
this.coin = _0x1eb5d9?.[0]?.["amount"] || 0;
this.rich_card = _0x143eab?.[0]?.["amount"] || 0;
const _0x1b89f2 = {
"notify": true
};
this.log("端午金币: " + this.coin + ", 发财卡: " + this.rich_card, _0x1b89f2);
let _0x507aae = Math.floor(this.coin / 230),
_0x1b83cc = Math.min(_0x507aae, this.rich_card);
this.log("端午可以抽发财卡池" + _0x1b83cc + "");
while (_0x1b83cc-- > 0) {
if (await this.dragonBoat2024_prizeDraw(4)) this.coin -= 230;else break;
}
const _0x229c66 = {
"idx": 3,
"coin": 200
},
_0x29d69a = {
"idx": 2,
"coin": 150
},
_0x1acad4 = {
"idx": 1,
"coin": 30
},
_0x5e5dfb = [_0x229c66, _0x29d69a, _0x1acad4];
for (let _0x5b6a47 of _0x5e5dfb) {
while (this.coin >= _0x5b6a47.coin) {
if (await this.dragonBoat2024_prizeDraw(_0x5b6a47.idx)) this.coin -= _0x5b6a47.coin;else break;
}
}
} else this.log("端午查询金币失败: " + (_0x2fa08f?.["errorMessage"] || (_0x2fa08f ? JSON.stringify(_0x2fa08f) : "无返回")));
} catch (_0x48d176) {
console.log(_0x48d176);
}
}
async ["dragonBoat2024_prizeDraw"](_0xd6eba2, _0x4dd433 = {}) {
let _0x98f1e0 = false;
try {
const _0x282eab = {
"drawType": _0xd6eba2
};
let _0x5d1e10 = {
"fn": "dragonBoat2024_prizeDraw",
"method": "post",
"url": "https://mcs-mimp-web.sf-express.com/mcs-mimp/commonPost/~memberNonactivity~dragonBoat2024LotteryService~prizeDraw",
"headers": {
...this.getSign()
},
"json": _0x282eab
},
{
result: _0x17bc52
} = await this.request(_0x5d1e10);
if (_0x17bc52?.["success"]) {
_0x98f1e0 = true;
let {
giftBagName = "",
giftBagDesc = ""
} = _0x17bc52?.["obj"];
const _0x5579ee = {
"notify": true
};
this.log("端午奖池[" + _0xd6eba2 + "]抽奖: [" + giftBagName + "]" + giftBagDesc, _0x5579ee);
} else this.log("端午奖池[" + _0xd6eba2 + "]抽奖失败: " + (_0x17bc52?.["errorMessage"] || (_0x17bc52 ? JSON.stringify(_0x17bc52) : "无返回")));
} catch (_0x5318ef) {
console.log(_0x5318ef);
} finally {
return _0x98f1e0;
}
}
async ["anniversary2024_task"](_0x5befa8 = {}) {
await this.anniversary2024_weeklyGiftStatus();
if (this.anniversary_black) {
return;
}
await this.anniversary2024_game_list();
await this.anniversary2024_taskList();
await this.anniversary2024_queryAccountStatus();
}
async ["anniversary2024_draw_task"](_0x575d0f = {}) {
let _0x9f73a7 = Date.now();
if (_0x9f73a7 < 1716516000000 || _0x9f73a7 > 1718812800000) return;
await this.dragonBoat2024_coinStatus_checkDraw();
}
async ["dragonBoat2024_task"](_0x3c8a0a = {}) {
let _0x2fdeff = Date.now();
if (_0x2fdeff < 1716516000000 || _0x2fdeff > 1718190000000) return;
await this.dragonBoat2024_weeklyGiftStatus();
if (this.dragonBoat_black) return;
await this.dragonBoat2024_game_indexInfo();
await this.dragonBoat2024_taskList();
await this.dragonBoat2024_givePushTimes();
await this.dragonBoat2024_coinStatus();
}
async ["dragonBoat2024_draw_task"](_0x406688 = {}) {
await this.anniversary2024_queryAccountStatus_card();
}
async ["memberDay_task"](_0x52e9f5 = {}) {
let _0x271af0 = new Date().getDate();
_0x271af0 >= 26 && _0x271af0 <= 28 && (await this.memberDay_index());
}
async ["userTask"](_0x49ac8c = {}) {
_0x1366a8.log("\n-------------- 账号[" + this.index + "] --------------");
if (!(await this.refresh_cookie())) return;
await this.superWelfare_receiveRedPacket();
await this.automaticSignFetchPackage();
_0x94f81d == "true" && (await this.bee_indexData());
await this.memberDay_task();
_0x3bec27 == "true" && (await this.anniversary2024_draw_task());
await this.coupon_list();
}
}
!(async () => {
_0x1366a8.read_env(_0x520715);
let _0x1745cb = _0x94f81d == "true" ? "运行" : "不运行";
_0x1366a8.log("");
const _0xb7b968 = {
"notify": true
};
_0x1366a8.log("采蜜游戏目前设置为: " + _0x1745cb, _0xb7b968);
_0x1366a8.log("");
for (let _0x4358e1 of _0x1366a8.userList) {
await _0x4358e1.userTask();
}
})().catch(_0x1c2990 => _0x1366a8.log(_0x1c2990)).finally(() => _0x1366a8.exitNow());
async function _0x1325bb(_0x3bdc56 = 0) {
let _0xcf255d = false;
try {
const _0x560fbc = {
"fn": "auth",
"method": "get",
"url": _0x1e5430,
"timeout": 20000
};
let {
statusCode: _0x4ab8d3,
result: _0x3d050e
} = await _0xd9af8d.request(_0x560fbc);
if (_0x4ab8d3 != 200) return _0x3bdc56++ < _0x4da51e && (_0xcf255d = await _0x1325bb(_0x3bdc56)), _0xcf255d;
if (_0x3d050e?.["code"] == 0) {
_0x3d050e = JSON.parse(_0x3d050e.data.file.data);
if (_0x3d050e?.["commonNotify"] && _0x3d050e.commonNotify.length > 0) {
const _0x3656a3 = {
"notify": true
};
_0x1366a8.log(_0x3d050e.commonNotify.join("\n") + "\n", _0x3656a3);
}
_0x3d050e?.["commonMsg"] && _0x3d050e.commonMsg.length > 0 && _0x1366a8.log(_0x3d050e.commonMsg.join("\n") + "\n");
if (_0x3d050e[_0x16c88c]) {
let _0x582ec8 = _0x3d050e[_0x16c88c];
_0x582ec8.status == 0 ? _0x30f72a >= _0x582ec8.version ? (_0xcf255d = true, _0x1366a8.log(_0x582ec8.msg[_0x582ec8.status]), _0x1366a8.log(_0x582ec8.updateMsg), _0x1366a8.log("现在运行的脚本版本是:" + _0x30f72a + ",最新脚本版本:" + _0x582ec8.latestVersion)) : _0x1366a8.log(_0x582ec8.versionMsg) : _0x1366a8.log(_0x582ec8.msg[_0x582ec8.status]);
} else {
_0x1366a8.log(_0x3d050e.errorMsg);
}
} else _0x3bdc56++ < _0x4da51e && (_0xcf255d = await _0x1325bb(_0x3bdc56));
} catch (_0x500f90) {
_0x1366a8.log(_0x500f90);
} finally {
return _0xcf255d;
}
}
async function _0x1a0bdc() {
let _0xdb5781 = false;
try {
const _0xdee30d = {
"fn": "auth",
"method": "get",
"url": _0x5c6146
};
let {
statusCode: _0x554a2e,
result: _0x477848
} = await _0xd9af8d.request(_0xdee30d);
if (_0x554a2e != 200) return Promise.resolve();
_0x477848?.["code"] == 0 && (_0x477848 = JSON.parse(_0x477848.data.file.data), _0x11aa2a = _0x477848?.["inviteUserId"] || _0x11aa2a, _0x479306 = _0x477848?.["anniversary_2024"] || _0x479306);
} catch (_0x151f11) {
_0x1366a8.log(_0x151f11);
} finally {
return _0xdb5781;
}
}
function _0x1c156a(_0x357cd2) {
return new class {
constructor(_0x114c1e) {
this.name = _0x114c1e;
this.startTime = Date.now();
const _0x476b1f = {
"time": true
};
this.log("[" + this.name + "]开始运行\n", _0x476b1f);
this.notifyStr = [];
this.notifyFlag = true;
this.userIdx = 0;
this.userList = [];
this.userCount = 0;
this.default_timestamp_len = 13;
this.default_wait_interval = 1000;
this.default_wait_limit = 3600000;
this.default_wait_ahead = 0;
}
["log"](_0x3b09e1, _0x3f08e8 = {}) {
const _0x405f41 = {
"console": true
};
Object.assign(_0x405f41, _0x3f08e8);
if (_0x405f41.time) {
let _0x4c9a19 = _0x405f41.fmt || "hh:mm:ss";
_0x3b09e1 = "[" + this.time(_0x4c9a19) + "]" + _0x3b09e1;
}
if (_0x405f41.notify) {
this.notifyStr.push(_0x3b09e1);
}
_0x405f41.console && console.log(_0x3b09e1);
}
["get"](_0x54c0c4, _0x17f9a4, _0x2232ba = "") {
let _0x47847f = _0x2232ba;
return _0x54c0c4?.["hasOwnProperty"](_0x17f9a4) && (_0x47847f = _0x54c0c4[_0x17f9a4]), _0x47847f;
}
["pop"](_0x4a6709, _0x15caee, _0x7c3eb4 = "") {
let _0x182625 = _0x7c3eb4;
return _0x4a6709?.["hasOwnProperty"](_0x15caee) && (_0x182625 = _0x4a6709[_0x15caee], delete _0x4a6709[_0x15caee]), _0x182625;
}
["copy"](_0xbbc284) {
return Object.assign({}, _0xbbc284);
}
["read_env"](_0x12bc08) {
let _0xa9c361 = _0x12e0b9.map(_0x324fc9 => process.env[_0x324fc9]);
for (let _0x3993a1 of _0xa9c361.filter(_0x5cc36c => !!_0x5cc36c)) {
for (let _0x44bd7c of _0x3993a1.split(_0x371509).filter(_0x1b44af => !!_0x1b44af)) {
// _0x44bd7c = decodeURIComponent(_0x44bd7c);
console.log(_0x44bd7c)
if (this.userList.includes(_0x44bd7c)) {
continue;
}
this.userList.push(new _0x12bc08(_0x44bd7c));
}
}
// console.log(this.userList)
this.userCount = this.userList.length;
if (!this.userCount) {
const _0x2ce365 = {
"notify": true
};
return this.log("未找到变量,请检查变量" + _0x12e0b9.map(_0x128e8f => "[" + _0x128e8f + "]").join(""), _0x2ce365), false;
}
return this.log("共找到" + this.userCount + "个账号"), true;
}
async ["threads"](_0x53f6d5, _0x34aa88, _0x54a86f = {}) {
while (_0x34aa88.idx < _0x1366a8.userList.length) {
let _0x45f046 = _0x1366a8.userList[_0x34aa88.idx++];
if (!_0x45f046.valid) continue;
await _0x45f046[_0x53f6d5](_0x54a86f);
}
}
async ["threadTask"](_0x556d00, _0xd23183) {
let _0x75ce52 = [];
const _0x3637f2 = {
"idx": 0
};
while (_0xd23183--) {
_0x75ce52.push(this.threads(_0x556d00, _0x3637f2));
}
await Promise.all(_0x75ce52);
}
["time"](_0x17dfd6, _0xb3997a = null) {
let _0x384c8d = _0xb3997a ? new Date(_0xb3997a) : new Date(),
_0x1f65dc = {
"M+": _0x384c8d.getMonth() + 1,
"d+": _0x384c8d.getDate(),
"h+": _0x384c8d.getHours(),
"m+": _0x384c8d.getMinutes(),
"s+": _0x384c8d.getSeconds(),
"q+": Math.floor((_0x384c8d.getMonth() + 3) / 3),
"S": this.padStr(_0x384c8d.getMilliseconds(), 3)
};
/(y+)/.test(_0x17dfd6) && (_0x17dfd6 = _0x17dfd6.replace(RegExp.$1, (_0x384c8d.getFullYear() + "").substr(4 - RegExp.$1.length)));
for (let _0x21ce25 in _0x1f65dc) new RegExp("(" + _0x21ce25 + ")").test(_0x17dfd6) && (_0x17dfd6 = _0x17dfd6.replace(RegExp.$1, 1 == RegExp.$1.length ? _0x1f65dc[_0x21ce25] : ("00" + _0x1f65dc[_0x21ce25]).substr(("" + _0x1f65dc[_0x21ce25]).length)));
return _0x17dfd6;
}
async ["showmsg"]() {
if (!this.notifyFlag) return;
if (!this.notifyStr.length) return;
var _0x2da0ed = require("./sendNotify");
this.log("\n============== 推送 ==============");
await _0x2da0ed.sendNotify(this.name, this.notifyStr.join("\n"));
}
["padStr"](_0x295722, _0x27131d, _0x1ee6ab = {}) {
let _0xfe75f7 = _0x1ee6ab.padding || "0",
_0x1781cf = _0x1ee6ab.mode || "l",
_0xbf4244 = String(_0x295722),
_0x32c7cc = _0x27131d > _0xbf4244.length ? _0x27131d - _0xbf4244.length : 0,
_0x52a56d = "";
for (let _0x6a49b7 = 0; _0x6a49b7 < _0x32c7cc; _0x6a49b7++) {
_0x52a56d += _0xfe75f7;
}
return _0x1781cf == "r" ? _0xbf4244 = _0xbf4244 + _0x52a56d : _0xbf4244 = _0x52a56d + _0xbf4244, _0xbf4244;
}
["json2str"](_0x159c14, _0x499f70, _0x15d7d9 = false) {
let _0x356008 = [];
for (let _0x3e1838 of Object.keys(_0x159c14).sort()) {
let _0x3d5a73 = _0x159c14[_0x3e1838];
_0x3d5a73 && _0x15d7d9 && (_0x3d5a73 = encodeURIComponent(_0x3d5a73));
_0x356008.push(_0x3e1838 + "=" + _0x3d5a73);
}
return _0x356008.join(_0x499f70);
}
["str2json"](_0xd47e5b, _0x57d1f5 = false) {
let _0xedcd5d = {};
for (let _0x9f7e0f of _0xd47e5b.split("&")) {
if (!_0x9f7e0f) continue;
let _0x398136 = _0x9f7e0f.indexOf("=");
if (_0x398136 == -1) continue;
let _0x7342a3 = _0x9f7e0f.substr(0, _0x398136),
_0x578766 = _0x9f7e0f.substr(_0x398136 + 1);
_0x57d1f5 && (_0x578766 = decodeURIComponent(_0x578766));
_0xedcd5d[_0x7342a3] = _0x578766;
}
return _0xedcd5d;
}
["randomPattern"](_0x881973, _0x5522fc = "abcdef0123456789") {
let _0x21f14a = "";
for (let _0x19ef68 of _0x881973) {
_0x19ef68 == "x" ? _0x21f14a += _0x5522fc.charAt(Math.floor(Math.random() * _0x5522fc.length)) : _0x19ef68 == "X" ? _0x21f14a += _0x5522fc.charAt(Math.floor(Math.random() * _0x5522fc.length)).toUpperCase() : _0x21f14a += _0x19ef68;
}
return _0x21f14a;
}
["randomUuid"]() {
return this.randomPattern("xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx");
}
["randomString"](_0x851138, _0x1be7dc = "abcdef0123456789") {
let _0x39715c = "";
for (let _0x4da2da = 0; _0x4da2da < _0x851138; _0x4da2da++) {
_0x39715c += _0x1be7dc.charAt(Math.floor(Math.random() * _0x1be7dc.length));
}
return _0x39715c;
}
["randomList"](_0x5bfa84) {
if (!_0x5bfa84.length) {
return null;
}
let _0x462213 = Math.floor(Math.random() * _0x5bfa84.length);
return _0x5bfa84[_0x462213];
}
["wait"](_0x216502) {
return new Promise(_0xadcdd1 => setTimeout(_0xadcdd1, 1500));
}
async ["exitNow"]() {
await this.showmsg();
let _0x512780 = Date.now(),
_0x232100 = (_0x512780 - this.startTime) / 1000;
this.log("");
const _0x55d14d = {
"time": true
};
this.log("[" + this.name + "]运行结束,共运行了" + _0x232100 + "", _0x55d14d);
console.log("=>=>=>=>____来自 By 幼稚园小妹妹 (顶级插件售后服务951584089)丨Autman订阅源:Lxg-021002丨期待为您服务<=<=<=<=");
console.log("=>=>=>=>____来自 By 幼稚园小妹妹 (顶级插件售后服务951584089)丨Autman订阅源:Lxg-021002丨期待为您服务<=<=<=<=");
console.log("=>=>=>=>____来自 By 幼稚园小妹妹 (顶级插件售后服务951584089)丨Autman订阅源:Lxg-021002丨期待为您服务<=<=<=<=");
console.log("=>=>=>=>____来自 By 幼稚园小妹妹 (顶级插件售后服务951584089)丨Autman订阅源:Lxg-021002丨期待为您服务<=<=<=<=");
console.log("=>=>=>=>____来自 By 幼稚园小妹妹 (顶级插件售后服务951584089)丨Autman订阅源:Lxg-021002丨期待为您服务<=<=<=<=");
console.log("=>=>=>=>____来自 By 幼稚园小妹妹 (顶级插件售后服务951584089)丨Autman订阅源:Lxg-021002丨期待为您服务<=<=<=<=");
console.log("=>=>=>=>____来自 By 幼稚园小妹妹 (顶级插件售后服务951584089)丨Autman订阅源:Lxg-021002丨期待为您服务<=<=<=<=");
console.log("=>=>=>=>____来自 By 幼稚园小妹妹 (顶级插件售后服务951584089)丨Autman订阅源:Lxg-021002丨期待为您服务<=<=<=<=");
console.log("=>=>=>=>____来自 By 幼稚园小妹妹 (顶级插件售后服务951584089)丨Autman订阅源:Lxg-021002丨期待为您服务<=<=<=<=");
console.log("=>=>=>=>____来自 By 幼稚园小妹妹 (顶级插件售后服务951584089)丨Autman订阅源:Lxg-021002丨期待为您服务<=<=<=<=");
process.exit(0);
}
["normalize_time"](_0x4a97c0, _0x325ebb = {}) {
let _0x32350f = _0x325ebb.len || this.default_timestamp_len;
_0x4a97c0 = _0x4a97c0.toString();
let _0x8331cd = _0x4a97c0.length;
while (_0x8331cd < _0x32350f) {
_0x4a97c0 += "0";
}
return _0x8331cd > _0x32350f && (_0x4a97c0 = _0x4a97c0.slice(0, 13)), parseInt(_0x4a97c0);
}
async ["wait_until"](_0x18d04d, _0x1d2e1f = {}) {
let _0x1adc00 = _0x1d2e1f.logger || this,
_0x51a41e = _0x1d2e1f.interval || this.default_wait_interval,
_0x503ac4 = _0x1d2e1f.limit || this.default_wait_limit,
_0x19dfe7 = _0x1d2e1f.ahead || this.default_wait_ahead;
if (typeof _0x18d04d == "string" && _0x18d04d.includes(":")) {
if (_0x18d04d.includes("-")) {
_0x18d04d = new Date(_0x18d04d).getTime();
} else {
let _0xc15af5 = this.time("yyyy-MM-dd ");
_0x18d04d = new Date(_0xc15af5 + _0x18d04d).getTime();
}
}
let _0x365b4b = this.normalize_time(_0x18d04d) - _0x19dfe7,
_0x5f01b1 = this.time("hh:mm:ss.S", _0x365b4b),
_0x32e553 = Date.now();
_0x32e553 > _0x365b4b && (_0x365b4b += 86400000);
let _0xeda2b = _0x365b4b - _0x32e553;
if (_0xeda2b > _0x503ac4) {
const _0x217946 = {
"time": true
};
_0x1adc00.log("离目标时间[" + _0x5f01b1 + "]大于" + _0x503ac4 / 1000 + "秒,不等待", _0x217946);
} else {
const _0x24704e = {
"time": true
};
_0x1adc00.log("离目标时间[" + _0x5f01b1 + "]还有" + _0xeda2b / 1000 + "秒,开始等待", _0x24704e);
while (_0xeda2b > 0) {
let _0x37ffb7 = Math.min(_0xeda2b, _0x51a41e);
await this.wait(_0x37ffb7);
_0x32e553 = Date.now();
_0xeda2b = _0x365b4b - _0x32e553;
}
const _0x1c9bd2 = {
"time": true
};
_0x1adc00.log("已完成等待", _0x1c9bd2);
}
}
async ["wait_gap_interval"](_0x486d8d, _0x39a586) {
let _0x31cadf = Date.now() - _0x486d8d;
_0x31cadf < _0x39a586 && (await this.wait(_0x39a586 - _0x31cadf));
}
}(_0x357cd2);
}
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/mt1314/ql.git
git@gitee.com:mt1314/ql.git
mt1314
ql
ql
master

搜索帮助

0d507c66 1850385 C8b1a773 1850385