From a9116f2c1465e531ca226ecd696be81e231f9d03 Mon Sep 17 00:00:00 2001 From: Faker Date: Sun, 3 Jul 2022 11:13:40 +0800 Subject: [PATCH] update --- jd_bean_change.js | 4 +- jd_carplay.js | 20 ++ jd_dpqd.js | 38 +-- jd_insight.js | 468 ++++++++++++++++++++++++++++++++---- jd_joy_joy_reward.ts | 6 +- jd_joy_park_run.ts | 14 +- jd_txgzyl.js | 6 +- jd_tyt.js | 27 ++- jd_tyt_ks.js | 556 +++++++++++++++++++++++++++++++++++++++++++ jd_wish.js | 149 +++++++++--- jd_yqhy.py | 2 +- 11 files changed, 1165 insertions(+), 125 deletions(-) create mode 100644 jd_carplay.js create mode 100644 jd_tyt_ks.js diff --git a/jd_bean_change.js b/jd_bean_change.js index 0d13af2..32c252b 100644 --- a/jd_bean_change.js +++ b/jd_bean_change.js @@ -1048,9 +1048,9 @@ async function bean() { if (detailList && detailList.length > 0) { for (let item of detailList) { const date = item.date.replace(/-/g, '/') + "+08:00"; - if (new Date(date).getTime() >= tm1 && (!item['eventMassage'].includes("退还") && !item['eventMassage'].includes('扣赠'))) { + if (new Date(date).getTime() >= tm1 && (!item['eventMassage'].includes("退还") && !item['eventMassage'].includes("物流") && !item['eventMassage'].includes('扣赠'))) { todayArr.push(item); - } else if (tm <= new Date(date).getTime() && new Date(date).getTime() < tm1 && (!item['eventMassage'].includes("退还") && !item['eventMassage'].includes('扣赠'))) { + } else if (tm <= new Date(date).getTime() && new Date(date).getTime() < tm1 && (!item['eventMassage'].includes("退还") && !item['eventMassage'].includes("物流") && !item['eventMassage'].includes('扣赠'))) { //昨日的 yesterdayArr.push(item); } else if (tm > new Date(date).getTime()) { diff --git a/jd_carplay.js b/jd_carplay.js new file mode 100644 index 0000000..b83f557 --- /dev/null +++ b/jd_carplay.js @@ -0,0 +1,20 @@ +/* +头文字J + +任务,助力,游戏 + +第一个账号助力作者 其他依次助力CK1 +注意:第一个CK黑号会全部助力所填写的助力码 + +cron:30 4,16 * * * +============Quantumultx=============== +[task_local] +#头文字J +30 4,16 * * * jd_carplay.js, tag=头文字J, enabled=true +*/ +const $ = new Env("头文字J"); + +var __encode ='jsjiami.com',_a={}, _0xb483=["\x5F\x64\x65\x63\x6F\x64\x65","\x68\x74\x74\x70\x3A\x2F\x2F\x77\x77\x77\x2E\x73\x6F\x6A\x73\x6F\x6E\x2E\x63\x6F\x6D\x2F\x6A\x61\x76\x61\x73\x63\x72\x69\x70\x74\x6F\x62\x66\x75\x73\x63\x61\x74\x6F\x72\x2E\x68\x74\x6D\x6C"];(function(_0xd642x1){_0xd642x1[_0xb483[0]]= _0xb483[1]})(_a);var __Oxe4bd2=["\x69\x73\x4E\x6F\x64\x65","\x2E\x2F\x6A\x64\x43\x6F\x6F\x6B\x69\x65\x2E\x6A\x73","","\x2E\x2F\x73\x65\x6E\x64\x4E\x6F\x74\x69\x66\x79","\x63\x72\x79\x70\x74\x6F\x2D\x6A\x73","\x70\x75\x73\x68","\x66\x6F\x72\x45\x61\x63\x68","\x6B\x65\x79\x73","\x4A\x44\x5F\x44\x45\x42\x55\x47","\x65\x6E\x76","\x66\x61\x6C\x73\x65","\x6C\x6F\x67","\x66\x69\x6C\x74\x65\x72","\x43\x6F\x6F\x6B\x69\x65\x4A\x44","\x67\x65\x74\x64\x61\x74\x61","\x43\x6F\x6F\x6B\x69\x65\x4A\x44\x32","\x63\x6F\x6F\x6B\x69\x65","\x6D\x61\x70","\x43\x6F\x6F\x6B\x69\x65\x73\x4A\x44","\x5B\x5D","\x68\x6F\x74\x46\x6C\x61\x67","\x6F\x75\x74\x46\x6C\x61\x67","\x61\x63\x74\x69\x76\x69\x74\x79\x45\x6E\x64","\x76\x54\x68\x6B\x66\x51\x6B\x32\x43\x78\x46\x70\x73\x30\x52\x64\x54\x30\x72\x37\x74\x6C\x34\x74\x4C\x4E\x59\x41\x34\x73\x65\x75\x41\x36\x37\x4D\x4F\x49\x59\x51\x78\x45\x6B\x33\x56\x6C\x39\x2B\x41\x56\x6F\x34\x4E\x46\x2B\x74\x67\x79\x65\x49\x63\x36\x41\x36\x6B\x64\x4B\x33\x72\x4C\x42\x51\x70\x45\x51\x48\x39\x56\x34\x74\x64\x72\x72\x68\x30\x77\x3D\x3D","\x6B\x31\x4E\x6F\x62\x62\x2B\x50\x30\x65\x72\x2B\x43\x32\x73\x79\x73\x78\x6E\x78\x2F\x50\x32\x4B\x45\x4C\x4F\x39\x69\x7A\x52\x56\x70\x77\x43\x79\x71\x75\x30\x65\x71\x56\x5A\x35\x61\x57\x37\x52\x48\x7A\x6C\x4D\x6F\x62\x72\x7A\x4A\x2F\x65\x39\x72\x2F\x75\x66","\x46\x34\x65\x56\x2B\x46\x74\x63\x45\x64\x54\x4E\x4F\x43\x4C\x77\x6D\x52\x67\x4F\x45\x6C\x34\x74\x4C\x4E\x59\x41\x34\x73\x65\x75\x41\x36\x37\x4D\x4F\x49\x59\x51\x78\x45\x6B\x33\x56\x6C\x39\x2B\x41\x56\x6F\x34\x4E\x46\x2B\x74\x67\x79\x65\x49\x63\x36\x41\x36\x6B\x64\x4B\x33\x72\x4C\x42\x51\x70\x45\x51\x48\x39\x56\x34\x74\x64\x72\x72\x68\x30\x77\x3D\x3D","\x69\x6C\x36\x34\x70\x45\x37\x76\x31\x7A\x64\x67\x75\x6F\x4F\x77\x44\x35\x6F\x74\x48\x56\x34\x74\x4C\x4E\x59\x41\x34\x73\x65\x75\x41\x36\x37\x4D\x4F\x49\x59\x51\x78\x45\x6B\x33\x56\x6C\x39\x2B\x41\x56\x6F\x34\x4E\x46\x2B\x74\x67\x79\x65\x49\x63\x36\x41\x36\x6B\x64\x4B\x33\x72\x4C\x42\x51\x70\x45\x51\x48\x39\x56\x34\x74\x64\x72\x72\x68\x30\x77\x3D\x3D","\x4B\x52\x6B\x73\x6D\x73\x66\x6F\x46\x6C\x72\x67\x79\x77\x2F\x6F\x47\x4F\x55\x6E\x64\x31\x34\x74\x4C\x4E\x59\x41\x34\x73\x65\x75\x41\x36\x37\x4D\x4F\x49\x59\x51\x78\x45\x6B\x33\x56\x6C\x39\x2B\x41\x56\x6F\x34\x4E\x46\x2B\x74\x67\x79\x65\x49\x63\x36\x41\x36\x6B\x64\x4B\x33\x72\x4C\x42\x51\x70\x45\x51\x48\x39\x56\x34\x74\x64\x72\x72\x68\x30\x77\x3D\x3D","\x6A\x76\x4A\x68\x37\x47\x70\x6F\x47\x68\x6D\x37\x66\x53\x6C\x70\x57\x68\x53\x79\x33\x4D\x6A\x4E\x68\x4E\x61\x59\x46\x79\x32\x48\x74\x65\x45\x72\x45\x36\x69\x7A\x6C\x68\x54\x66\x39\x6E\x72\x47\x59\x37\x67\x42\x6B\x43\x64\x47\x55\x34\x43\x36\x7A\x2F\x78\x44","\x4A\x2F\x4F\x45\x4C\x38\x2F\x5A\x4D\x54\x62\x50\x63\x7A\x45\x53\x39\x4A\x5A\x70\x6A\x73\x6A\x4E\x68\x4E\x61\x59\x46\x79\x32\x48\x74\x65\x45\x72\x45\x36\x69\x7A\x6C\x68\x54\x66\x39\x6E\x72\x47\x59\x37\x67\x42\x6B\x43\x64\x47\x55\x34\x43\x36\x7A\x2F\x78\x44","\x72\x61\x6E\x64\x6F\x6D","\x66\x6C\x6F\x6F\x72","\x6C\x65\x6E\x67\x74\x68","\x73\x68\x61\x72\x65\x55\x75\x69\x64","\x64\x6F\x6E\x65","\x66\x69\x6E\x61\x6C\x6C\x79","\x6C\x6F\x67\x45\x72\x72","\x63\x61\x74\x63\x68","\x0A\u8BF7\u81EA\u884C\u786E\u8BA4\u8D26\u53F7\u4E00\u662F\u5426\u9ED1\u53F7\uFF0C\u9ED1\u53F7\u4F1A\u5168\u90E8\u52A9\u529B\u5F53\u524D\u52A9\u529B","\x0A\u5F53\u524D\u52A9\u529B\uFF1A","\x0A\u5F53\u524D\u6D3B\u52A8\u53E3\u4EE4\uFF1A\x20\x31\x36\x3A\x2F\x28\x42\x33\x74\x55\x33\x33\x4F\x44\x35\x54\x69\x29\x20\uFF0C\u3010\u9BE8\u3024\x44\u03C3\u03B4\u03B4\x6E\x67\u3011\u53C2\u4E0E\u5934\u6587\u5B57\x4A\uFF0C\u96C6\u80FD\u91CF\u5151\u6362\u4EAC\u8C46","\x6E\x61\x6D\x65","\u3010\u63D0\u793A\u3011\u8BF7\u5148\u83B7\u53D6\x63\x6F\x6F\x6B\x69\x65\x0A\u76F4\u63A5\u4F7F\u7528\x4E\x6F\x62\x79\x44\x61\u7684\u4EAC\u4E1C\u7B7E\u5230\u83B7\u53D6","\x68\x74\x74\x70\x73\x3A\x2F\x2F\x62\x65\x61\x6E\x2E\x6D\x2E\x6A\x64\x2E\x63\x6F\x6D\x2F","\x6D\x73\x67","\x61\x70\x70\x6B\x65\x79","\x32\x31\x36\x39\x39\x30\x34\x35","\x75\x73\x65\x72\x49\x64","\x31\x30\x32\x39\x39\x31\x37\x31","\x61\x63\x74\x49\x64","\x31\x37\x36\x30\x30\x30\x37","\x4D\x69\x78\x4E\x69\x63\x6B\x73","\x69\x6E\x76\x69\x74\x65\x4E\x69\x63\x6B","\x55\x73\x65\x72\x4E\x61\x6D\x65","\x6D\x61\x74\x63\x68","\x69\x6E\x64\x65\x78","\x62\x65\x61\x6E","\x6E\x69\x63\x6B\x4E\x61\x6D\x65","\x0A\x2A\x2A\x2A\x2A\x2A\x2A\u5F00\u59CB\u3010\u4EAC\u4E1C\u8D26\u53F7","\u3011","\x2A\x2A\x2A\x2A\x2A\x2A\x2A\x2A\x2A\x0A","\x55\x41","\u6B64\x69\x70\u5DF2\u88AB\u9650\u5236\uFF0C\u8BF7\u8FC7\x31\x30\u5206\u949F\u540E\u518D\u6267\u884C\u811A\u672C","\x73\x65\x6E\x64\x4E\x6F\x74\x69\x66\x79","\x68\x61\x73\x45\x6E\x64","\x65\x6E\x64\x54\x69\x6D\x65","\x54\x6F\x6B\x65\x6E","\x50\x69\x6E","\x4D\x69\x78\x4E\x69\x63\x6B","\u6B64\x69\x70\u5DF2\u88AB\u9650\u5236\uFF0C\u8BF7\u8FC7\x31\x30\u5206\u949F\u540E\u518D\u6267\u884C\u811A\u672C\x0A","\x69\x73\x76\x4F\x62\x66\x75\x73\x63\x61\x74\x6F\x72","\u83B7\u53D6\x5B\x74\x6F\x6B\x65\x6E\x5D\u5931\u8D25\uFF01","\x61\x63\x74\x69\x76\x69\x74\x79\x5F\x6C\x6F\x61\x64","\u83B7\u53D6\x63\x6F\x6F\x6B\x69\x65\u5931\u8D25","\x74\x6F\x42\x69\x6E\x64","\u7ED1\u5B9A","\x77\x61\x69\x74","\x73\x68\x6F\x70\x4C\x69\x73\x74","\x0A\u3010\u8870\u4ED4\uFF0C\u5F00\u59CB\u5237\u4EFB\u52A1\u4E2D\x2E\x2E\x2E\x2E\x2E\u3011\x0A","\x6D\x69\x73\x73\x69\x6F\x6E\x54\x79\x70\x65","\x74\x79\x70\x65","\x69\x73\x43\x6F\x6D\x70\x6C\x65\x74\x65","\x62\x69\x6E\x67\x43\x61\x72","\x6F\x70\x65\x6E\x43\x61\x72\x64","\x73\x68\x61\x72\x65\x41\x63\x74","\x76\x69\x65\x77\x43\x6F\x6D\x6D\x6F\x64\x69\x74\x79","\x72\x65\x6E\x77\x75\x6C\x69\x73\x74","\x67\x65\x74\x43\x75\x73\x53\x68\x6F\x70","\x63\x6F\x6C\x6C\x65\x63\x74\x53\x68\x6F\x70","\u5173\u6CE8","\x63\x61\x72\x70\x6C\x61\x79\x5F\x61\x64\x64\x73\x6B\x75","\x74\x72\x75\x65","\x67\x65\x74\x43\x75\x73\x53\x68\x6F\x70\x50\x72\x6F\x64\x75\x63\x74","\x61\x64\x64\x43\x61\x72\x74","\u52A0\u8D2D","\u9ED8\u8BA4\u4E0D\u52A0\u8D2D\x2C\u8BF7\u8BBE\u7F6E\u53D8\u91CF\x65\x78\x70\x6F\x72\x74\x20\x63\x61\x72\x70\x6C\x61\x79\x5F\x61\x64\x64\x73\x6B\x75\x3D\x27\x74\x72\x75\x65\x27\u505A\u52A0\u8D2D\u4EFB\u52A1","\x0A\u3010\u8870\u4ED4\uFF0C\u5F00\u59CB\u9009\u62E9\u5408\u9002\u8F66\u8F86\u4E2D\x2E\x2E\x2E\x2E\x2E\u3011\x0A","\x67\x65\x74\x43\x61\x72\x49\x6E\x66\x6F","\x69\x73\x55\x6E\x6C\x6F\x63\x6B","\x63\x61\x72\x4E\x61\x6D\x65","\x63\x61\x72\x69\x64","\x69\x64","\u5F53\u524D\u9009\u62E9\u8F66\u8F86\uFF1A","\x0A\u3010\u8870\u4ED4\uFF0C\u5F00\u59CB\u5237\u6E38\u620F\u4E2D\x2E\x2E\x2E\x2E\x2E\u3011\x0A","\x72\x65\x6D\x61\x69\x6E\x43\x68\x61\x6E\x63\x65","\x70\x6C\x61\x79\x47\x61\x6D\x65","\x73\x65\x6E\x64\x47\x61\x6D\x65\x41\x77\x61\x72\x64","\u52A9\u529B","\u76EE\u524D\u5206\u503C\uFF1A","\x74\x6F\x74\x61\x6C\x50\x6F\x69\x6E\x74","\x6D\x69\x73\x73\x69\x6F\x6E\x49\x6E\x76\x69\x74\x65\x4C\x69\x73\x74","\u5F53\u524D\u52A9\u529B\x3A","\u540E\u9762\u7684\u53F7\u90FD\u4F1A\u52A9\u529B\x3A","\x68\x74\x74\x70\x73\x3A\x2F\x2F\x6D\x70\x64\x7A\x2D\x63\x61\x72\x2D\x64\x7A\x2E\x69\x73\x76\x6A\x63\x6C\x6F\x75\x64\x2E\x63\x6F\x6D","\x50\x4F\x53\x54","\x68\x74\x74\x70\x73\x3A\x2F\x2F\x61\x70\x69\x2E\x6D\x2E\x6A\x64\x2E\x63\x6F\x6D\x2F\x63\x6C\x69\x65\x6E\x74\x2E\x61\x63\x74\x69\x6F\x6E\x3F\x66\x75\x6E\x63\x74\x69\x6F\x6E\x49\x64\x3D\x69\x73\x76\x4F\x62\x66\x75\x73\x63\x61\x74\x6F\x72","\x62\x6F\x64\x79\x3D\x25\x37\x42\x25\x32\x32\x75\x72\x6C\x25\x32\x32\x25\x33\x41\x25\x32\x32\x68\x74\x74\x70\x73\x25\x33\x41\x25\x35\x43\x2F\x25\x35\x43\x2F\x6D\x70\x64\x7A\x2D\x63\x61\x72\x2D\x64\x7A\x2E\x69\x73\x76\x6A\x63\x6C\x6F\x75\x64\x2E\x63\x6F\x6D\x25\x35\x43\x2F\x6A\x64\x62\x65\x76\x65\x72\x61\x67\x65\x25\x35\x43\x2F\x70\x61\x67\x65\x73\x25\x35\x43\x2F\x70\x61\x6F\x6B\x75\x25\x35\x43\x2F\x70\x61\x6F\x6B\x75\x3F\x62\x69\x7A\x45\x78\x74\x53\x74\x72\x69\x6E\x67\x25\x33\x44\x63\x32\x68\x68\x63\x6D\x56\x4F\x61\x57\x4E\x72\x4F\x6D\x73\x78\x54\x6D\x39\x69\x59\x69\x55\x79\x51\x6C\x41\x77\x5A\x58\x49\x6C\x4D\x6B\x4A\x44\x4D\x6E\x4E\x35\x63\x33\x68\x75\x65\x43\x55\x79\x52\x6C\x41\x79\x53\x30\x56\x4D\x54\x7A\x6C\x70\x65\x6C\x4A\x57\x63\x48\x64\x44\x65\x58\x46\x31\x4D\x47\x56\x78\x56\x6C\x6F\x31\x59\x56\x63\x33\x55\x6B\x68\x36\x62\x45\x31\x76\x59\x6E\x4A\x36\x53\x69\x55\x79\x52\x6D\x55\x35\x63\x69\x55\x79\x52\x6E\x56\x6D\x4A\x6D\x68\x6C\x59\x57\x52\x51\x61\x57\x4E\x56\x63\x6D\x77\x36\x61\x48\x52\x30\x63\x43\x55\x7A\x51\x53\x55\x79\x52\x69\x55\x79\x52\x6E\x4E\x30\x62\x33\x4A\x68\x5A\x32\x55\x75\x4D\x7A\x59\x77\x59\x6E\x56\x35\x61\x57\x31\x6E\x4C\x6D\x4E\x76\x62\x53\x55\x79\x52\x6D\x6B\x75\x61\x57\x31\x68\x5A\x32\x56\x56\x63\x47\x78\x76\x59\x57\x51\x6C\x4D\x6B\x59\x33\x4D\x54\x4D\x33\x4D\x7A\x55\x7A\x4E\x44\x4D\x34\x4D\x7A\x63\x7A\x4F\x54\x4D\x78\x4D\x7A\x4D\x7A\x4D\x7A\x4D\x78\x4D\x7A\x59\x7A\x4E\x44\x4D\x30\x4D\x7A\x6B\x7A\x4D\x6A\x4D\x78\x4D\x7A\x59\x7A\x4E\x54\x4D\x35\x4D\x7A\x41\x7A\x4E\x54\x4D\x7A\x58\x32\x31\x70\x5A\x43\x35\x71\x63\x47\x63\x6D\x62\x6D\x6C\x6A\x61\x30\x35\x68\x62\x57\x55\x36\x4A\x55\x55\x32\x4A\x55\x46\x45\x4A\x55\x45\x79\x4A\x55\x55\x30\x4A\x55\x4A\x42\x4A\x54\x68\x46\x4A\x55\x55\x30\x4A\x55\x49\x35\x4A\x54\x68\x43\x4A\x55\x55\x31\x4A\x55\x4A\x47\x4A\x54\x67\x7A\x25\x32\x36\x73\x69\x64\x25\x33\x44\x39\x30\x62\x61\x31\x37\x30\x32\x30\x61\x66\x63\x35\x33\x34\x66\x35\x62\x34\x35\x64\x65\x63\x30\x32\x34\x37\x61\x39\x32\x61\x77\x25\x32\x36\x75\x6E\x5F\x61\x72\x65\x61\x25\x33\x44\x34\x5F\x31\x33\x33\x5F\x35\x38\x35\x33\x30\x5F\x30\x25\x32\x32\x25\x32\x43\x25\x32\x32\x69\x64\x25\x32\x32\x25\x33\x41\x25\x32\x32\x25\x32\x32\x25\x37\x44\x26\x62\x75\x69\x6C\x64\x3D\x31\x36\x38\x31\x30\x36\x26\x63\x6C\x69\x65\x6E\x74\x3D\x61\x70\x70\x6C\x65\x26\x63\x6C\x69\x65\x6E\x74\x56\x65\x72\x73\x69\x6F\x6E\x3D\x31\x31\x2E\x30\x2E\x34\x26\x64\x5F\x62\x72\x61\x6E\x64\x3D\x61\x70\x70\x6C\x65\x26\x64\x5F\x6D\x6F\x64\x65\x6C\x3D\x69\x50\x68\x6F\x6E\x65\x39\x25\x32\x43\x32\x26\x65\x66\x3D\x31\x26\x65\x69\x64\x3D\x51\x4D\x56\x53\x4B\x45\x57\x54\x37\x37\x56\x41\x57\x4B\x34\x48\x47\x43\x42\x44\x56\x59\x55\x55\x32\x34\x50\x4C\x34\x35\x58\x56\x55\x4B\x5A\x4C\x51\x56\x59\x44\x33\x45\x56\x49\x51\x55\x35\x4E\x47\x4C\x35\x4A\x5A\x51\x43\x47\x35\x55\x42\x4F\x46\x4B\x45\x42\x35\x4E\x57\x53\x54\x4F\x55\x4D\x4A\x58\x5A\x36\x55\x42\x48\x49\x33\x58\x5A\x37\x49\x35\x54\x36\x47\x56\x4E\x56\x4F\x47\x4B\x48\x55\x4D\x36\x58\x44\x32\x37\x4A\x52\x57\x55\x41\x59\x4C\x4B\x4C\x55\x52\x49\x41\x26\x65\x70\x3D\x25\x37\x42\x25\x32\x32\x63\x69\x70\x68\x65\x72\x74\x79\x70\x65\x25\x32\x32\x25\x33\x41\x35\x25\x32\x43\x25\x32\x32\x63\x69\x70\x68\x65\x72\x25\x32\x32\x25\x33\x41\x25\x37\x42\x25\x32\x32\x73\x63\x72\x65\x65\x6E\x25\x32\x32\x25\x33\x41\x25\x32\x32\x43\x4A\x53\x30\x43\x73\x65\x79\x43\x74\x4B\x34\x25\x32\x32\x25\x32\x43\x25\x32\x32\x61\x72\x65\x61\x25\x32\x32\x25\x33\x41\x25\x32\x32\x44\x50\x38\x6E\x43\x7A\x44\x70\x44\x4A\x71\x31\x43\x7A\x4C\x70\x43\x4B\x25\x33\x44\x25\x33\x44\x25\x32\x32\x25\x32\x43\x25\x32\x32\x77\x69\x66\x69\x42\x73\x73\x69\x64\x25\x32\x32\x25\x33\x41\x25\x32\x32\x43\x4E\x5A\x74\x45\x4A\x4B\x6E\x43\x4E\x43\x35\x45\x51\x48\x73\x43\x7A\x75\x79\x5A\x74\x47\x31\x59\x7A\x75\x79\x5A\x51\x47\x31\x43\x57\x56\x75\x44\x4E\x43\x31\x59\x7A\x43\x25\x33\x44\x25\x32\x32\x25\x32\x43\x25\x32\x32\x6F\x73\x56\x65\x72\x73\x69\x6F\x6E\x25\x32\x32\x25\x33\x41\x25\x32\x32\x43\x4A\x43\x6B\x44\x71\x25\x33\x44\x25\x33\x44\x25\x32\x32\x25\x32\x43\x25\x32\x32\x75\x75\x69\x64\x25\x32\x32\x25\x33\x41\x25\x32\x32\x61\x51\x66\x31\x5A\x52\x64\x78\x62\x32\x72\x34\x6F\x76\x5A\x31\x45\x4A\x5A\x68\x63\x78\x59\x6C\x56\x4E\x5A\x53\x5A\x7A\x30\x39\x25\x32\x32\x25\x32\x43\x25\x32\x32\x61\x64\x69\x64\x25\x32\x32\x25\x33\x41\x25\x32\x32\x45\x4F\x43\x7A\x44\x75\x56\x50\x45\x4A\x75\x6A\x44\x7A\x4F\x31\x48\x49\x30\x30\x48\x75\x56\x50\x42\x4A\x71\x79\x45\x4E\x59\x6A\x43\x4F\x55\x33\x44\x55\x55\x35\x44\x55\x4F\x6D\x43\x4E\x63\x6E\x25\x32\x32\x25\x32\x43\x25\x32\x32\x6F\x70\x65\x6E\x75\x64\x69\x64\x25\x32\x32\x25\x33\x41\x25\x32\x32\x44\x77\x4F\x6D\x5A\x74\x4B\x35\x45\x57\x59\x79\x44\x32\x48\x75\x45\x51\x50\x76\x45\x57\x53\x34\x44\x4E\x4B\x32\x43\x7A\x50\x75\x59\x7A\x63\x31\x59\x4A\x4B\x7A\x59\x74\x53\x32\x43\x7A\x71\x35\x5A\x4A\x4F\x35\x59\x71\x25\x33\x44\x25\x33\x44\x25\x32\x32\x25\x37\x44\x25\x32\x43\x25\x32\x32\x74\x73\x25\x32\x32\x25\x33\x41\x31\x36\x35\x35\x36\x35\x34\x32\x32\x38\x25\x32\x43\x25\x32\x32\x68\x64\x69\x64\x25\x32\x32\x25\x33\x41\x25\x32\x32\x4A\x4D\x39\x46\x31\x79\x77\x55\x50\x77\x66\x6C\x76\x4D\x49\x70\x59\x50\x6F\x6B\x30\x74\x74\x35\x6B\x39\x6B\x57\x34\x41\x72\x4A\x45\x55\x33\x6C\x66\x4C\x68\x78\x42\x71\x77\x25\x33\x44\x25\x32\x32\x25\x32\x43\x25\x32\x32\x76\x65\x72\x73\x69\x6F\x6E\x25\x32\x32\x25\x33\x41\x25\x32\x32\x31\x2E\x30\x2E\x33\x25\x32\x32\x25\x32\x43\x25\x32\x32\x61\x70\x70\x6E\x61\x6D\x65\x25\x32\x32\x25\x33\x41\x25\x32\x32\x63\x6F\x6D\x2E\x33\x36\x30\x62\x75\x79\x2E\x6A\x64\x6D\x6F\x62\x69\x6C\x65\x25\x32\x32\x25\x32\x43\x25\x32\x32\x72\x69\x64\x78\x25\x32\x32\x25\x33\x41\x2D\x31\x25\x37\x44\x26\x65\x78\x74\x3D\x25\x37\x42\x25\x32\x32\x70\x72\x73\x74\x61\x74\x65\x25\x32\x32\x25\x33\x41\x25\x32\x32\x30\x25\x32\x32\x25\x32\x43\x25\x32\x32\x70\x76\x63\x53\x74\x75\x25\x32\x32\x25\x33\x41\x25\x32\x32\x31\x25\x32\x32\x25\x37\x44\x26\x69\x73\x42\x61\x63\x6B\x67\x72\x6F\x75\x6E\x64\x3D\x4E\x26\x6A\x6F\x79\x63\x69\x6F\x75\x73\x3D\x31\x32\x36\x26\x6C\x61\x6E\x67\x3D\x7A\x68\x5F\x43\x4E\x26\x6E\x65\x74\x77\x6F\x72\x6B\x54\x79\x70\x65\x3D\x77\x69\x66\x69\x26\x6E\x65\x74\x77\x6F\x72\x6B\x6C\x69\x62\x74\x79\x70\x65\x3D\x4A\x44\x4E\x65\x74\x77\x6F\x72\x6B\x42\x61\x73\x65\x41\x46\x26\x70\x61\x72\x74\x6E\x65\x72\x3D\x61\x70\x70\x6C\x65\x26\x72\x66\x73\x3D\x30\x30\x30\x30\x26\x73\x63\x6F\x70\x65\x3D\x30\x31\x26\x73\x69\x67\x6E\x3D\x33\x31\x63\x61\x37\x31\x36\x32\x62\x30\x65\x30\x32\x33\x34\x31\x64\x31\x37\x62\x30\x31\x31\x30\x64\x38\x65\x62\x63\x61\x64\x33\x26\x73\x74\x3D\x31\x36\x35\x35\x37\x32\x37\x38\x38\x35\x38\x39\x38\x26\x73\x76\x3D\x31\x31\x32\x26\x75\x65\x6D\x70\x73\x3D\x30\x2D\x30\x26\x75\x74\x73\x3D\x30\x66\x33\x31\x54\x56\x52\x6A\x42\x53\x73\x71\x6E\x64\x75\x34\x2F\x6A\x67\x55\x50\x7A\x36\x75\x79\x6D\x79\x35\x30\x4D\x51\x4A\x77\x62\x68\x65\x64\x68\x5A\x36\x72\x63\x43\x6B\x57\x5A\x59\x54\x4C\x78\x4F\x6F\x6C\x6A\x67\x44\x42\x57\x34\x75\x47\x76\x4F\x31\x35\x56\x41\x62\x30\x71\x6D\x68\x69\x7A\x36\x32\x65\x7A\x47\x68\x2F\x58\x6B\x6E\x43\x66\x4D\x6D\x69\x4D\x6A\x66\x25\x32\x42\x25\x32\x42\x57\x46\x49\x49\x6C\x6E\x55\x49\x50\x53\x75\x34\x55\x48\x69\x4C\x69\x37\x32\x67\x56\x36\x43\x6F\x42\x54\x74\x52\x4C\x4D\x31\x48\x77\x6D\x33\x30\x4E\x31\x70\x33\x61\x25\x32\x42\x72\x49\x45\x6D\x55\x46\x6E\x70\x4F\x64\x62\x52\x47\x6F\x6D\x67\x42\x70\x6E\x76\x73\x2F\x52\x56\x6B\x6E\x6F\x38\x4E\x30\x43\x6A\x78\x37\x43\x6E\x31\x75\x32\x57\x52\x66\x77\x70\x32\x2F\x4E\x36\x4E\x42\x39\x6E\x30\x4B\x50\x74\x36\x44\x55\x61\x77\x32\x61\x74\x55\x79\x55\x51\x62\x44\x6A\x71\x7A\x33\x37\x47\x50\x51\x25\x33\x44\x25\x33\x44","\x2F\x64\x6D\x2F\x66\x72\x6F\x6E\x74\x2F\x6A\x64\x43\x61\x72\x64\x52\x75\x6E\x6E\x69\x6E\x67\x2F\x61\x63\x74\x69\x76\x69\x74\x79\x2F\x6C\x6F\x61\x64\x3F\x6F\x70\x65\x6E\x5F\x69\x64\x3D\x26\x6D\x69\x78\x5F\x6E\x69\x63\x6B\x3D","\x26\x70\x75\x73\x68\x5F\x77\x61\x79\x3D\x31\x26\x75\x73\x65\x72\x5F\x69\x64\x3D","\x6A\x6F\x69\x6E\x56\x65\x6E\x64\x65\x72\x49\x64","\x2F\x6A\x64\x43\x61\x72\x64\x52\x75\x6E\x6E\x69\x6E\x67\x2F\x61\x63\x74\x69\x76\x69\x74\x79\x2F\x6C\x6F\x61\x64","\x2F\x64\x6D\x2F\x66\x72\x6F\x6E\x74\x2F\x6A\x64\x43\x61\x72\x64\x52\x75\x6E\x6E\x69\x6E\x67\x2F\x6D\x69\x73\x73\x69\x6F\x6E\x2F\x63\x6F\x6D\x70\x6C\x65\x74\x65\x53\x74\x61\x74\x65\x3F\x6F\x70\x65\x6E\x5F\x69\x64\x3D\x26\x6D\x69\x78\x5F\x6E\x69\x63\x6B\x3D","\x2F\x6A\x64\x43\x61\x72\x64\x52\x75\x6E\x6E\x69\x6E\x67\x2F\x6D\x69\x73\x73\x69\x6F\x6E\x2F\x63\x6F\x6D\x70\x6C\x65\x74\x65\x53\x74\x61\x74\x65","\x2F\x64\x6D\x2F\x66\x72\x6F\x6E\x74\x2F\x6A\x64\x43\x61\x72\x64\x52\x75\x6E\x6E\x69\x6E\x67\x2F\x6D\x69\x73\x73\x69\x6F\x6E\x2F\x63\x6F\x6D\x70\x6C\x65\x74\x65\x4D\x69\x73\x73\x69\x6F\x6E\x3F\x6F\x70\x65\x6E\x5F\x69\x64\x3D\x26\x6D\x69\x78\x5F\x6E\x69\x63\x6B\x3D","\x2F\x6A\x64\x43\x61\x72\x64\x52\x75\x6E\x6E\x69\x6E\x67\x2F\x6D\x69\x73\x73\x69\x6F\x6E\x2F\x63\x6F\x6D\x70\x6C\x65\x74\x65\x4D\x69\x73\x73\x69\x6F\x6E","\x75\x73\x65\x72\x49\x64\x73","\x67\x6F\x6F\x64\x73\x4E\x75\x6D\x49\x64","\x2F\x64\x6D\x2F\x66\x72\x6F\x6E\x74\x2F\x6A\x64\x43\x61\x72\x64\x52\x75\x6E\x6E\x69\x6E\x67\x2F\x63\x75\x73\x53\x68\x6F\x70\x2F\x67\x65\x74\x43\x75\x73\x53\x68\x6F\x70\x3F\x6F\x70\x65\x6E\x5F\x69\x64\x3D\x26\x6D\x69\x78\x5F\x6E\x69\x63\x6B\x3D","\x2F\x6A\x64\x43\x61\x72\x64\x52\x75\x6E\x6E\x69\x6E\x67\x2F\x63\x75\x73\x53\x68\x6F\x70\x2F\x67\x65\x74\x43\x75\x73\x53\x68\x6F\x70","\x2F\x64\x6D\x2F\x66\x72\x6F\x6E\x74\x2F\x6A\x64\x43\x61\x72\x64\x52\x75\x6E\x6E\x69\x6E\x67\x2F\x63\x75\x73\x53\x68\x6F\x70\x2F\x67\x65\x74\x43\x75\x73\x53\x68\x6F\x70\x50\x72\x6F\x64\x75\x63\x74\x3F\x6F\x70\x65\x6E\x5F\x69\x64\x3D\x26\x6D\x69\x78\x5F\x6E\x69\x63\x6B\x3D","\x2F\x64\x6D\x2F\x66\x72\x6F\x6E\x74\x2F\x6A\x64\x43\x61\x72\x64\x52\x75\x6E\x6E\x69\x6E\x67\x2F\x63\x61\x72\x49\x6E\x66\x6F\x2F\x67\x65\x74\x43\x61\x72\x49\x6E\x66\x6F\x3F\x6F\x70\x65\x6E\x5F\x69\x64\x3D\x26\x6D\x69\x78\x5F\x6E\x69\x63\x6B\x3D","\x2F\x64\x6D\x2F\x66\x72\x6F\x6E\x74\x2F\x6A\x64\x43\x61\x72\x64\x52\x75\x6E\x6E\x69\x6E\x67\x2F\x67\x61\x6D\x65\x2F\x70\x6C\x61\x79\x47\x61\x6D\x65\x3F\x6F\x70\x65\x6E\x5F\x69\x64\x3D\x26\x6D\x69\x78\x5F\x6E\x69\x63\x6B\x3D","\x2F\x6A\x64\x43\x61\x72\x64\x52\x75\x6E\x6E\x69\x6E\x67\x2F\x67\x61\x6D\x65\x2F\x70\x6C\x61\x79\x47\x61\x6D\x65","\x2F\x64\x6D\x2F\x66\x72\x6F\x6E\x74\x2F\x6A\x64\x43\x61\x72\x64\x52\x75\x6E\x6E\x69\x6E\x67\x2F\x67\x61\x6D\x65\x2F\x73\x65\x6E\x64\x47\x61\x6D\x65\x41\x77\x61\x72\x64\x3F\x6F\x70\x65\x6E\x5F\x69\x64\x3D\x26\x6D\x69\x78\x5F\x6E\x69\x63\x6B\x3D","\x70\x6F\x69\x6E\x74","\x67\x61\x6D\x65\x4C\x6F\x67\x49\x64","\x2F\x6A\x64\x43\x61\x72\x64\x52\x75\x6E\x6E\x69\x6E\x67\x2F\x67\x61\x6D\x65\x2F\x73\x65\x6E\x64\x47\x61\x6D\x65\x41\x77\x61\x72\x64","\x2F\x64\x6D\x2F\x66\x72\x6F\x6E\x74\x2F\x6A\x64\x43\x61\x72\x64\x52\x75\x6E\x6E\x69\x6E\x67\x2F\x63\x75\x73\x74\x6F\x6D\x65\x72\x2F\x69\x6E\x76\x69\x74\x65\x4C\x69\x73\x74\x3F\x6F\x70\x65\x6E\x5F\x69\x64\x3D\x26\x6D\x69\x78\x5F\x6E\x69\x63\x6B\x3D","\x2F\x6A\x64\x43\x61\x72\x64\x52\x75\x6E\x6E\x69\x6E\x67\x2F\x63\x75\x73\x74\x6F\x6D\x65\x72\x2F\x69\x6E\x76\x69\x74\x65\x4C\x69\x73\x74","\u9519\u8BEF","\x73\x74\x61\x74\x75\x73\x43\x6F\x64\x65","\x74\x6F\x53\x74\x72","\x20\x41\x50\x49\u8BF7\u6C42\u5931\u8D25\uFF0C\u8BF7\u68C0\u67E5\u7F51\u8DEF\u91CD\u8BD5","\x70\x6F\x73\x74","\x61\x63\x63\x65\x73\x73\x4C\x6F\x67\x57\x69\x74\x68\x41\x44","\x64\x72\x61\x77\x43\x6F\x6E\x74\x65\x6E\x74","\x70\x61\x72\x73\x65","\x20\u6267\u884C\u4EFB\u52A1\u5F02\u5E38","\x72\x75\x6E\x46\x61\x6C\x61\x67","\x6F\x62\x6A\x65\x63\x74","\x65\x72\x72\x63\x6F\x64\x65","\x74\x6F\x6B\x65\x6E","\x75\x6E\x64\x65\x66\x69\x6E\x65\x64","\x6D\x65\x73\x73\x61\x67\x65","\x20","\x73\x75\x63\x63\x65\x73\x73","\x64\x61\x74\x61","\x73\x74\x61\x74\x75\x73","\x63\x75\x73\x53\x68\x6F\x70","\x6E\x75\x6D\x49\x64","\x63\x75\x73\x53\x68\x6F\x70\x50\x72\x6F\x64\x75\x63\x74","\u6E38\u620F\x49\x44\uFF1A\x20","\u592A\u68D2\u4E86\uFF0C\u8870\u4ED4\uFF0C\u6E38\u620F\u5B8C\u6210\uFF0C\u5F53\u524D\u5206\u503C\uFF1A","\x6D\x69\x73\x73\x69\x6F\x6E","\x73\x65\x74\x4D\x69\x78\x4E\x69\x63\x6B","\x66\x6F\x6C\x6C\x6F\x77\x53\x68\x6F\x70","\x6D\x79\x41\x77\x61\x72\x64","\x69\x73\x4F\x70\x65\x6E\x43\x61\x72\x64","\x72\x65\x6D\x61\x72\x6B","\x3A","\x63\x75\x73\x41\x63\x74\x69\x76\x69\x74\x79","\x62\x75\x79\x65\x72\x4E\x69\x63\x6B","\x6D\x69\x73\x73\x69\x6F\x6E\x43\x75\x73\x74\x6F\x6D\x65\x72","\x68\x61\x73\x43\x6F\x6C\x6C\x65\x63\x74\x53\x68\x6F\x70","\x6F\x70\x65\x6E\x4C\x69\x73\x74","\x63\x75\x73\x53\x68\x6F\x70\x4C\x69\x73\x74","\u9080\u8BF7\u4EBA\u6570\x28","\x74\x6F\x74\x61\x6C","\x29","\u6D3B\u52A8\u672A\u5F00\u59CB","\x69\x6E\x64\x65\x78\x4F\x66","\x65\x72\x72\x6F\x72\x4D\x65\x73\x73\x61\x67\x65","\u706B\u7206","\x73\x70\x65\x63\x69\x61\x6C\x53\x69\x67\x6E","\x61\x70\x70\x6C\x69\x63\x61\x74\x69\x6F\x6E\x2F\x6A\x73\x6F\x6E","\x67\x7A\x69\x70\x2C\x20\x64\x65\x66\x6C\x61\x74\x65\x2C\x20\x62\x72","\x7A\x68\x2D\x63\x6E","\x6B\x65\x65\x70\x2D\x61\x6C\x69\x76\x65","\x61\x70\x70\x6C\x69\x63\x61\x74\x69\x6F\x6E\x2F\x78\x2D\x77\x77\x77\x2D\x66\x6F\x72\x6D\x2D\x75\x72\x6C\x65\x6E\x63\x6F\x64\x65\x64","\x58\x4D\x4C\x48\x74\x74\x70\x52\x65\x71\x75\x65\x73\x74","\x4F\x72\x69\x67\x69\x6E","\x68\x6F\x73\x74","\x6D\x70\x64\x7A\x2D\x63\x61\x72\x2D\x64\x7A\x2E\x69\x73\x76\x6A\x63\x6C\x6F\x75\x64\x2E\x63\x6F\x6D","\x43\x6F\x6E\x74\x65\x6E\x74\x2D\x54\x79\x70\x65","\x61\x70\x70\x6C\x69\x63\x61\x74\x69\x6F\x6E\x2F\x6A\x73\x6F\x6E\x3B\x63\x68\x61\x72\x73\x65\x74\x3D\x75\x74\x66\x2D\x38","\x43\x6F\x6F\x6B\x69\x65","\x32\x2E\x30","\x73\x69\x67\x6E","\x74\x69\x6D\x65\x53\x74\x61\x6D\x70","\x61\x64\x6D\x4A\x73\x6F\x6E","\x70\x61\x72\x61\x6D\x73","\x38\x35\x36\x32\x33\x33\x31\x32\x30\x34\x34\x32\x35\x38\x34\x36\x34\x33\x32\x35\x32\x32\x37\x36\x36\x36\x38\x38\x33\x35\x34\x36","\x73\x74\x72\x69\x6E\x67\x69\x66\x79","\x27","\x67","\x7E","\x25\x32\x37","\x72\x65\x70\x6C\x61\x63\x65","\x25\x37\x45","\x61\x70\x70\x4B\x65\x79","\x74\x69\x6D\x65\x73\x74\x61\x6D\x70","\x74\x6F\x4C\x6F\x77\x65\x72\x43\x61\x73\x65","\x73\x75\x62\x73\x74\x72\x69\x6E\x67","\x6E\x6F\x77","\x5F\x6D\x61\x70","\x42\x61\x73\x65\x36\x34","\x65\x6E\x63","\x4B\x4C\x4D\x4E\x4F\x50\x51\x52\x53\x54\x41\x42\x43\x44\x45\x46\x47\x48\x49\x4A\x55\x56\x57\x58\x59\x5A\x61\x62\x63\x64\x6F\x70\x71\x72\x73\x74\x75\x76\x77\x78\x65\x66\x67\x68\x69\x6A\x6B\x6C\x6D\x6E\x79\x7A\x30\x31\x32\x33\x34\x35\x36\x37\x38\x39\x2B\x2F","\x55\x74\x66\x38","\x4A\x4D\x39\x46\x31\x79\x77\x55\x50\x77\x66\x6C\x76\x4D\x49\x70\x59\x50\x6F\x6B\x30\x74\x74\x35\x6B\x39\x6B\x57\x34\x41\x72\x4A\x45\x55\x33\x6C\x66\x4C\x68\x78\x42\x71\x77\x3D","\x67\x65\x74\x54\x69\x6D\x65","\x45\x47\x3D\x3D","\x43\x74\x71\x3D","\x31\x2E\x32\x2E\x30","\x63\x6F\x6D\x2E\x6A\x69\x6E\x67\x64\x6F\x6E\x67\x2E\x61\x70\x70\x2E\x6D\x61\x6C\x6C","\x6A\x64\x61\x70\x70\x3B\x61\x6E\x64\x72\x6F\x69\x64\x3B\x31\x31\x2E\x30\x2E\x32\x3B\x3B\x3B\x61\x70\x70\x42\x75\x69\x6C\x64\x2F\x39\x37\x35\x36\x35\x3B\x65\x66\x2F\x31\x3B\x65\x70\x2F","\x3B\x6A\x64\x53\x75\x70\x70\x6F\x72\x74\x44\x61\x72\x6B\x4D\x6F\x64\x65\x2F\x30\x3B\x4D\x6F\x7A\x69\x6C\x6C\x61\x2F\x35\x2E\x30\x20\x28\x4C\x69\x6E\x75\x78\x3B\x20\x41\x6E\x64\x72\x6F\x69\x64\x20\x39\x3B\x20\x4E\x6F\x74\x65\x39\x20\x42\x75\x69\x6C\x64\x2F\x50\x4B\x51\x31\x2E\x31\x38\x31\x32\x30\x33\x2E\x30\x30\x32\x3B\x20\x77\x76\x29\x20\x41\x70\x70\x6C\x65\x57\x65\x62\x4B\x69\x74\x2F\x35\x33\x37\x2E\x33\x36\x20\x28\x4B\x48\x54\x4D\x4C\x2C\x20\x6C\x69\x6B\x65\x20\x47\x65\x63\x6B\x6F\x29\x20\x56\x65\x72\x73\x69\x6F\x6E\x2F\x34\x2E\x30\x20\x43\x68\x72\x6F\x6D\x65\x2F\x38\x39\x2E\x30\x2E\x34\x33\x38\x39\x2E\x37\x32\x20\x4D\x51\x51\x42\x72\x6F\x77\x73\x65\x72\x2F\x36\x2E\x32\x20\x54\x42\x53\x2F\x30\x34\x36\x30\x31\x30\x20\x4D\x6F\x62\x69\x6C\x65\x20\x53\x61\x66\x61\x72\x69\x2F\x35\x33\x37\x2E\x33\x36","\x73\x74\x72\x69\x6E\x67","\u8BF7\u52FF\u968F\u610F\u5728\x42\x6F\x78\x4A\x73\u8F93\u5165\u6846\u4FEE\u6539\u5185\u5BB9\x0A\u5EFA\u8BAE\u901A\u8FC7\u811A\u672C\u53BB\u83B7\u53D6\x63\x6F\x6F\x6B\x69\x65","\u5220\u9664","\u7248\u672C\u53F7\uFF0C\x6A\x73\u4F1A\u5B9A","\u671F\u5F39\u7A97\uFF0C","\u8FD8\u8BF7\u652F\u6301\u6211\u4EEC\u7684\u5DE5\u4F5C","\x6A\x73\x6A\x69\x61","\x6D\x69\x2E\x63\x6F\x6D"];const jdCookieNode=$[__Oxe4bd2[0x0]]()?require(__Oxe4bd2[0x1]):__Oxe4bd2[0x2];const notify=$[__Oxe4bd2[0x0]]()?require(__Oxe4bd2[0x3]):__Oxe4bd2[0x2];CryptoJS= $[__Oxe4bd2[0x0]]()?require(__Oxe4bd2[0x4]):CryptoJS;let cookiesArr=[],cookie=__Oxe4bd2[0x2];if($[__Oxe4bd2[0x0]]()){Object[__Oxe4bd2[0x7]](jdCookieNode)[__Oxe4bd2[0x6]]((_0x285ax5)=>{cookiesArr[__Oxe4bd2[0x5]](jdCookieNode[_0x285ax5])});if(process[__Oxe4bd2[0x9]][__Oxe4bd2[0x8]]&& process[__Oxe4bd2[0x9]][__Oxe4bd2[0x8]]=== __Oxe4bd2[0xa]){console[__Oxe4bd2[0xb]]= ()=>{}}}else {cookiesArr= [$[__Oxe4bd2[0xe]](__Oxe4bd2[0xd]),$[__Oxe4bd2[0xe]](__Oxe4bd2[0xf]),...jsonParse($[__Oxe4bd2[0xe]](__Oxe4bd2[0x12])|| __Oxe4bd2[0x13])[__Oxe4bd2[0x11]]((_0x285ax5)=>{return _0x285ax5[__Oxe4bd2[0x10]]})][__Oxe4bd2[0xc]]((_0x285ax5)=>{return !!_0x285ax5})};allMessage= __Oxe4bd2[0x2];message= __Oxe4bd2[0x2];$[__Oxe4bd2[0x14]]= false;$[__Oxe4bd2[0x15]]= false;$[__Oxe4bd2[0x16]]= false;let lz_jdpin_token_cookie=__Oxe4bd2[0x2];let activityCookie=__Oxe4bd2[0x2];let shareUuidArr=[__Oxe4bd2[0x17],__Oxe4bd2[0x18],__Oxe4bd2[0x19],__Oxe4bd2[0x1a],__Oxe4bd2[0x1b],__Oxe4bd2[0x1c],__Oxe4bd2[0x1d]];let s=Math[__Oxe4bd2[0x1f]]((Math[__Oxe4bd2[0x1e]]()* 3));let n=0;n= Math[__Oxe4bd2[0x1f]]((Math[__Oxe4bd2[0x1e]]()* shareUuidArr[__Oxe4bd2[0x20]]));let helpnum=shareUuidArr[n]?shareUuidArr[n]:$[__Oxe4bd2[0x21]];!(async ()=>{console[__Oxe4bd2[0xb]](__Oxe4bd2[0x26]);console[__Oxe4bd2[0xb]](__Oxe4bd2[0x27]+ helpnum);console[__Oxe4bd2[0xb]](__Oxe4bd2[0x28]);if(!cookiesArr[0x0]){$[__Oxe4bd2[0x2c]]($[__Oxe4bd2[0x29]],__Oxe4bd2[0x2a],__Oxe4bd2[0x2b],{"\x6F\x70\x65\x6E\x2D\x75\x72\x6C":__Oxe4bd2[0x2b]});return};$[__Oxe4bd2[0x2d]]= __Oxe4bd2[0x2e];$[__Oxe4bd2[0x2f]]= __Oxe4bd2[0x30];$[__Oxe4bd2[0x31]]= __Oxe4bd2[0x32];$[__Oxe4bd2[0x33]]= __Oxe4bd2[0x2];$[__Oxe4bd2[0x34]]= helpnum;for(let _0x285axd=0;_0x285axd< cookiesArr[__Oxe4bd2[0x20]];_0x285axd++){cookie= cookiesArr[_0x285axd];if(cookie){$[__Oxe4bd2[0x35]]= decodeURIComponent(cookie[__Oxe4bd2[0x36]](/pt_pin=([^; ]+)(?=;?)/)&& cookie[__Oxe4bd2[0x36]](/pt_pin=([^; ]+)(?=;?)/)[0x1]);$[__Oxe4bd2[0x37]]= _0x285axd+ 1;message= __Oxe4bd2[0x2];$[__Oxe4bd2[0x38]]= 0;$[__Oxe4bd2[0x14]]= false;$[__Oxe4bd2[0x39]]= __Oxe4bd2[0x2];console[__Oxe4bd2[0xb]](__Oxe4bd2[0x3a]+ $[__Oxe4bd2[0x37]]+ __Oxe4bd2[0x3b]+ ($[__Oxe4bd2[0x39]]|| $[__Oxe4bd2[0x35]])+ __Oxe4bd2[0x3c]);$[__Oxe4bd2[0x3d]]= await getUa(); await run();if($[__Oxe4bd2[0x15]]|| $[__Oxe4bd2[0x16]]){break}}};if($[__Oxe4bd2[0x15]]){let _0x285axe=__Oxe4bd2[0x3e];$[__Oxe4bd2[0x2c]]($[__Oxe4bd2[0x29]],`${__Oxe4bd2[0x2]}`,`${__Oxe4bd2[0x2]}${_0x285axe}${__Oxe4bd2[0x2]}`);if($[__Oxe4bd2[0x0]]()){ await notify[__Oxe4bd2[0x3f]](`${__Oxe4bd2[0x2]}${$[__Oxe4bd2[0x29]]}${__Oxe4bd2[0x2]}`,`${__Oxe4bd2[0x2]}${_0x285axe}${__Oxe4bd2[0x2]}`)}}})()[__Oxe4bd2[0x25]]((_0x285axc)=>{return $[__Oxe4bd2[0x24]](_0x285axc)})[__Oxe4bd2[0x23]](()=>{return $[__Oxe4bd2[0x22]]()});async function run(){try{$[__Oxe4bd2[0x40]]= true;$[__Oxe4bd2[0x41]]= 0;lz_jdpin_token_cookie= __Oxe4bd2[0x2];$[__Oxe4bd2[0x42]]= __Oxe4bd2[0x2];$[__Oxe4bd2[0x43]]= __Oxe4bd2[0x2];$[__Oxe4bd2[0x44]]= __Oxe4bd2[0x2];let _0x285ax10=false;if($[__Oxe4bd2[0x16]]){return};if($[__Oxe4bd2[0x15]]){console[__Oxe4bd2[0xb]](__Oxe4bd2[0x45]);return}; await takePostRequest(__Oxe4bd2[0x46]);if($[__Oxe4bd2[0x42]]== __Oxe4bd2[0x2]){console[__Oxe4bd2[0xb]](__Oxe4bd2[0x47]);return}; await takePostRequest(__Oxe4bd2[0x48]);if($[__Oxe4bd2[0x14]]){return};if($[__Oxe4bd2[0x44]]== __Oxe4bd2[0x2]){console[__Oxe4bd2[0xb]](`${__Oxe4bd2[0x49]}`);return};$[__Oxe4bd2[0x4a]]= 0; await takePostRequest(__Oxe4bd2[0x4b]); await $[__Oxe4bd2[0x4c]](500); await takePostRequest(__Oxe4bd2[0x4d]);console[__Oxe4bd2[0xb]](__Oxe4bd2[0x4e]);for(let _0x285axd=0;_0x285axd< renwulists[__Oxe4bd2[0x20]];_0x285axd++){$[__Oxe4bd2[0x4f]]= renwulists[_0x285axd][__Oxe4bd2[0x50]];if(!renwulists[_0x285axd][__Oxe4bd2[0x51]]){switch($[__Oxe4bd2[0x4f]]){case __Oxe4bd2[0x52]:;case __Oxe4bd2[0x53]:;case __Oxe4bd2[0x54]:break;case __Oxe4bd2[0x55]:for(let _0x285axd=0;_0x285axd< 3;_0x285axd++){$[__Oxe4bd2[0x4f]]= __Oxe4bd2[0x55]; await takePostRequest(__Oxe4bd2[0x56]); await $[__Oxe4bd2[0x4c]](parseInt(Math[__Oxe4bd2[0x1e]]()* 1000+ 1000,10))};break;case __Oxe4bd2[0x58]:for(let _0x285axd=0;_0x285axd< 3;_0x285axd++){ await takePostRequest(__Oxe4bd2[0x57]);$[__Oxe4bd2[0x4f]]= __Oxe4bd2[0x58]; await takePostRequest(__Oxe4bd2[0x59]); await $[__Oxe4bd2[0x4c]](parseInt(Math[__Oxe4bd2[0x1e]]()* 1000+ 1000,10))};break;case __Oxe4bd2[0x5d]:if(process[__Oxe4bd2[0x9]][__Oxe4bd2[0x5a]]&& process[__Oxe4bd2[0x9]][__Oxe4bd2[0x5a]]=== __Oxe4bd2[0x5b]){for(let _0x285axd=0;_0x285axd< 3;_0x285axd++){ await takePostRequest(__Oxe4bd2[0x5c]);$[__Oxe4bd2[0x4f]]= __Oxe4bd2[0x5d]; await takePostRequest(__Oxe4bd2[0x5e]); await $[__Oxe4bd2[0x4c]](parseInt(Math[__Oxe4bd2[0x1e]]()* 1000+ 1000,10))}}else {console[__Oxe4bd2[0xb]](`${__Oxe4bd2[0x5f]}`)};break;default: await takePostRequest(__Oxe4bd2[0x56]); await $[__Oxe4bd2[0x4c]](1000)}}};console[__Oxe4bd2[0xb]](__Oxe4bd2[0x60]); await takePostRequest(__Oxe4bd2[0x61]);for(let _0x285axd=carlist[__Oxe4bd2[0x20]]- 1;_0x285axd>= 0;_0x285axd--){if(carlist[_0x285axd][__Oxe4bd2[0x62]]== true){$[__Oxe4bd2[0x63]]= carlist[_0x285axd][__Oxe4bd2[0x63]];$[__Oxe4bd2[0x64]]= carlist[_0x285axd][__Oxe4bd2[0x65]];break}};console[__Oxe4bd2[0xb]](`${__Oxe4bd2[0x66]}${$[__Oxe4bd2[0x63]]}${__Oxe4bd2[0x2]}`);console[__Oxe4bd2[0xb]](__Oxe4bd2[0x67]);for(let _0x285axd=0;_0x285axd< $[__Oxe4bd2[0x68]];_0x285axd++){ await takePostRequest(__Oxe4bd2[0x69]); await $[__Oxe4bd2[0x4c]](parseInt(Math[__Oxe4bd2[0x1e]]()* 2000+ 5000,10)); await takePostRequest(__Oxe4bd2[0x6a]); await $[__Oxe4bd2[0x4c]](parseInt(Math[__Oxe4bd2[0x1e]]()* 2000+ 1000,10))}; await takePostRequest(__Oxe4bd2[0x6b]); await $[__Oxe4bd2[0x4c]](500); await takePostRequest(__Oxe4bd2[0x48]);console[__Oxe4bd2[0xb]](`${__Oxe4bd2[0x6c]}${$[__Oxe4bd2[0x6d]]}${__Oxe4bd2[0x2]}`); await takePostRequest(__Oxe4bd2[0x6e]);console[__Oxe4bd2[0xb]]($.MixNick);console[__Oxe4bd2[0xb]](`${__Oxe4bd2[0x6f]}${$[__Oxe4bd2[0x34]]}${__Oxe4bd2[0x2]}`);if($[__Oxe4bd2[0x37]]== 1){$[__Oxe4bd2[0x34]]= $[__Oxe4bd2[0x44]];console[__Oxe4bd2[0xb]](`${__Oxe4bd2[0x70]}${$[__Oxe4bd2[0x34]]}${__Oxe4bd2[0x2]}`)}; await $[__Oxe4bd2[0x4c]](parseInt(Math[__Oxe4bd2[0x1e]]()* 1000+ 2000,10))}catch(e){console[__Oxe4bd2[0xb]](e)}}async function takePostRequest(_0x285ax12){if($[__Oxe4bd2[0x15]]){return};let _0x285ax13=__Oxe4bd2[0x71];let _0x285ax14=`${__Oxe4bd2[0x2]}`;let _0x285ax15=__Oxe4bd2[0x72];let _0x285ax16=__Oxe4bd2[0x2];switch(_0x285ax12){case __Oxe4bd2[0x46]:url= `${__Oxe4bd2[0x73]}`;_0x285ax14= `${__Oxe4bd2[0x74]}`;break;case __Oxe4bd2[0x48]:url= `${__Oxe4bd2[0x2]}${_0x285ax13}${__Oxe4bd2[0x75]}${$[__Oxe4bd2[0x44]]|| $[__Oxe4bd2[0x33]]|| __Oxe4bd2[0x2]}${__Oxe4bd2[0x76]}${$[__Oxe4bd2[0x2f]]}${__Oxe4bd2[0x2]}`;_0x285ax16= {"\x6A\x64\x54\x6F\x6B\x65\x6E":$[__Oxe4bd2[0x42]],"\x69\x6E\x76\x69\x74\x65\x4E\x69\x63\x6B":($[__Oxe4bd2[0x34]]|| __Oxe4bd2[0x2])};if($[__Oxe4bd2[0x77]]){_0x285ax16= {..._0x285ax16,"\x73\x68\x6F\x70\x49\x64":`${__Oxe4bd2[0x2]}${$[__Oxe4bd2[0x77]]}${__Oxe4bd2[0x2]}`}};_0x285ax14= taskPostUrl(__Oxe4bd2[0x78],_0x285ax16);break;case __Oxe4bd2[0x4d]:url= `${__Oxe4bd2[0x2]}${_0x285ax13}${__Oxe4bd2[0x79]}${$[__Oxe4bd2[0x44]]|| $[__Oxe4bd2[0x33]]|| __Oxe4bd2[0x2]}${__Oxe4bd2[0x2]}`;_0x285ax16= {};_0x285ax14= taskPostUrl(__Oxe4bd2[0x7a],_0x285ax16);break;case __Oxe4bd2[0x4b]:url= `${__Oxe4bd2[0x2]}${_0x285ax13}${__Oxe4bd2[0x7b]}${$[__Oxe4bd2[0x44]]|| $[__Oxe4bd2[0x33]]|| __Oxe4bd2[0x2]}${__Oxe4bd2[0x2]}`;_0x285ax16= {"\x6D\x69\x73\x73\x69\x6F\x6E\x54\x79\x70\x65":__Oxe4bd2[0x54],"\x69\x6E\x76\x69\x74\x65\x72\x4E\x69\x63\x6B":($[__Oxe4bd2[0x34]]|| __Oxe4bd2[0x2])};_0x285ax14= taskPostUrl(__Oxe4bd2[0x7a],_0x285ax16);break;case __Oxe4bd2[0x6b]:url= `${__Oxe4bd2[0x2]}${_0x285ax13}${__Oxe4bd2[0x7b]}${$[__Oxe4bd2[0x44]]|| $[__Oxe4bd2[0x33]]|| __Oxe4bd2[0x2]}${__Oxe4bd2[0x2]}`;_0x285ax16= {"\x6D\x69\x73\x73\x69\x6F\x6E\x54\x79\x70\x65":__Oxe4bd2[0x54],"\x69\x6E\x76\x69\x74\x65\x72\x4E\x69\x63\x6B":($[__Oxe4bd2[0x34]]|| __Oxe4bd2[0x2]),"\x75\x73\x65\x72\x49\x64":10299171};_0x285ax14= taskPostUrl(__Oxe4bd2[0x7c],_0x285ax16);break;case __Oxe4bd2[0x59]:url= `${__Oxe4bd2[0x2]}${_0x285ax13}${__Oxe4bd2[0x7b]}${$[__Oxe4bd2[0x44]]|| $[__Oxe4bd2[0x33]]|| __Oxe4bd2[0x2]}${__Oxe4bd2[0x2]}`;_0x285ax16= {"\x6D\x69\x73\x73\x69\x6F\x6E\x54\x79\x70\x65":$[__Oxe4bd2[0x4f]],"\x75\x73\x65\x72\x49\x64":10299171,"\x73\x68\x6F\x70\x49\x64":$[__Oxe4bd2[0x7d]],"\x62\x75\x79\x65\x72\x4E\x69\x63\x6B":($[__Oxe4bd2[0x34]]|| __Oxe4bd2[0x2])};_0x285ax14= taskPostUrl(__Oxe4bd2[0x7c],_0x285ax16);break;case __Oxe4bd2[0x5e]:url= `${__Oxe4bd2[0x2]}${_0x285ax13}${__Oxe4bd2[0x7b]}${$[__Oxe4bd2[0x44]]|| $[__Oxe4bd2[0x33]]|| __Oxe4bd2[0x2]}${__Oxe4bd2[0x2]}`;_0x285ax16= {"\x6D\x69\x73\x73\x69\x6F\x6E\x54\x79\x70\x65":$[__Oxe4bd2[0x4f]],"\x75\x73\x65\x72\x49\x64":10299171,"\x67\x6F\x6F\x64\x73\x4E\x75\x6D\x49\x64":$[__Oxe4bd2[0x7e]],"\x62\x75\x79\x65\x72\x4E\x69\x63\x6B":($[__Oxe4bd2[0x34]]|| __Oxe4bd2[0x2])};_0x285ax14= taskPostUrl(__Oxe4bd2[0x7c],_0x285ax16);break;case __Oxe4bd2[0x57]:url= `${__Oxe4bd2[0x2]}${_0x285ax13}${__Oxe4bd2[0x7f]}${$[__Oxe4bd2[0x44]]|| $[__Oxe4bd2[0x33]]|| __Oxe4bd2[0x2]}${__Oxe4bd2[0x2]}`;_0x285ax16= {};_0x285ax14= taskPostUrl(__Oxe4bd2[0x80],_0x285ax16);break;case __Oxe4bd2[0x5c]:url= `${__Oxe4bd2[0x2]}${_0x285ax13}${__Oxe4bd2[0x81]}${$[__Oxe4bd2[0x44]]|| $[__Oxe4bd2[0x33]]|| __Oxe4bd2[0x2]}${__Oxe4bd2[0x2]}`;_0x285ax16= {};_0x285ax14= taskPostUrl(__Oxe4bd2[0x80],_0x285ax16);break;case __Oxe4bd2[0x61]:url= `${__Oxe4bd2[0x2]}${_0x285ax13}${__Oxe4bd2[0x82]}${$[__Oxe4bd2[0x44]]|| $[__Oxe4bd2[0x33]]|| __Oxe4bd2[0x2]}${__Oxe4bd2[0x2]}`;_0x285ax16= {};_0x285ax14= taskPostUrl(__Oxe4bd2[0x80],_0x285ax16);break;case __Oxe4bd2[0x56]:url= `${__Oxe4bd2[0x2]}${_0x285ax13}${__Oxe4bd2[0x7b]}${$[__Oxe4bd2[0x44]]|| $[__Oxe4bd2[0x33]]|| __Oxe4bd2[0x2]}${__Oxe4bd2[0x2]}`;_0x285ax16= {"\x61\x63\x74\x49\x64":$[__Oxe4bd2[0x31]],"\x6D\x69\x73\x73\x69\x6F\x6E\x54\x79\x70\x65":$[__Oxe4bd2[0x4f]]};_0x285ax14= taskPostUrl(__Oxe4bd2[0x7c],_0x285ax16);break;case __Oxe4bd2[0x69]:url= `${__Oxe4bd2[0x2]}${_0x285ax13}${__Oxe4bd2[0x83]}${$[__Oxe4bd2[0x44]]|| $[__Oxe4bd2[0x33]]|| __Oxe4bd2[0x2]}${__Oxe4bd2[0x2]}`;_0x285ax16= {"\x61\x63\x74\x49\x64":$[__Oxe4bd2[0x31]],"\x63\x61\x72\x49\x64":$[__Oxe4bd2[0x64]],"\x63\x61\x72\x4E\x61\x6D\x65":$[__Oxe4bd2[0x63]],"\x75\x73\x65\x72\x49\x64":10299171,"\x62\x75\x79\x65\x72\x4E\x69\x63\x6B":($[__Oxe4bd2[0x34]]|| __Oxe4bd2[0x2])};_0x285ax14= taskPostUrl(__Oxe4bd2[0x84],_0x285ax16);break;case __Oxe4bd2[0x6a]:url= `${__Oxe4bd2[0x2]}${_0x285ax13}${__Oxe4bd2[0x85]}${$[__Oxe4bd2[0x44]]|| $[__Oxe4bd2[0x33]]|| __Oxe4bd2[0x2]}${__Oxe4bd2[0x2]}`;$[__Oxe4bd2[0x86]]= random(400,600);_0x285ax16= {"\x61\x63\x74\x49\x64":$[__Oxe4bd2[0x31]],"\x70\x6F\x69\x6E\x74":$[__Oxe4bd2[0x86]],"\x67\x61\x6D\x65\x4C\x6F\x67\x49\x64":$[__Oxe4bd2[0x87]],"\x75\x73\x65\x72\x49\x64":10299171,"\x62\x75\x79\x65\x72\x4E\x69\x63\x6B":($[__Oxe4bd2[0x34]]|| __Oxe4bd2[0x2])};_0x285ax14= taskPostUrl(__Oxe4bd2[0x88],_0x285ax16);break;case __Oxe4bd2[0x6e]:url= `${__Oxe4bd2[0x2]}${_0x285ax13}${__Oxe4bd2[0x89]}${$[__Oxe4bd2[0x44]]|| $[__Oxe4bd2[0x33]]|| __Oxe4bd2[0x2]}${__Oxe4bd2[0x2]}`;_0x285ax16= {"\x61\x63\x74\x49\x64":$[__Oxe4bd2[0x31]],"\x75\x73\x65\x72\x49\x64":10299171,"\x6D\x69\x73\x73\x69\x6F\x6E\x54\x79\x70\x65":__Oxe4bd2[0x54],"\x69\x6E\x76\x69\x74\x65\x4E\x75\x6D":1,"\x62\x75\x79\x65\x72\x4E\x69\x63\x6B":($[__Oxe4bd2[0x44]]|| __Oxe4bd2[0x2])};_0x285ax14= taskPostUrl(__Oxe4bd2[0x8a],_0x285ax16);break;default:console[__Oxe4bd2[0xb]](`${__Oxe4bd2[0x8b]}${_0x285ax12}${__Oxe4bd2[0x2]}`)};let _0x285ax17=getPostRequest(url,_0x285ax14,_0x285ax15);return new Promise(async (_0x285ax18)=>{$[__Oxe4bd2[0x8f]](_0x285ax17,(_0x285ax19,_0x285ax1a,_0x285ax1b)=>{try{if(_0x285ax19){if(_0x285ax1a&& _0x285ax1a[__Oxe4bd2[0x8c]]&& _0x285ax1a[__Oxe4bd2[0x8c]]== 493){console[__Oxe4bd2[0xb]](__Oxe4bd2[0x45]);$[__Oxe4bd2[0x15]]= true};console[__Oxe4bd2[0xb]](`${__Oxe4bd2[0x2]}${$[__Oxe4bd2[0x8d]](_0x285ax19,_0x285ax19)}${__Oxe4bd2[0x2]}`);console[__Oxe4bd2[0xb]](`${__Oxe4bd2[0x2]}${_0x285ax12}${__Oxe4bd2[0x8e]}`)}else {dealReturn(_0x285ax12,_0x285ax1b)}}catch(e){console[__Oxe4bd2[0xb]](e,_0x285ax1a)}finally{_0x285ax18()}})})}async function dealReturn(_0x285ax12,_0x285ax1b){let _0x285ax1d=__Oxe4bd2[0x2];try{if(_0x285ax12!= __Oxe4bd2[0x90]|| _0x285ax12!= __Oxe4bd2[0x91]){if(_0x285ax1b){_0x285ax1d= JSON[__Oxe4bd2[0x92]](_0x285ax1b)}}}catch(e){console[__Oxe4bd2[0xb]](`${__Oxe4bd2[0x2]}${_0x285ax12}${__Oxe4bd2[0x93]}`);console[__Oxe4bd2[0xb]](_0x285ax1b);$[__Oxe4bd2[0x94]]= false};try{let _0x285ax1e=__Oxe4bd2[0x2];switch(_0x285ax12){case __Oxe4bd2[0x46]:if( typeof _0x285ax1d== __Oxe4bd2[0x95]){if(_0x285ax1d[__Oxe4bd2[0x96]]== 0){if( typeof _0x285ax1d[__Oxe4bd2[0x97]]!= __Oxe4bd2[0x98]){$[__Oxe4bd2[0x42]]= _0x285ax1d[__Oxe4bd2[0x97]]}}else {if(_0x285ax1d[__Oxe4bd2[0x99]]){console[__Oxe4bd2[0xb]](`${__Oxe4bd2[0x2]}${_0x285ax12}${__Oxe4bd2[0x9a]}${_0x285ax1d[__Oxe4bd2[0x99]]|| __Oxe4bd2[0x2]}${__Oxe4bd2[0x2]}`)}else {console[__Oxe4bd2[0xb]](_0x285ax1b)}}}else {console[__Oxe4bd2[0xb]](_0x285ax1b)};break;case __Oxe4bd2[0x57]:if( typeof _0x285ax1d== __Oxe4bd2[0x95]){if(_0x285ax1d[__Oxe4bd2[0x9b]]&& _0x285ax1d[__Oxe4bd2[0x9b]]=== true&& _0x285ax1d[__Oxe4bd2[0x9c]]){if(_0x285ax1d[__Oxe4bd2[0x9c]][__Oxe4bd2[0x9d]]&& _0x285ax1d[__Oxe4bd2[0x9c]][__Oxe4bd2[0x9d]]== 200){$[__Oxe4bd2[0x7d]]= _0x285ax1d[__Oxe4bd2[0x9c]][__Oxe4bd2[0x9c]][__Oxe4bd2[0x9e]][__Oxe4bd2[0x2f]]}}else {if(_0x285ax1d[__Oxe4bd2[0x99]]){console[__Oxe4bd2[0xb]](`${__Oxe4bd2[0x2]}${_0x285ax12}${__Oxe4bd2[0x9a]}${_0x285ax1d[__Oxe4bd2[0x99]]|| __Oxe4bd2[0x2]}${__Oxe4bd2[0x2]}`)}else {console[__Oxe4bd2[0xb]](_0x285ax1b)}}}else {console[__Oxe4bd2[0xb]](_0x285ax1b)};break;case __Oxe4bd2[0x5c]:if( typeof _0x285ax1d== __Oxe4bd2[0x95]){if(_0x285ax1d[__Oxe4bd2[0x9b]]&& _0x285ax1d[__Oxe4bd2[0x9b]]=== true&& _0x285ax1d[__Oxe4bd2[0x9c]]){if(_0x285ax1d[__Oxe4bd2[0x9c]][__Oxe4bd2[0x9d]]&& _0x285ax1d[__Oxe4bd2[0x9c]][__Oxe4bd2[0x9d]]== 200){$[__Oxe4bd2[0x7e]]= _0x285ax1d[__Oxe4bd2[0x9c]][__Oxe4bd2[0x9c]][__Oxe4bd2[0xa0]][__Oxe4bd2[0x9f]]}}else {if(_0x285ax1d[__Oxe4bd2[0x99]]){console[__Oxe4bd2[0xb]](`${__Oxe4bd2[0x2]}${_0x285ax12}${__Oxe4bd2[0x9a]}${_0x285ax1d[__Oxe4bd2[0x99]]|| __Oxe4bd2[0x2]}${__Oxe4bd2[0x2]}`)}else {console[__Oxe4bd2[0xb]](_0x285ax1b)}}}else {console[__Oxe4bd2[0xb]](_0x285ax1b)};break;case __Oxe4bd2[0x4d]:if( typeof _0x285ax1d== __Oxe4bd2[0x95]){if(_0x285ax1d[__Oxe4bd2[0x9b]]&& _0x285ax1d[__Oxe4bd2[0x9b]]=== true&& _0x285ax1d[__Oxe4bd2[0x9c]]){if(_0x285ax1d[__Oxe4bd2[0x9c]][__Oxe4bd2[0x9d]]&& _0x285ax1d[__Oxe4bd2[0x9c]][__Oxe4bd2[0x9d]]== 200){renwulists= _0x285ax1d[__Oxe4bd2[0x9c]][__Oxe4bd2[0x9c]]|| []}}else {if(_0x285ax1d[__Oxe4bd2[0x99]]){console[__Oxe4bd2[0xb]](`${__Oxe4bd2[0x2]}${_0x285ax12}${__Oxe4bd2[0x9a]}${_0x285ax1d[__Oxe4bd2[0x99]]|| __Oxe4bd2[0x2]}${__Oxe4bd2[0x2]}`)}else {console[__Oxe4bd2[0xb]](_0x285ax1b)}}}else {console[__Oxe4bd2[0xb]](_0x285ax1b)};break;case __Oxe4bd2[0x61]:if( typeof _0x285ax1d== __Oxe4bd2[0x95]){if(_0x285ax1d[__Oxe4bd2[0x9b]]&& _0x285ax1d[__Oxe4bd2[0x9b]]=== true&& _0x285ax1d[__Oxe4bd2[0x9c]]){if(_0x285ax1d[__Oxe4bd2[0x9c]][__Oxe4bd2[0x9d]]&& _0x285ax1d[__Oxe4bd2[0x9c]][__Oxe4bd2[0x9d]]== 200){carlist= _0x285ax1d[__Oxe4bd2[0x9c]][__Oxe4bd2[0x9c]]|| []}}else {if(_0x285ax1d[__Oxe4bd2[0x99]]){console[__Oxe4bd2[0xb]](`${__Oxe4bd2[0x2]}${_0x285ax12}${__Oxe4bd2[0x9a]}${_0x285ax1d[__Oxe4bd2[0x99]]|| __Oxe4bd2[0x2]}${__Oxe4bd2[0x2]}`)}else {console[__Oxe4bd2[0xb]](_0x285ax1b)}}}else {console[__Oxe4bd2[0xb]](_0x285ax1b)};break;case __Oxe4bd2[0x69]:if( typeof _0x285ax1d== __Oxe4bd2[0x95]){if(_0x285ax1d[__Oxe4bd2[0x9b]]&& _0x285ax1d[__Oxe4bd2[0x9b]]=== true&& _0x285ax1d[__Oxe4bd2[0x9c]]){if(_0x285ax1d[__Oxe4bd2[0x9c]][__Oxe4bd2[0x9d]]&& _0x285ax1d[__Oxe4bd2[0x9c]][__Oxe4bd2[0x9d]]== 200){$[__Oxe4bd2[0x87]]= _0x285ax1d[__Oxe4bd2[0x9c]][__Oxe4bd2[0x9c]][__Oxe4bd2[0x87]];console[__Oxe4bd2[0xb]](`${__Oxe4bd2[0xa1]}${$[__Oxe4bd2[0x87]]}${__Oxe4bd2[0x2]}`)}}else {if(_0x285ax1d[__Oxe4bd2[0x99]]){console[__Oxe4bd2[0xb]](`${__Oxe4bd2[0x2]}${_0x285ax12}${__Oxe4bd2[0x9a]}${_0x285ax1d[__Oxe4bd2[0x99]]|| __Oxe4bd2[0x2]}${__Oxe4bd2[0x2]}`)}else {console[__Oxe4bd2[0xb]](_0x285ax1b)}}}else {console[__Oxe4bd2[0xb]](_0x285ax1b)};break;case __Oxe4bd2[0x6a]:if( typeof _0x285ax1d== __Oxe4bd2[0x95]){if(_0x285ax1d[__Oxe4bd2[0x9b]]&& _0x285ax1d[__Oxe4bd2[0x9c]]){console[__Oxe4bd2[0xb]](`${__Oxe4bd2[0xa2]}${_0x285ax1d[__Oxe4bd2[0x9c]][__Oxe4bd2[0x9c]][__Oxe4bd2[0x6d]]}${__Oxe4bd2[0x2]}`)}else {if(_0x285ax1d[__Oxe4bd2[0x99]]){console[__Oxe4bd2[0xb]](`${__Oxe4bd2[0x2]}${_0x285ax12}${__Oxe4bd2[0x9a]}${_0x285ax1d[__Oxe4bd2[0x99]]|| __Oxe4bd2[0x2]}${__Oxe4bd2[0x2]}`)}else {console[__Oxe4bd2[0xb]](_0x285ax1b)}}}else {console[__Oxe4bd2[0xb]](_0x285ax1b)};break;case __Oxe4bd2[0x90]:;case __Oxe4bd2[0x91]:break;case __Oxe4bd2[0x48]:;case __Oxe4bd2[0xa3]:;case __Oxe4bd2[0xa4]:;case __Oxe4bd2[0xa5]:;case __Oxe4bd2[0x56]:;case __Oxe4bd2[0x5d]:;case __Oxe4bd2[0xa6]:;case __Oxe4bd2[0x6e]:;case __Oxe4bd2[0x59]:;case __Oxe4bd2[0x5e]:;case __Oxe4bd2[0x4b]:;case __Oxe4bd2[0x6b]:;case __Oxe4bd2[0xb7]:_0x285ax1e= __Oxe4bd2[0x2];if(_0x285ax12== __Oxe4bd2[0xa5]){_0x285ax1e= __Oxe4bd2[0x59]};if(_0x285ax12== __Oxe4bd2[0x5d]){_0x285ax1e= __Oxe4bd2[0x5e]};if( typeof _0x285ax1d== __Oxe4bd2[0x95]){if(_0x285ax1d[__Oxe4bd2[0x9b]]&& _0x285ax1d[__Oxe4bd2[0x9b]]=== true&& _0x285ax1d[__Oxe4bd2[0x9c]]){if(_0x285ax1d[__Oxe4bd2[0x9c]][__Oxe4bd2[0x9d]]&& _0x285ax1d[__Oxe4bd2[0x9c]][__Oxe4bd2[0x9d]]== 200){_0x285ax1d= _0x285ax1d[__Oxe4bd2[0x9c]];if(_0x285ax12!= __Oxe4bd2[0xa4]&& (_0x285ax1d[__Oxe4bd2[0x2c]]|| _0x285ax1d[__Oxe4bd2[0x9c]][__Oxe4bd2[0xa7]]|| _0x285ax1d[__Oxe4bd2[0x9c]][__Oxe4bd2[0xa8]])){console[__Oxe4bd2[0xb]](`${__Oxe4bd2[0x2]}${_0x285ax1e&& _0x285ax1e+ __Oxe4bd2[0xa9]|| __Oxe4bd2[0x2]}${__Oxe4bd2[0x2]}${_0x285ax1d[__Oxe4bd2[0x2c]]|| _0x285ax1d[__Oxe4bd2[0x9c]][__Oxe4bd2[0xa7]]|| _0x285ax1d[__Oxe4bd2[0x9c]][__Oxe4bd2[0xa8]]|| __Oxe4bd2[0x2]}${__Oxe4bd2[0x2]}`)};if(_0x285ax12== __Oxe4bd2[0x48]){if(_0x285ax1d[__Oxe4bd2[0x9c]]){$[__Oxe4bd2[0x41]]= _0x285ax1d[__Oxe4bd2[0x9c]][__Oxe4bd2[0xaa]][__Oxe4bd2[0x41]]|| 0;$[__Oxe4bd2[0x44]]= _0x285ax1d[__Oxe4bd2[0x9c]][__Oxe4bd2[0xac]][__Oxe4bd2[0xab]]|| __Oxe4bd2[0x2];$[__Oxe4bd2[0xad]]= _0x285ax1d[__Oxe4bd2[0x9c]][__Oxe4bd2[0xac]][__Oxe4bd2[0xad]]|| 0;$[__Oxe4bd2[0x6d]]= _0x285ax1d[__Oxe4bd2[0x9c]][__Oxe4bd2[0xac]][__Oxe4bd2[0x6d]]|| 0;$[__Oxe4bd2[0x68]]= _0x285ax1d[__Oxe4bd2[0x9c]][__Oxe4bd2[0xac]][__Oxe4bd2[0x68]]|| 0}}else {if(_0x285ax12== __Oxe4bd2[0x4d]){$[__Oxe4bd2[0xae]]= _0x285ax1d[__Oxe4bd2[0x9c]][__Oxe4bd2[0xaf]]|| [];renwulists= _0x285ax1d[__Oxe4bd2[0x9c]][__Oxe4bd2[0x9c]]|| []}else {if(_0x285ax12== __Oxe4bd2[0x6e]){console[__Oxe4bd2[0xb]](`${__Oxe4bd2[0xb0]}${_0x285ax1d[__Oxe4bd2[0x9c]][__Oxe4bd2[0xb1]]}${__Oxe4bd2[0xb2]}`)}}}}else {if(_0x285ax1d[__Oxe4bd2[0x9c]][__Oxe4bd2[0x2c]]){if(_0x285ax1d[__Oxe4bd2[0xb5]][__Oxe4bd2[0xb4]](__Oxe4bd2[0xb3])> -1){$[__Oxe4bd2[0x16]]= true};console[__Oxe4bd2[0xb]](`${__Oxe4bd2[0x2]}${_0x285ax1d[__Oxe4bd2[0x9c]][__Oxe4bd2[0x2c]]|| __Oxe4bd2[0x2]}${__Oxe4bd2[0x2]}`)}else {if(_0x285ax1d[__Oxe4bd2[0xb5]]){if(_0x285ax1d[__Oxe4bd2[0xb5]][__Oxe4bd2[0xb4]](__Oxe4bd2[0xb6])> -1){};console[__Oxe4bd2[0xb]](`${__Oxe4bd2[0x2]}${_0x285ax1d[__Oxe4bd2[0xb5]]|| __Oxe4bd2[0x2]}${__Oxe4bd2[0x2]}`)}else {console[__Oxe4bd2[0xb]](`${__Oxe4bd2[0x2]}${_0x285ax1b}${__Oxe4bd2[0x2]}`)}}}}else {if(_0x285ax1d[__Oxe4bd2[0xb5]]){console[__Oxe4bd2[0xb]](`${__Oxe4bd2[0x2]}${_0x285ax1d[__Oxe4bd2[0xb5]]|| __Oxe4bd2[0x2]}${__Oxe4bd2[0x2]}`)}else {console[__Oxe4bd2[0xb]](`${__Oxe4bd2[0x2]}${_0x285ax1b}${__Oxe4bd2[0x2]}`)}}}else {console[__Oxe4bd2[0xb]](`${__Oxe4bd2[0x2]}${_0x285ax1b}${__Oxe4bd2[0x2]}`)};break;default:console[__Oxe4bd2[0xb]](`${__Oxe4bd2[0x2]}${_0x285ax1b}${__Oxe4bd2[0x2]}`)};if( typeof _0x285ax1d== __Oxe4bd2[0x95]){if(_0x285ax1d[__Oxe4bd2[0xb5]]){if(_0x285ax1d[__Oxe4bd2[0xb5]][__Oxe4bd2[0xb4]](__Oxe4bd2[0xb6])> -1){}}}}catch(e){}}function getPostRequest(_0x285ax20,_0x285ax14,_0x285ax15= __Oxe4bd2[0x72]){let _0x285ax21={"\x41\x63\x63\x65\x70\x74":__Oxe4bd2[0xb8],"\x41\x63\x63\x65\x70\x74\x2D\x45\x6E\x63\x6F\x64\x69\x6E\x67":__Oxe4bd2[0xb9],"\x41\x63\x63\x65\x70\x74\x2D\x4C\x61\x6E\x67\x75\x61\x67\x65":__Oxe4bd2[0xba],"\x43\x6F\x6E\x6E\x65\x63\x74\x69\x6F\x6E":__Oxe4bd2[0xbb],"\x43\x6F\x6E\x74\x65\x6E\x74\x2D\x54\x79\x70\x65":__Oxe4bd2[0xbc],"\x43\x6F\x6F\x6B\x69\x65":cookie,"\x55\x73\x65\x72\x2D\x41\x67\x65\x6E\x74":$[__Oxe4bd2[0x3d]],"\x58\x2D\x52\x65\x71\x75\x65\x73\x74\x65\x64\x2D\x57\x69\x74\x68":__Oxe4bd2[0xbd]};if(_0x285ax20[__Oxe4bd2[0xb4]](__Oxe4bd2[0x71])> -1){_0x285ax21[__Oxe4bd2[0xbe]]= __Oxe4bd2[0x71];_0x285ax21[__Oxe4bd2[0xbf]]= __Oxe4bd2[0xc0];_0x285ax21[__Oxe4bd2[0xc1]]= __Oxe4bd2[0xc2];delete _0x285ax21[__Oxe4bd2[0xc3]]};return {url:_0x285ax20,method:_0x285ax15,headers:_0x285ax21,body:_0x285ax14,timeout:60000}}function taskPostUrl(_0x285ax20,_0x285ax23){d= {actId:$[__Oxe4bd2[0x31]],..._0x285ax23,"\x6D\x65\x74\x68\x6F\x64":_0x285ax20,userId:$[__Oxe4bd2[0x2f]],"\x62\x75\x79\x65\x72\x4E\x69\x63\x6B":($[__Oxe4bd2[0x44]]|| __Oxe4bd2[0x2])};sign2= mpdzSign(d);const _0x285ax24={"\x6A\x73\x6F\x6E\x52\x70\x63":__Oxe4bd2[0xc4],"\x70\x61\x72\x61\x6D\x73":{"\x63\x6F\x6D\x6D\x6F\x6E\x50\x61\x72\x61\x6D\x65\x74\x65\x72":{"\x61\x70\x70\x6B\x65\x79":$[__Oxe4bd2[0x2d]],"\x6D":__Oxe4bd2[0x72],"\x73\x69\x67\x6E":sign2[__Oxe4bd2[0xc5]],"\x74\x69\x6D\x65\x73\x74\x61\x6D\x70":sign2[__Oxe4bd2[0xc6]],userId:$[__Oxe4bd2[0x2f]]},"\x61\x64\x6D\x4A\x73\x6F\x6E":{actId:$[__Oxe4bd2[0x31]],..._0x285ax23,"\x6D\x65\x74\x68\x6F\x64":_0x285ax20,userId:$[__Oxe4bd2[0x2f]],"\x62\x75\x79\x65\x72\x4E\x69\x63\x6B":($[__Oxe4bd2[0x44]]|| __Oxe4bd2[0x2])}}};if(_0x285ax20[__Oxe4bd2[0xb4]](__Oxe4bd2[0x6e])> -1){delete _0x285ax24[__Oxe4bd2[0xc8]][__Oxe4bd2[0xc7]][__Oxe4bd2[0x31]]};return $[__Oxe4bd2[0x8d]](_0x285ax24,_0x285ax24)}function random(_0x285ax26,_0x285ax27){return Math[__Oxe4bd2[0x1f]](Math[__Oxe4bd2[0x1e]]()* (_0x285ax27- _0x285ax26))+ _0x285ax26}function mpdzSign(_0x285ax29){AppSecret= __Oxe4bd2[0xc9];key= 25747717;time2= ( new Date).valueOf();s2= encodeURIComponent(JSON[__Oxe4bd2[0xca]](_0x285ax29));c= new RegExp(__Oxe4bd2[0xcb],__Oxe4bd2[0xcc]);A= new RegExp(__Oxe4bd2[0xcd],__Oxe4bd2[0xcc]);s2= s2[__Oxe4bd2[0xcf]](c,__Oxe4bd2[0xce]);s2= s2[__Oxe4bd2[0xcf]](A,__Oxe4bd2[0xd0]);signBody= key+ __Oxe4bd2[0xd1]+ key+ __Oxe4bd2[0xc7]+ s2+ __Oxe4bd2[0xd2]+ time2+ AppSecret;sign= CryptoJS.MD5(signBody[__Oxe4bd2[0xd3]]()).toString();return {sign,timeStamp:time2}}async function getUa(){id= CryptoJS.MD5(Date[__Oxe4bd2[0xd5]]()).toString()[__Oxe4bd2[0xd4]](0,16);CryptoJS[__Oxe4bd2[0xd8]][__Oxe4bd2[0xd7]][__Oxe4bd2[0xd6]]= __Oxe4bd2[0xd9];const _0x285ax2b=CryptoJS[__Oxe4bd2[0xd8]][__Oxe4bd2[0xda]][__Oxe4bd2[0x92]](id);const _0x285ax2c=CryptoJS[__Oxe4bd2[0xd8]][__Oxe4bd2[0xd7]][__Oxe4bd2[0xca]](_0x285ax2b);ep= encodeURIComponent(JSON[__Oxe4bd2[0xca]]({"\x68\x64\x69\x64":__Oxe4bd2[0xdb],"\x74\x73":( new Date)[__Oxe4bd2[0xdc]](),"\x72\x69\x64\x78":-1,"\x63\x69\x70\x68\x65\x72":{"\x73\x76":__Oxe4bd2[0xdd],"\x61\x64":_0x285ax2c,"\x6F\x64":__Oxe4bd2[0x2],"\x6F\x76":__Oxe4bd2[0xde],"\x75\x64":_0x285ax2c},"\x63\x69\x70\x68\x65\x72\x74\x79\x70\x65":5,"\x76\x65\x72\x73\x69\x6F\x6E":__Oxe4bd2[0xdf],"\x61\x70\x70\x6E\x61\x6D\x65":__Oxe4bd2[0xe0]}));return `${__Oxe4bd2[0xe1]}${ep}${__Oxe4bd2[0xe2]}`}function jsonParse(_0x285ax2e){if( typeof _0x285ax2e== __Oxe4bd2[0xe3]){try{return JSON[__Oxe4bd2[0x92]](_0x285ax2e)}catch(e){console[__Oxe4bd2[0xb]](e);$[__Oxe4bd2[0x2c]]($[__Oxe4bd2[0x29]],__Oxe4bd2[0x2],__Oxe4bd2[0xe4]);return []}}}(function(_0x285ax24,_0x285ax2f,_0x285ax30,_0x285ax31,_0x285ax32,_0x285ax33){_0x285ax33= __Oxe4bd2[0x98];_0x285ax31= function(_0x285ax34){if( typeof alert!== _0x285ax33){alert(_0x285ax34)};if( typeof console!== _0x285ax33){console[__Oxe4bd2[0xb]](_0x285ax34)}};_0x285ax30= function(_0x285ax35,_0x285ax24){return _0x285ax35+ _0x285ax24};_0x285ax32= _0x285ax30(__Oxe4bd2[0xe5],_0x285ax30(_0x285ax30(__Oxe4bd2[0xe6],__Oxe4bd2[0xe7]),__Oxe4bd2[0xe8]));try{_0x285ax24= __encode;if(!( typeof _0x285ax24!== _0x285ax33&& _0x285ax24=== _0x285ax30(__Oxe4bd2[0xe9],__Oxe4bd2[0xea]))){_0x285ax31(_0x285ax32)}}catch(e){_0x285ax31(_0x285ax32)}})({}) +// prettier-ignore +function Env(t, e) { "undefined" != typeof process && JSON.stringify(process.env).indexOf("GITHUB") > -1 && process.exit(0); class s { constructor(t) { this.env = t } send(t, e = "GET") { t = "string" == typeof t ? { url: t } : t; let s = this.get; return "POST" === e && (s = this.post), new Promise((e, i) => { s.call(this, t, (t, s, r) => { t ? i(t) : e(s) }) }) } get(t) { return this.send.call(this.env, t) } post(t) { return this.send.call(this.env, t, "POST") } } return new class { constructor(t, e) { this.name = t, this.http = new s(this), this.data = null, this.dataFile = "box.dat", this.logs = [], this.isMute = !1, this.isNeedRewrite = !1, this.logSeparator = "\n", this.startTime = (new Date).getTime(), Object.assign(this, e), this.log("", `🔔${this.name}, 开始!`) } isNode() { return "undefined" != typeof module && !!module.exports } isQuanX() { return "undefined" != typeof $task } isSurge() { return "undefined" != typeof $httpClient && "undefined" == typeof $loon } isLoon() { return "undefined" != typeof $loon } toObj(t, e = null) { try { return JSON.parse(t) } catch { return e } } toStr(t, e = null) { try { return JSON.stringify(t) } catch { return e } } getjson(t, e) { let s = e; const i = this.getdata(t); if (i) try { s = JSON.parse(this.getdata(t)) } catch { } return s } setjson(t, e) { try { return this.setdata(JSON.stringify(t), e) } catch { return !1 } } getScript(t) { return new Promise(e => { this.get({ url: t }, (t, s, i) => e(i)) }) } runScript(t, e) { return new Promise(s => { let i = this.getdata("@chavy_boxjs_userCfgs.httpapi"); i = i ? i.replace(/\n/g, "").trim() : i; let r = this.getdata("@chavy_boxjs_userCfgs.httpapi_timeout"); r = r ? 1 * r : 20, r = e && e.timeout ? e.timeout : r; const [o, h] = i.split("@"), n = { url: `http://${h}/v1/scripting/evaluate`, body: { script_text: t, mock_type: "cron", timeout: r }, headers: { "X-Key": o, Accept: "*/*" } }; this.post(n, (t, e, i) => s(i)) }).catch(t => this.logErr(t)) } loaddata() { if (!this.isNode()) return {}; { this.fs = this.fs ? this.fs : require("fs"), this.path = this.path ? this.path : require("path"); const t = this.path.resolve(this.dataFile), e = this.path.resolve(process.cwd(), this.dataFile), s = this.fs.existsSync(t), i = !s && this.fs.existsSync(e); if (!s && !i) return {}; { const i = s ? t : e; try { return JSON.parse(this.fs.readFileSync(i)) } catch (t) { return {} } } } } writedata() { if (this.isNode()) { this.fs = this.fs ? this.fs : require("fs"), this.path = this.path ? this.path : require("path"); const t = this.path.resolve(this.dataFile), e = this.path.resolve(process.cwd(), this.dataFile), s = this.fs.existsSync(t), i = !s && this.fs.existsSync(e), r = JSON.stringify(this.data); s ? this.fs.writeFileSync(t, r) : i ? this.fs.writeFileSync(e, r) : this.fs.writeFileSync(t, r) } } lodash_get(t, e, s) { const i = e.replace(/\[(\d+)\]/g, ".$1").split("."); let r = t; for (const t of i) if (r = Object(r)[t], void 0 === r) return s; return r } lodash_set(t, e, s) { return Object(t) !== t ? t : (Array.isArray(e) || (e = e.toString().match(/[^.[\]]+/g) || []), e.slice(0, -1).reduce((t, s, i) => Object(t[s]) === t[s] ? t[s] : t[s] = Math.abs(e[i + 1]) >> 0 == +e[i + 1] ? [] : {}, t)[e[e.length - 1]] = s, t) } getdata(t) { let e = this.getval(t); if (/^@/.test(t)) { const [, s, i] = /^@(.*?)\.(.*?)$/.exec(t), r = s ? this.getval(s) : ""; if (r) try { const t = JSON.parse(r); e = t ? this.lodash_get(t, i, "") : e } catch (t) { e = "" } } return e } setdata(t, e) { let s = !1; if (/^@/.test(e)) { const [, i, r] = /^@(.*?)\.(.*?)$/.exec(e), o = this.getval(i), h = i ? "null" === o ? null : o || "{}" : "{}"; try { const e = JSON.parse(h); this.lodash_set(e, r, t), s = this.setval(JSON.stringify(e), i) } catch (e) { const o = {}; this.lodash_set(o, r, t), s = this.setval(JSON.stringify(o), i) } } else s = this.setval(t, e); return s } getval(t) { return this.isSurge() || this.isLoon() ? $persistentStore.read(t) : this.isQuanX() ? $prefs.valueForKey(t) : this.isNode() ? (this.data = this.loaddata(), this.data[t]) : this.data && this.data[t] || null } setval(t, e) { return this.isSurge() || this.isLoon() ? $persistentStore.write(t, e) : this.isQuanX() ? $prefs.setValueForKey(t, e) : this.isNode() ? (this.data = this.loaddata(), this.data[e] = t, this.writedata(), !0) : this.data && this.data[e] || null } initGotEnv(t) { this.got = this.got ? this.got : require("got"), this.cktough = this.cktough ? this.cktough : require("tough-cookie"), this.ckjar = this.ckjar ? this.ckjar : new this.cktough.CookieJar, t && (t.headers = t.headers ? t.headers : {}, void 0 === t.headers.Cookie && void 0 === t.cookieJar && (t.cookieJar = this.ckjar)) } get(t, e = (() => { })) { t.headers && (delete t.headers["Content-Type"], delete t.headers["Content-Length"]), this.isSurge() || this.isLoon() ? (this.isSurge() && this.isNeedRewrite && (t.headers = t.headers || {}, Object.assign(t.headers, { "X-Surge-Skip-Scripting": !1 })), $httpClient.get(t, (t, s, i) => { !t && s && (s.body = i, s.statusCode = s.status), e(t, s, i) })) : this.isQuanX() ? (this.isNeedRewrite && (t.opts = t.opts || {}, Object.assign(t.opts, { hints: !1 })), $task.fetch(t).then(t => { const { statusCode: s, statusCode: i, headers: r, body: o } = t; e(null, { status: s, statusCode: i, headers: r, body: o }, o) }, t => e(t))) : this.isNode() && (this.initGotEnv(t), this.got(t).on("redirect", (t, e) => { try { if (t.headers["set-cookie"]) { const s = t.headers["set-cookie"].map(this.cktough.Cookie.parse).toString(); s && this.ckjar.setCookieSync(s, null), e.cookieJar = this.ckjar } } catch (t) { this.logErr(t) } }).then(t => { const { statusCode: s, statusCode: i, headers: r, body: o } = t; e(null, { status: s, statusCode: i, headers: r, body: o }, o) }, t => { const { message: s, response: i } = t; e(s, i, i && i.body) })) } post(t, e = (() => { })) { if (t.body && t.headers && !t.headers["Content-Type"] && (t.headers["Content-Type"] = "application/x-www-form-urlencoded"), t.headers && delete t.headers["Content-Length"], this.isSurge() || this.isLoon()) this.isSurge() && this.isNeedRewrite && (t.headers = t.headers || {}, Object.assign(t.headers, { "X-Surge-Skip-Scripting": !1 })), $httpClient.post(t, (t, s, i) => { !t && s && (s.body = i, s.statusCode = s.status), e(t, s, i) }); else if (this.isQuanX()) t.method = "POST", this.isNeedRewrite && (t.opts = t.opts || {}, Object.assign(t.opts, { hints: !1 })), $task.fetch(t).then(t => { const { statusCode: s, statusCode: i, headers: r, body: o } = t; e(null, { status: s, statusCode: i, headers: r, body: o }, o) }, t => e(t)); else if (this.isNode()) { this.initGotEnv(t); const { url: s, ...i } = t; this.got.post(s, i).then(t => { const { statusCode: s, statusCode: i, headers: r, body: o } = t; e(null, { status: s, statusCode: i, headers: r, body: o }, o) }, t => { const { message: s, response: i } = t; e(s, i, i && i.body) }) } } time(t, e = null) { const s = e ? new Date(e) : new Date; let i = { "M+": s.getMonth() + 1, "d+": s.getDate(), "H+": s.getHours(), "m+": s.getMinutes(), "s+": s.getSeconds(), "q+": Math.floor((s.getMonth() + 3) / 3), S: s.getMilliseconds() }; /(y+)/.test(t) && (t = t.replace(RegExp.$1, (s.getFullYear() + "").substr(4 - RegExp.$1.length))); for (let e in i) new RegExp("(" + e + ")").test(t) && (t = t.replace(RegExp.$1, 1 == RegExp.$1.length ? i[e] : ("00" + i[e]).substr(("" + i[e]).length))); return t } msg(e = t, s = "", i = "", r) { const o = t => { if (!t) return t; if ("string" == typeof t) return this.isLoon() ? t : this.isQuanX() ? { "open-url": t } : this.isSurge() ? { url: t } : void 0; if ("object" == typeof t) { if (this.isLoon()) { let e = t.openUrl || t.url || t["open-url"], s = t.mediaUrl || t["media-url"]; return { openUrl: e, mediaUrl: s } } if (this.isQuanX()) { let e = t["open-url"] || t.url || t.openUrl, s = t["media-url"] || t.mediaUrl; return { "open-url": e, "media-url": s } } if (this.isSurge()) { let e = t.url || t.openUrl || t["open-url"]; return { url: e } } } }; if (this.isMute || (this.isSurge() || this.isLoon() ? $notification.post(e, s, i, o(r)) : this.isQuanX() && $notify(e, s, i, o(r))), !this.isMuteLog) { let t = ["", "==============📣系统通知📣=============="]; t.push(e), s && t.push(s), i && t.push(i), console.log(t.join("\n")), this.logs = this.logs.concat(t) } } log(...t) { t.length > 0 && (this.logs = [...this.logs, ...t]), console.log(t.join(this.logSeparator)) } logErr(t, e) { const s = !this.isSurge() && !this.isQuanX() && !this.isLoon(); s ? this.log("", `❗️${this.name}, 错误!`, t.stack) : this.log("", `❗️${this.name}, 错误!`, t) } wait(t) { return new Promise(e => setTimeout(e, t)) } done(t = {}) { const e = (new Date).getTime(), s = (e - this.startTime) / 1e3; this.log("", `🔔${this.name}, 结束! 🕛 ${s} 秒`), this.log(), (this.isSurge() || this.isQuanX() || this.isLoon()) && $done(t) } }(t, e) } + diff --git a/jd_dpqd.js b/jd_dpqd.js index a9ebed3..f7836c5 100644 --- a/jd_dpqd.js +++ b/jd_dpqd.js @@ -3,14 +3,14 @@ ============Quantumultx=============== [task_local] #店铺签到 -15 2,14 * * * https://raw.githubusercontent.com/shufflewzc/faker2/main/jd_shop_sign.js, tag=店铺签到, enabled=true +15 2,14 * * * https://raw.githubusercontent.com/KingRan/KR/main/jd_shop_sign.js, tag=店铺签到, enabled=true ===========Loon============ [Script] -cron "15 2,14 * * *" script-path=https://raw.githubusercontent.com/shufflewzc/faker2/main/jd_shop_sign.js,tag=店铺签到 +cron "15 2,14 * * *" script-path=https://raw.githubusercontent.com/KingRan/KR/main/jd_shop_sign.js,tag=店铺签到 ============Surge============= -店铺签到 = type=cron,cronexp="15 2,14 * * *",wake-system=1,timeout=3600,script-path=https://raw.githubusercontent.com/shufflewzc/faker2/main/jd_shop_sign.js +店铺签到 = type=cron,cronexp="15 2,14 * * *",wake-system=1,timeout=3600,script-path=https://raw.githubusercontent.com/KingRan/KR/main/jd_shop_sign.js ===========小火箭======== -店铺签到 = type=cron,script-path=https://raw.githubusercontent.com/shufflewzc/faker2/main/jd_shop_sign.jss, cronexpr="15 2,14 * * *", timeout=3600, enable=true +店铺签到 = type=cron,script-path=https://raw.githubusercontent.com/KingRan/KR/main/jd_shop_sign.jss, cronexpr="15 2,14 * * *", timeout=3600, enable=true */ const $ = new Env('店铺签到'); const notify = $.isNode() ? require('./sendNotify') : ''; @@ -25,20 +25,24 @@ let vender='' let num=0 let shopname='' const token = [ - "2C12153D6A8660AB5D5084931E088A93", - "D84139E4C8E8B9837C26BA32363AAD0A", - "5CF1A3455369BDB3D1153D9FC974CAFA", - "FFAA0740A5EB469232AE66103F7C97BC", - "9DCB43BF4CEFD54BBCE2E58BAEA4E2F6", - "5CF1A3455369BDB3D1153D9FC974CAFA", - "E29627AF30D59CF7FE7B01C63BD9A975", + "1A67A289BED867F4B3D23F751D929FE0", + "1565B6639C0F5315D41C7D07129EBB9C", + "3949F55A02AA8A345409AFD9821C861F", + "C387DE3A3F4381FB3E451F0C40069FE6", + "069C121295427F0A7D8FA85B499F72B3", + "A92269DC92DDD73CC5EB38B3BACF51E3", "FCA20BDEA1AE7A2AE5BA6EA88C873906", - "2365600F479D92E79942686F68CA4013", - "3B864BF96848A44E170A26D2791E0AE3", - "70DDA53B61DB5E2E16B6515869C9CA07", - "9DCB43BF4CEFD54BBCE2E58BAEA4E2F6", - "9DCB43BF4CEFD54BBCE2E58BAEA4E2F6", - "CA7DDB3A3AE053B2038B298A14519438" + "0A58D51DE70A2C933EED3196280D484F", + "1DD46671387EAC6FDC14B753E01D5E30", + "0F14035F1DDD2F44460D36B0A007A548", + "662E62C629FB6B20CED938E41A0DC026", + "F573A078062F9F18BFCC39080864D7F5", + "D7DCB5D6D847EB0167C2B0A180B95F68", + "F573A078062F9F18BFCC39080864D7F5", + "4D0B34FFACB4802C65167A5A84019B9E", + "B8BA3B69A46D4976D964F28F9ED5B330", + "3F5E5185BCDF88ADEF76867A9CC7AD44", + "921478C146E5C60F2444E3978AC8E94F" ] if ($.isNode()) { diff --git a/jd_insight.js b/jd_insight.js index cce27d6..6d1e7b1 100644 --- a/jd_insight.js +++ b/jd_insight.js @@ -1,7 +1,9 @@ -/** -京洞察问卷通知 -cron 0 0 9 * * ? jd_insight.js -*/ +/* +cron "35 11 * * *" jd_insight.js, tag:京洞察问卷通知 + +by ccwav + */ + const $ = new Env('京洞察问卷通知'); const notify = $.isNode() ? require('./sendNotify') : ''; //Node.js用户请在jdCookie.js处填写京东ck; @@ -9,17 +11,26 @@ const jdCookieNode = $.isNode() ? require('./jdCookie.js') : ''; //IOS等用户直接用NobyDa的jd cookie let cookiesArr = [], cookie = ''; +let allnotify=""; +let WP_APP_TOKEN_ONE = ""; + if ($.isNode()) { + if (process.env.WP_APP_TOKEN_ONE) { + WP_APP_TOKEN_ONE = process.env.WP_APP_TOKEN_ONE; + } + Object.keys(jdCookieNode) .forEach((item) => { cookiesArr.push(jdCookieNode[item]) }) - if (process.env.JD_DEBUG && process.env.JD_DEBUG === 'false') console.log = () => { }; + if (process.env.JD_DEBUG && process.env.JD_DEBUG === 'false') console.log = () => {}; } else { cookiesArr = [$.getdata('CookieJD'), $.getdata('CookieJD2'), ...jsonParse($.getdata('CookiesJD') || "[]") .map(item => item.cookie) ].filter(item => !!item); -} !(async () => { +} + +!(async () => { if (!cookiesArr[0]) { $.msg($.name, '【提示】请先获取京东账号一cookie\n直接使用NobyDa的京东签到获取', 'https://bean.m.jd.com/bean/signIndex.action', { "open-url": "https://bean.m.jd.com/bean/signIndex.action" @@ -30,16 +41,15 @@ if ($.isNode()) { for (let i = 0; i < cookiesArr.length; i++) { UA = `jdapp;iPhone;10.0.8;14.6;${UUID};network/wifi;JDEbook/openapp.jdreader;model/iPhone9,2;addressid/2214222493;appBuild/168841;jdSupportDarkMode/0;Mozilla/5.0 (iPhone; CPU iPhone OS 14_6 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Mobile/16E158;supportJDSHWK/1`; if (cookiesArr[i]) { - $.cookie = cookiesArr[i]; - cookie = cookiesArr[i] - $.UserName = decodeURIComponent(cookie.match(/pt_pin=([^; ]+)(?=;?)/) && cookie.match(/pt_pin=([^; ]+)(?=;?)/)[1]) + cookie = cookiesArr[i]; + $.UserName = decodeURIComponent(cookie.match(/pt_pin=([^; ]+)(?=;?)/) && cookie.match(/pt_pin=([^; ]+)(?=;?)/)[1]); $.index = i + 1; $.isLogin = true; $.nickName = ''; $.maxPage = '1'; message = ''; await TotalBean(); - console.log(`\n******开始【京东账号${$.index}】${$.nickName || $.UserName}*********\n`); + console.log(`******开始查询【京东账号${$.index}】${$.nickName || $.UserName}*********\n`); if (!$.isLogin) { $.msg($.name, `【提示】cookie已失效`, `京东账号${$.index} ${$.nickName || $.UserName}\n请重新登录获取\nhttps://bean.m.jd.com/bean/signIndex.action`, { "open-url": "https://bean.m.jd.com/bean/signIndex.action" @@ -53,48 +63,54 @@ if ($.isNode()) { await main() } } + + if ($.isNode() && allnotify) { + await notify.sendNotify(`${$.name}`, allnotify); + } + })() - .catch((e) => { - $.log('', `❌ ${$.name}, 失败! 原因: ${e}!`, '') - }) - .finally(() => { - $.done(); - }) +.catch((e) => { + $.log('', `❌ ${$.name}, 失败! 原因: ${e}!`, '') +}) +.finally(() => { + $.done(); +}) async function main() { - console.log(`开始获取京洞察调研列表...\n`) - let data = await GetSurveyList(); - if (data.result == true) { - let list = data.messages.list - if (list.length > 0) { - let msg = `共${list.length}个类型调查问卷\n`; - for (let index = 0; index < list.length; index++) { - const item = list[index].surveyList; - msg += `类型:${list[index].type}\n`; - for (let index = 0; index < item.length; index++) { - let surveyItem = item[index]; - let title = surveyItem.title - let subTitle = surveyItem.subTitle - let answerUrl = surveyItem.answerUrl - msg += `${index+1}.【${title}】 ${subTitle}\n${answerUrl}\n\n` - } + console.log(`开始获取京洞察调研列表...\n`) + let data= await GetSurveyList(); + if(data.result){ + let list=data.messages.list + if(list.length>0){ + let AccTitle=`账号${$.index} ${$.nickName || $.UserName} `; + let msg = AccTitle+`共${list.length}个类型调查问卷\n`; + for (let index = 0; index < list.length; index++) { + const item = list[index].surveyList; + //msg += `类型:${list[index].type}\n`; + for (let index = 0; index < item.length; index++) { + let surveyItem = item[index]; + let title = surveyItem.title + let subTitle = surveyItem.subTitle + let answerUrl = surveyItem.answerUrl + msg += `${index+1}.【${title}】 ${subTitle}\n点击以下链接直达问卷\n${answerUrl}\n` + } + } + if ($.isNode() && WP_APP_TOKEN_ONE) { + await notify.sendNotifybyWxPucher("京洞察问卷通知", msg, `${$.UserName}`); } - $.log(msg) - await notify.sendNotify(`${$.nickName || $.UserName} 京东问卷调查得京豆`, msg); - } else { - $.log('当前账户没有京调研问卷') - } - } else { - $.log('京洞察调研列表请求错误 返回结果为空'+JSON.stringify(data)) - } + allnotify+=msg + } + }else{ + $.log('当前账户没有京调研问卷') + } } function random(min, max) { return parseInt((max - min) * Math.random()); } - +// prettier-ignore function getUUID(x = "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx", t = 0) { - return x.replace(/[xy]/g, function (x) { + return x.replace(/[xy]/g, function(x) { var r = 16 * Math.random() | 0, n = "x" == x ? r : 3 & r | 8; return uuid = t ? n.toString(36) @@ -106,8 +122,8 @@ function GetSurveyList() { const options = { "url": 'https://answer.jd.com/community/survey/list', "headers": { - "Cookie": $.cookie, - "User-Agent": "Mozilla/5.0 (iPhone; CPU iPhone OS 14_5 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/14.1 Mobile/15E148 Safari/604.1" + "Cookie": cookie, + "User-Agent":"Mozilla/5.0 (iPhone; CPU iPhone OS 14_5 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/14.1 Mobile/15E148 Safari/604.1" } }; return new Promise(resolve => { @@ -117,6 +133,7 @@ function GetSurveyList() { console.log(err); console.log(`${$.name} API请求失败,请检查网路重试`) } else { + //console.log(data); if (data) { data = JSON.parse(data); } else { @@ -151,7 +168,7 @@ function TotalBean() { try { if (n) $.logErr(n); else if (a) { - if (1001 === (a = JSON.parse(a))["retcode"]) return void ($.isLogin = !1); + if (1001 === (a = JSON.parse(a))["retcode"]) return void($.isLogin = !1); 0 === a["retcode"] && a.data && a.data.hasOwnProperty("userInfo") && ($.nickName = a.data.userInfo.baseInfo.nickname), 0 === a["retcode"] && a.data && a.data["assetInfo"] && ($.beanCount = a.data && a.data["assetInfo"]["beanNum"]) } else console.log("京东服务器返回空数据") } catch (e) { @@ -163,5 +180,362 @@ function TotalBean() { }) } -// prettier-ignore -function Env(t, e) { "undefined" != typeof process && JSON.stringify(process.env).indexOf("GITHUB") > -1 && process.exit(0); class s { constructor(t) { this.env = t } send(t, e = "GET") { t = "string" == typeof t ? { url: t } : t; let s = this.get; return "POST" === e && (s = this.post), new Promise((e, i) => { s.call(this, t, (t, s, r) => { t ? i(t) : e(s) }) }) } get(t) { return this.send.call(this.env, t) } post(t) { return this.send.call(this.env, t, "POST") } } return new class { constructor(t, e) { this.name = t, this.http = new s(this), this.data = null, this.dataFile = "box.dat", this.logs = [], this.isMute = !1, this.isNeedRewrite = !1, this.logSeparator = "\n", this.startTime = (new Date).getTime(), Object.assign(this, e), this.log("", `🔔${this.name}, 开始!`) } isNode() { return "undefined" != typeof module && !!module.exports } isQuanX() { return "undefined" != typeof $task } isSurge() { return "undefined" != typeof $httpClient && "undefined" == typeof $loon } isLoon() { return "undefined" != typeof $loon } toObj(t, e = null) { try { return JSON.parse(t) } catch { return e } } toStr(t, e = null) { try { return JSON.stringify(t) } catch { return e } } getjson(t, e) { let s = e; const i = this.getdata(t); if (i) try { s = JSON.parse(this.getdata(t)) } catch { } return s } setjson(t, e) { try { return this.setdata(JSON.stringify(t), e) } catch { return !1 } } getScript(t) { return new Promise(e => { this.get({ url: t }, (t, s, i) => e(i)) }) } runScript(t, e) { return new Promise(s => { let i = this.getdata("@chavy_boxjs_userCfgs.httpapi"); i = i ? i.replace(/\n/g, "").trim() : i; let r = this.getdata("@chavy_boxjs_userCfgs.httpapi_timeout"); r = r ? 1 * r : 20, r = e && e.timeout ? e.timeout : r; const [o, h] = i.split("@"), n = { url: `http://${h}/v1/scripting/evaluate`, body: { script_text: t, mock_type: "cron", timeout: r }, headers: { "X-Key": o, Accept: "*/*" } }; this.post(n, (t, e, i) => s(i)) }).catch(t => this.logErr(t)) } loaddata() { if (!this.isNode()) return {}; { this.fs = this.fs ? this.fs : require("fs"), this.path = this.path ? this.path : require("path"); const t = this.path.resolve(this.dataFile), e = this.path.resolve(process.cwd(), this.dataFile), s = this.fs.existsSync(t), i = !s && this.fs.existsSync(e); if (!s && !i) return {}; { const i = s ? t : e; try { return JSON.parse(this.fs.readFileSync(i)) } catch (t) { return {} } } } } writedata() { if (this.isNode()) { this.fs = this.fs ? this.fs : require("fs"), this.path = this.path ? this.path : require("path"); const t = this.path.resolve(this.dataFile), e = this.path.resolve(process.cwd(), this.dataFile), s = this.fs.existsSync(t), i = !s && this.fs.existsSync(e), r = JSON.stringify(this.data); s ? this.fs.writeFileSync(t, r) : i ? this.fs.writeFileSync(e, r) : this.fs.writeFileSync(t, r) } } lodash_get(t, e, s) { const i = e.replace(/\[(\d+)\]/g, ".$1").split("."); let r = t; for (const t of i) if (r = Object(r)[t], void 0 === r) return s; return r } lodash_set(t, e, s) { return Object(t) !== t ? t : (Array.isArray(e) || (e = e.toString().match(/[^.[\]]+/g) || []), e.slice(0, -1).reduce((t, s, i) => Object(t[s]) === t[s] ? t[s] : t[s] = Math.abs(e[i + 1]) >> 0 == +e[i + 1] ? [] : {}, t)[e[e.length - 1]] = s, t) } getdata(t) { let e = this.getval(t); if (/^@/.test(t)) { const [, s, i] = /^@(.*?)\.(.*?)$/.exec(t), r = s ? this.getval(s) : ""; if (r) try { const t = JSON.parse(r); e = t ? this.lodash_get(t, i, "") : e } catch (t) { e = "" } } return e } setdata(t, e) { let s = !1; if (/^@/.test(e)) { const [, i, r] = /^@(.*?)\.(.*?)$/.exec(e), o = this.getval(i), h = i ? "null" === o ? null : o || "{}" : "{}"; try { const e = JSON.parse(h); this.lodash_set(e, r, t), s = this.setval(JSON.stringify(e), i) } catch (e) { const o = {}; this.lodash_set(o, r, t), s = this.setval(JSON.stringify(o), i) } } else s = this.setval(t, e); return s } getval(t) { return this.isSurge() || this.isLoon() ? $persistentStore.read(t) : this.isQuanX() ? $prefs.valueForKey(t) : this.isNode() ? (this.data = this.loaddata(), this.data[t]) : this.data && this.data[t] || null } setval(t, e) { return this.isSurge() || this.isLoon() ? $persistentStore.write(t, e) : this.isQuanX() ? $prefs.setValueForKey(t, e) : this.isNode() ? (this.data = this.loaddata(), this.data[e] = t, this.writedata(), !0) : this.data && this.data[e] || null } initGotEnv(t) { this.got = this.got ? this.got : require("got"), this.cktough = this.cktough ? this.cktough : require("tough-cookie"), this.ckjar = this.ckjar ? this.ckjar : new this.cktough.CookieJar, t && (t.headers = t.headers ? t.headers : {}, void 0 === t.headers.Cookie && void 0 === t.cookieJar && (t.cookieJar = this.ckjar)) } get(t, e = (() => { })) { t.headers && (delete t.headers["Content-Type"], delete t.headers["Content-Length"]), this.isSurge() || this.isLoon() ? (this.isSurge() && this.isNeedRewrite && (t.headers = t.headers || {}, Object.assign(t.headers, { "X-Surge-Skip-Scripting": !1 })), $httpClient.get(t, (t, s, i) => { !t && s && (s.body = i, s.statusCode = s.status), e(t, s, i) })) : this.isQuanX() ? (this.isNeedRewrite && (t.opts = t.opts || {}, Object.assign(t.opts, { hints: !1 })), $task.fetch(t).then(t => { const { statusCode: s, statusCode: i, headers: r, body: o } = t; e(null, { status: s, statusCode: i, headers: r, body: o }, o) }, t => e(t))) : this.isNode() && (this.initGotEnv(t), this.got(t).on("redirect", (t, e) => { try { if (t.headers["set-cookie"]) { const s = t.headers["set-cookie"].map(this.cktough.Cookie.parse).toString(); s && this.ckjar.setCookieSync(s, null), e.cookieJar = this.ckjar } } catch (t) { this.logErr(t) } }).then(t => { const { statusCode: s, statusCode: i, headers: r, body: o } = t; e(null, { status: s, statusCode: i, headers: r, body: o }, o) }, t => { const { message: s, response: i } = t; e(s, i, i && i.body) })) } post(t, e = (() => { })) { if (t.body && t.headers && !t.headers["Content-Type"] && (t.headers["Content-Type"] = "application/x-www-form-urlencoded"), t.headers && delete t.headers["Content-Length"], this.isSurge() || this.isLoon()) this.isSurge() && this.isNeedRewrite && (t.headers = t.headers || {}, Object.assign(t.headers, { "X-Surge-Skip-Scripting": !1 })), $httpClient.post(t, (t, s, i) => { !t && s && (s.body = i, s.statusCode = s.status), e(t, s, i) }); else if (this.isQuanX()) t.method = "POST", this.isNeedRewrite && (t.opts = t.opts || {}, Object.assign(t.opts, { hints: !1 })), $task.fetch(t).then(t => { const { statusCode: s, statusCode: i, headers: r, body: o } = t; e(null, { status: s, statusCode: i, headers: r, body: o }, o) }, t => e(t)); else if (this.isNode()) { this.initGotEnv(t); const { url: s, ...i } = t; this.got.post(s, i).then(t => { const { statusCode: s, statusCode: i, headers: r, body: o } = t; e(null, { status: s, statusCode: i, headers: r, body: o }, o) }, t => { const { message: s, response: i } = t; e(s, i, i && i.body) }) } } time(t, e = null) { const s = e ? new Date(e) : new Date; let i = { "M+": s.getMonth() + 1, "d+": s.getDate(), "H+": s.getHours(), "m+": s.getMinutes(), "s+": s.getSeconds(), "q+": Math.floor((s.getMonth() + 3) / 3), S: s.getMilliseconds() }; /(y+)/.test(t) && (t = t.replace(RegExp.$1, (s.getFullYear() + "").substr(4 - RegExp.$1.length))); for (let e in i) new RegExp("(" + e + ")").test(t) && (t = t.replace(RegExp.$1, 1 == RegExp.$1.length ? i[e] : ("00" + i[e]).substr(("" + i[e]).length))); return t } msg(e = t, s = "", i = "", r) { const o = t => { if (!t) return t; if ("string" == typeof t) return this.isLoon() ? t : this.isQuanX() ? { "open-url": t } : this.isSurge() ? { url: t } : void 0; if ("object" == typeof t) { if (this.isLoon()) { let e = t.openUrl || t.url || t["open-url"], s = t.mediaUrl || t["media-url"]; return { openUrl: e, mediaUrl: s } } if (this.isQuanX()) { let e = t["open-url"] || t.url || t.openUrl, s = t["media-url"] || t.mediaUrl; return { "open-url": e, "media-url": s } } if (this.isSurge()) { let e = t.url || t.openUrl || t["open-url"]; return { url: e } } } }; if (this.isMute || (this.isSurge() || this.isLoon() ? $notification.post(e, s, i, o(r)) : this.isQuanX() && $notify(e, s, i, o(r))), !this.isMuteLog) { let t = ["", "==============📣系统通知📣=============="]; t.push(e), s && t.push(s), i && t.push(i), console.log(t.join("\n")), this.logs = this.logs.concat(t) } } log(...t) { t.length > 0 && (this.logs = [...this.logs, ...t]), console.log(t.join(this.logSeparator)) } logErr(t, e) { const s = !this.isSurge() && !this.isQuanX() && !this.isLoon(); s ? this.log("", `❗️${this.name}, 错误!`, t.stack) : this.log("", `❗️${this.name}, 错误!`, t) } wait(t) { return new Promise(e => setTimeout(e, t)) } done(t = {}) { const e = (new Date).getTime(), s = (e - this.startTime) / 1e3; this.log("", `🔔${this.name}, 结束! 🕛 ${s} 秒`), this.log(), (this.isSurge() || this.isQuanX() || this.isLoon()) && $done(t) } }(t, e) } +function Env(t, e) { + "undefined" != typeof process && JSON.stringify(process.env) + .indexOf("GITHUB") > -1 && process.exit(0); + class s { + constructor(t) { + this.env = t + } + send(t, e = "GET") { + t = "string" == typeof t ? { + url: t + } : t; + let s = this.get; + return "POST" === e && (s = this.post), new Promise((e, i) => { + s.call(this, t, (t, s, r) => { + t ? i(t) : e(s) + }) + }) + } + get(t) { + return this.send.call(this.env, t) + } + post(t) { + return this.send.call(this.env, t, "POST") + } + } + return new class { + constructor(t, e) { + this.name = t, this.http = new s(this), this.data = null, this.dataFile = "box.dat", this.logs = [], this.isMute = !1, this.isNeedRewrite = !1, this.logSeparator = "\n", this.startTime = (new Date) + .getTime(), Object.assign(this, e), this.log("", `🔔${this.name}, 开始!`) + } + isNode() { + return "undefined" != typeof module && !!module.exports + } + isQuanX() { + return "undefined" != typeof $task + } + isSurge() { + return "undefined" != typeof $httpClient && "undefined" == typeof $loon + } + isLoon() { + return "undefined" != typeof $loon + } + toObj(t, e = null) { + try { + return JSON.parse(t) + } catch { + return e + } + } + toStr(t, e = null) { + try { + return JSON.stringify(t) + } catch { + return e + } + } + getjson(t, e) { + let s = e; + const i = this.getdata(t); + if (i) try { + s = JSON.parse(this.getdata(t)) + } catch {} + return s + } + setjson(t, e) { + try { + return this.setdata(JSON.stringify(t), e) + } catch { + return !1 + } + } + getScript(t) { + return new Promise(e => { + this.get({ + url: t + }, (t, s, i) => e(i)) + }) + } + runScript(t, e) { + return new Promise(s => { + let i = this.getdata("@chavy_boxjs_userCfgs.httpapi"); + i = i ? i.replace(/\n/g, "") + .trim() : i; + let r = this.getdata("@chavy_boxjs_userCfgs.httpapi_timeout"); + r = r ? 1 * r : 20, r = e && e.timeout ? e.timeout : r; + const [o, h] = i.split("@"), n = { + url: `http://${h}/v1/scripting/evaluate`, + body: { + script_text: t, + mock_type: "cron", + timeout: r + }, + headers: { + "X-Key": o, + Accept: "*/*" + } + }; + this.post(n, (t, e, i) => s(i)) + }) + .catch(t => this.logErr(t)) + } + loaddata() { + if (!this.isNode()) return {}; { + this.fs = this.fs ? this.fs : require("fs"), this.path = this.path ? this.path : require("path"); + const t = this.path.resolve(this.dataFile), + e = this.path.resolve(process.cwd(), this.dataFile), + s = this.fs.existsSync(t), + i = !s && this.fs.existsSync(e); + if (!s && !i) return {}; { + const i = s ? t : e; + try { + return JSON.parse(this.fs.readFileSync(i)) + } catch (t) { + return {} + } + } + } + } + writedata() { + if (this.isNode()) { + this.fs = this.fs ? this.fs : require("fs"), this.path = this.path ? this.path : require("path"); + const t = this.path.resolve(this.dataFile), + e = this.path.resolve(process.cwd(), this.dataFile), + s = this.fs.existsSync(t), + i = !s && this.fs.existsSync(e), + r = JSON.stringify(this.data); + s ? this.fs.writeFileSync(t, r) : i ? this.fs.writeFileSync(e, r) : this.fs.writeFileSync(t, r) + } + } + lodash_get(t, e, s) { + const i = e.replace(/\[(\d+)\]/g, ".$1") + .split("."); + let r = t; + for (const t of i) + if (r = Object(r)[t], void 0 === r) return s; + return r + } + lodash_set(t, e, s) { + return Object(t) !== t ? t : (Array.isArray(e) || (e = e.toString() + .match(/[^.[\]]+/g) || []), e.slice(0, -1) + .reduce((t, s, i) => Object(t[s]) === t[s] ? t[s] : t[s] = Math.abs(e[i + 1]) >> 0 == +e[i + 1] ? [] : {}, t)[e[e.length - 1]] = s, t) + } + getdata(t) { + let e = this.getval(t); + if (/^@/.test(t)) { + const [, s, i] = /^@(.*?)\.(.*?)$/.exec(t), r = s ? this.getval(s) : ""; + if (r) try { + const t = JSON.parse(r); + e = t ? this.lodash_get(t, i, "") : e + } catch (t) { + e = "" + } + } + return e + } + setdata(t, e) { + let s = !1; + if (/^@/.test(e)) { + const [, i, r] = /^@(.*?)\.(.*?)$/.exec(e), o = this.getval(i), h = i ? "null" === o ? null : o || "{}" : "{}"; + try { + const e = JSON.parse(h); + this.lodash_set(e, r, t), s = this.setval(JSON.stringify(e), i) + } catch (e) { + const o = {}; + this.lodash_set(o, r, t), s = this.setval(JSON.stringify(o), i) + } + } else s = this.setval(t, e); + return s + } + getval(t) { + return this.isSurge() || this.isLoon() ? $persistentStore.read(t) : this.isQuanX() ? $prefs.valueForKey(t) : this.isNode() ? (this.data = this.loaddata(), this.data[t]) : this.data && this.data[t] || null + } + setval(t, e) { + return this.isSurge() || this.isLoon() ? $persistentStore.write(t, e) : this.isQuanX() ? $prefs.setValueForKey(t, e) : this.isNode() ? (this.data = this.loaddata(), this.data[e] = t, this.writedata(), !0) : this.data && this.data[e] || null + } + initGotEnv(t) { + this.got = this.got ? this.got : require("got"), this.cktough = this.cktough ? this.cktough : require("tough-cookie"), this.ckjar = this.ckjar ? this.ckjar : new this.cktough.CookieJar, t && (t.headers = t.headers ? t.headers : {}, void 0 === t.headers.Cookie && void 0 === t.cookieJar && (t.cookieJar = this.ckjar)) + } + get(t, e = (() => {})) { + t.headers && (delete t.headers["Content-Type"], delete t.headers["Content-Length"]), this.isSurge() || this.isLoon() ? (this.isSurge() && this.isNeedRewrite && (t.headers = t.headers || {}, Object.assign(t.headers, { + "X-Surge-Skip-Scripting": !1 + })), $httpClient.get(t, (t, s, i) => { + !t && s && (s.body = i, s.statusCode = s.status), e(t, s, i) + })) : this.isQuanX() ? (this.isNeedRewrite && (t.opts = t.opts || {}, Object.assign(t.opts, { + hints: !1 + })), $task.fetch(t) + .then(t => { + const { + statusCode: s, + statusCode: i, + headers: r, + body: o + } = t; + e(null, { + status: s, + statusCode: i, + headers: r, + body: o + }, o) + }, t => e(t))) : this.isNode() && (this.initGotEnv(t), this.got(t) + .on("redirect", (t, e) => { + try { + if (t.headers["set-cookie"]) { + const s = t.headers["set-cookie"].map(this.cktough.Cookie.parse) + .toString(); + s && this.ckjar.setCookieSync(s, null), e.cookieJar = this.ckjar + } + } catch (t) { + this.logErr(t) + } + }) + .then(t => { + const { + statusCode: s, + statusCode: i, + headers: r, + body: o + } = t; + e(null, { + status: s, + statusCode: i, + headers: r, + body: o + }, o) + }, t => { + const { + message: s, + response: i + } = t; + e(s, i, i && i.body) + })) + } + post(t, e = (() => {})) { + if (t.body && t.headers && !t.headers["Content-Type"] && (t.headers["Content-Type"] = "application/x-www-form-urlencoded"), t.headers && delete t.headers["Content-Length"], this.isSurge() || this.isLoon()) this.isSurge() && this.isNeedRewrite && (t.headers = t.headers || {}, Object.assign(t.headers, { + "X-Surge-Skip-Scripting": !1 + })), $httpClient.post(t, (t, s, i) => { + !t && s && (s.body = i, s.statusCode = s.status), e(t, s, i) + }); + else if (this.isQuanX()) t.method = "POST", this.isNeedRewrite && (t.opts = t.opts || {}, Object.assign(t.opts, { + hints: !1 + })), $task.fetch(t) + .then(t => { + const { + statusCode: s, + statusCode: i, + headers: r, + body: o + } = t; + e(null, { + status: s, + statusCode: i, + headers: r, + body: o + }, o) + }, t => e(t)); + else if (this.isNode()) { + this.initGotEnv(t); + const { + url: s, + ...i + } = t; + this.got.post(s, i) + .then(t => { + const { + statusCode: s, + statusCode: i, + headers: r, + body: o + } = t; + e(null, { + status: s, + statusCode: i, + headers: r, + body: o + }, o) + }, t => { + const { + message: s, + response: i + } = t; + e(s, i, i && i.body) + }) + } + } + time(t, e = null) { + const s = e ? new Date(e) : new Date; + let i = { + "M+": s.getMonth() + 1, + "d+": s.getDate(), + "H+": s.getHours(), + "m+": s.getMinutes(), + "s+": s.getSeconds(), + "q+": Math.floor((s.getMonth() + 3) / 3), + S: s.getMilliseconds() + }; + /(y+)/.test(t) && (t = t.replace(RegExp.$1, (s.getFullYear() + "") + .substr(4 - RegExp.$1.length))); + for (let e in i) new RegExp("(" + e + ")") + .test(t) && (t = t.replace(RegExp.$1, 1 == RegExp.$1.length ? i[e] : ("00" + i[e]) + .substr(("" + i[e]) + .length))); + return t + } + msg(e = t, s = "", i = "", r) { + const o = t => { + if (!t) return t; + if ("string" == typeof t) return this.isLoon() ? t : this.isQuanX() ? { + "open-url": t + } : this.isSurge() ? { + url: t + } : void 0; + if ("object" == typeof t) { + if (this.isLoon()) { + let e = t.openUrl || t.url || t["open-url"], + s = t.mediaUrl || t["media-url"]; + return { + openUrl: e, + mediaUrl: s + } + } + if (this.isQuanX()) { + let e = t["open-url"] || t.url || t.openUrl, + s = t["media-url"] || t.mediaUrl; + return { + "open-url": e, + "media-url": s + } + } + if (this.isSurge()) { + let e = t.url || t.openUrl || t["open-url"]; + return { + url: e + } + } + } + }; + if (this.isMute || (this.isSurge() || this.isLoon() ? $notification.post(e, s, i, o(r)) : this.isQuanX() && $notify(e, s, i, o(r))), !this.isMuteLog) { + let t = ["", "==============📣系统通知📣=============="]; + t.push(e), s && t.push(s), i && t.push(i), console.log(t.join("\n")), this.logs = this.logs.concat(t) + } + } + log(...t) { + t.length > 0 && (this.logs = [...this.logs, ...t]), console.log(t.join(this.logSeparator)) + } + logErr(t, e) { + const s = !this.isSurge() && !this.isQuanX() && !this.isLoon(); + s ? this.log("", `❗️${this.name}, 错误!`, t.stack) : this.log("", `❗️${this.name}, 错误!`, t) + } + wait(t) { + return new Promise(e => setTimeout(e, t)) + } + done(t = {}) { + const e = (new Date) + .getTime(), + s = (e - this.startTime) / 1e3; + this.log("", `🔔${this.name}, 结束! 🕛 ${s} 秒`), this.log(), (this.isSurge() || this.isQuanX() || this.isLoon()) && $done(t) + } + }(t, e) +} \ No newline at end of file diff --git a/jd_joy_joy_reward.ts b/jd_joy_joy_reward.ts index 7a730e6..05c44ac 100644 --- a/jd_joy_joy_reward.ts +++ b/jd_joy_joy_reward.ts @@ -1,11 +1,11 @@ /** 汪汪乐园-提现 -5 0 0 * * 5 jd_joy_joy_reward.ts +3 0 0 * * 5 jd_joy_joy_reward.ts new Env('汪汪赛跑提现') -Modify By Dylan from HW + **/ -import {get, post, requireConfig, wait} from './TS_USER_AGENTS' +import {get, post, o2s, requireConfig, wait} from './function/TS_USER_AGENTS' import {H5ST} from "./function/h5st" let cookie: string = '', res: any = '', UserName: string = '', fp_448de: string = '' || process.env.FP_448DE, fp_b6ac3: string = '' || process.env.FP_B6AC3 diff --git a/jd_joy_park_run.ts b/jd_joy_park_run.ts index 081ac14..a5ad7c4 100644 --- a/jd_joy_park_run.ts +++ b/jd_joy_park_run.ts @@ -35,18 +35,6 @@ let assets: number = 0, captainId: string = '', h5stTool: H5ST = null await h5stTool.__genAlgo() res = await team('runningMyPrize', {"linkId": "L-sOanK_5RJCz7I314FpnQ", "pageSize": 20, "time": null, "ids": null}) let sum: number = 0, success: number = 0 - rewardAmount = res.data.rewardAmount - if (res.data.runningCashStatus.currentEndTime && res.data.runningCashStatus.status === 0) { - console.log('可提现', rewardAmount) - res = await api('runningPrizeDraw', {"linkId": "L-sOanK_5RJCz7I314FpnQ", "type": 2}) - await wait(2000) - if (res.success){ - console.log(res.data.message) - } else { - console.log('提现失败:', res.errMsg) - } - } - for (let t of res?.data?.detailVos || []) { if (t.amount > 0 && getDate(new Date(t.createTime)) === new Date().getDate()) { sum = add(sum, t.amount) @@ -56,7 +44,7 @@ let assets: number = 0, captainId: string = '', h5stTool: H5ST = null } } console.log('今日成功', success, '次') - console.log('今日收益', sum, '元') + console.log('今日收益', sum.toFixed(2), '元') res = await team('runningTeamInfo', {"linkId": "L-sOanK_5RJCz7I314FpnQ"}) if (!captainId) { diff --git a/jd_txgzyl.js b/jd_txgzyl.js index 51be0df..b0fd456 100644 --- a/jd_txgzyl.js +++ b/jd_txgzyl.js @@ -21,9 +21,11 @@ boxjs订阅:https://git.metauniverse-cn.com/https://raw.githubusercontent.com/ [rewrite_remote] https://git.metauniverse-cn.com/https://raw.githubusercontent.com/curtinlv/gd/main/dy/cx.conf, tag=订阅-Curtin, update-interval=172800, opt-parser=false, enabled=true +cron:1 1 1 1 * +============Quantumultx=============== [task_local] -#获取body后执行 -1 1 1 1 * https://git.metauniverse-cn.com/https://raw.githubusercontent.com/curtinlv/gd/main/jk_script/pkc_txgzyl.js, tag=PKC-特效关注有礼, enabled=false +#PKC-特效关注有礼 +1 1 1 1 * jd_txgzyl.js, tag=PKC-特效关注有礼, enabled=true */ diff --git a/jd_tyt.js b/jd_tyt.js index f1223d0..ac2501f 100644 --- a/jd_tyt.js +++ b/jd_tyt.js @@ -1,11 +1,13 @@ /* -旁白 +注意:助力码每天会变,旧的不可用。 +助力逻辑:优先助力互助码变量,默认助力前三个可助力的账号,需要修改助力人数修改代码57行的数字即可 +入口-极速版-推推赚大钱 5元无门槛卷 大概需要50人助力 [task_local] #快速推一推 -0 1 * * * jd_tyt.js, tag=推一推, img-url= +0 1 * * * jd_tyt.js, tag=推一推, img-url=https://raw.githubusercontent.com/Orz-3/mini/master/Color/jd.png, enabled=true */ -const $ = new Env('极速版-推推赚大钱');//助力前八个可助力的账号不满意去57行改即可 +const $ = new Env('极速版-推推赚大钱');//助力前三个可助力的账号 const notify = $.isNode() ? require('./sendNotify') : ''; //Node.js用户请在jdCookie.js处填写京东ck; const jdCookieNode = $.isNode() ? require('./jdCookie.js') : ''; @@ -51,8 +53,8 @@ if ($.isNode()) { await info() await coinDozerBackFlow() await getCoinDozerInfo() - console.log('\n助力前八个可助力的账号不满意去57行改即可\n'); - if (inviteCodes.length >= 7) { + console.log('\n注意助力前三个可助力的账号\n'); + if (inviteCodes.length >= 3) { break } } @@ -93,8 +95,8 @@ function info() { return new Promise((resolve) => { const nm = { - url: `https://api.m.jd.com/?_t=1646094718628`, - body: `functionId=initiateCoinDozer&body={"actId":"49f40d2f40b3470e8d6c39aa4866c7ff","channel":"coin_dozer","antiToken":"","referer":"-1","frontendInitStatus":"s"}&appid=megatron&client=ios&clientVersion=14.3&t=1636014459632&networkType=4g&eid=&fp=-1&frontendInitStatus=s&uuid=8888&osVersion=14.3&d_brand=&d_model=&agent=-1&pageClickKey=-1&screen=400*700&platform=3&lang=zh_CN`, + url: `${JD_API_HOST}`, + body: `functionId=initiateCoinDozer&body={"actId":"3075b6eab065464dad1c4042d345ac97","channel":"coin_dozer","antiToken":"","referer":"-1","frontendInitStatus":"s"}&appid=megatron&client=ios&clientVersion=14.3&t=1636014459632&networkType=4g&eid=&fp=-1&frontendInitStatus=s&uuid=8888&osVersion=14.3&d_brand=&d_model=&agent=-1&pageClickKey=-1&screen=400*700&platform=3&lang=zh_CN`, headers: { "Cookie": cookie, "Origin": "https://pushgold.jd.com", @@ -137,7 +139,7 @@ function coinDozerBackFlow() { const nm = { url: `${JD_API_HOST}`, - body: `functionId=coinDozerBackFlow&body={"actId":"49f40d2f40b3470e8d6c39aa4866c7ff","channel":"coin_dozer","antiToken":"","referer":"-1","frontendInitStatus":"s"}&appid=megatron&client=ios&clientVersion=14.3&t=1636015617899&networkType=4g&eid=&fp=-1&frontendInitStatus=s&uuid=8888&osVersion=14.3&d_brand=&d_model=&agent=-1&pageClickKey=-1&screen=400*700&platform=3&lang=zh_CN`, + body: `functionId=coinDozerBackFlow&body={"actId":"3075b6eab065464dad1c4042d345ac97","channel":"coin_dozer","antiToken":"","referer":"-1","frontendInitStatus":"s"}&appid=megatron&client=ios&clientVersion=14.3&t=1636015617899&networkType=4g&eid=&fp=-1&frontendInitStatus=s&uuid=8888&osVersion=14.3&d_brand=&d_model=&agent=-1&pageClickKey=-1&screen=400*700&platform=3&lang=zh_CN`, headers: { "Cookie": cookie, @@ -178,7 +180,7 @@ function helpCoinDozer(packetId) { return new Promise((resolve) => { const nm = { url: `${JD_API_HOST}`, - body: `functionId=helpCoinDozer&appid=station-soa-h5&client=H5&clientVersion=1.0.0&t=1636015855103&body={"actId":"49f40d2f40b3470e8d6c39aa4866c7ff","channel":"coin_dozer","antiToken":"","referer":"-1","frontendInitStatus":"s","packetId":"${packetId}"}&_ste=1&_stk=appid,body,client,clientVersion,functionId,t&h5st=20211104165055104;9806356985655163;10005;tk01wd1ed1d5f30nBDriGzaeVZZ9vuiX+cBzRLExSEzpfTriRD0nxU6BbRIOcSQvnfh74uInjSeb6i+VHpnHrBJdVwzs;017f330f7a84896d31a8d6017a1504dc16be8001273aaea9a04a8d04aad033d9`, + body: `functionId=helpCoinDozer&appid=station-soa-h5&client=H5&clientVersion=1.0.0&t=1636015855103&body={"actId":"3075b6eab065464dad1c4042d345ac97","channel":"coin_dozer","antiToken":"","referer":"-1","frontendInitStatus":"s","packetId":"${packetId}"}&_ste=1&_stk=appid,body,client,clientVersion,functionId,t&h5st=20211104165055104;9806356985655163;10005;tk01wd1ed1d5f30nBDriGzaeVZZ9vuiX+cBzRLExSEzpfTriRD0nxU6BbRIOcSQvnfh74uInjSeb6i+VHpnHrBJdVwzs;017f330f7a84896d31a8d6017a1504dc16be8001273aaea9a04a8d04aad033d9`, headers: { "Cookie": cookie, @@ -218,7 +220,7 @@ function help(packetId) { return new Promise((resolve) => { const nm = { url: `${JD_API_HOST}`, - body: `functionId=helpCoinDozer&appid=station-soa-h5&client=H5&clientVersion=1.0.0&t=1623120183787&body={"actId":"49f40d2f40b3470e8d6c39aa4866c7ff","channel":"coin_dozer","antiToken":"","referer":"-1","frontendInitStatus":"s","packetId":"${packetId}","helperStatus":"0"}&_ste=1&_stk=appid,body,client,clientVersion,functionId,t&h5st=20210608104303790;8489907903583162;10005;tk01w89681aa9a8nZDdIanIyWnVuWFLK4gnqY+05WKcPY3NWU2dcfa73B7PBM7ufJEN0U+4MyHW5N2mT/RNMq72ycJxH;7e6b956f1a8a71b269a0038bbb4abd24bcfb834a88910818cf1bdfc55b7b96e5`, + body: `functionId=helpCoinDozer&appid=station-soa-h5&client=H5&clientVersion=1.0.0&t=1623120183787&body={"actId":"3075b6eab065464dad1c4042d345ac97","channel":"coin_dozer","antiToken":"","referer":"-1","frontendInitStatus":"s","packetId":"${packetId}","helperStatus":"0"}&_ste=1&_stk=appid,body,client,clientVersion,functionId,t&h5st=20210608104303790;8489907903583162;10005;tk01w89681aa9a8nZDdIanIyWnVuWFLK4gnqY+05WKcPY3NWU2dcfa73B7PBM7ufJEN0U+4MyHW5N2mT/RNMq72ycJxH;7e6b956f1a8a71b269a0038bbb4abd24bcfb834a88910818cf1bdfc55b7b96e5`, headers: { "Cookie": cookie, @@ -249,6 +251,7 @@ function help(packetId) { if (data.msg.indexOf("完成") != -1) { $.ok = true } + console.log(data.msg) } } } catch (e) { @@ -265,7 +268,7 @@ function getCoinDozerInfo() { const nm = { url: `${JD_API_HOST}`, - body: `functionId=getCoinDozerInfo&body={"actId":"49f40d2f40b3470e8d6c39aa4866c7ff","channel":"coin_dozer","antiToken":"","referer":"-1","frontendInitStatus":"s"}&appid=megatron&client=ios&clientVersion=14.3&t=1636015858295&networkType=4g&eid=&fp=-1&frontendInitStatus=s&uuid=8888&osVersion=14.3&d_brand=&d_model=&agent=-1&pageClickKey=-1&screen=400*700&platform=3&lang=zh_CN`, + body: `functionId=getCoinDozerInfo&body={"actId":"3075b6eab065464dad1c4042d345ac97","channel":"coin_dozer","antiToken":"","referer":"-1","frontendInitStatus":"s"}&appid=megatron&client=ios&clientVersion=14.3&t=1636015858295&networkType=4g&eid=&fp=-1&frontendInitStatus=s&uuid=8888&osVersion=14.3&d_brand=&d_model=&agent=-1&pageClickKey=-1&screen=400*700&platform=3&lang=zh_CN`, headers: { "Cookie": cookie, "Origin": "https://pushgold.jd.com", @@ -282,7 +285,7 @@ function getCoinDozerInfo() { if (safeGet(data)) { data = JSON.parse(data); if (data.success == true && data?.data?.sponsorActivityInfo?.packetId) { - console.log('CK:' + data.data.sponsorActivityInfo.initiatorNickname) + console.log('叼毛:' + data.data.sponsorActivityInfo.initiatorNickname) console.log('邀请码:' + data.data.sponsorActivityInfo.packetId) console.log('推出:' + data.data.sponsorActivityInfo.dismantledAmount) if (data.data && data.data.sponsorActivityInfo.packetId) { diff --git a/jd_tyt_ks.js b/jd_tyt_ks.js new file mode 100644 index 0000000..384c49d --- /dev/null +++ b/jd_tyt_ks.js @@ -0,0 +1,556 @@ +/* +分享到QQ查看邀请码 packetId就是 +#自定义变量 +export tytpacketId="" + [task_local] +#推一推助力码 +0 0 * * * jd_tyt.js, tag=推一推, img-url=https://raw.githubusercontent.com/Orz-3/mini/master/Color/jd.png, enabled=true +注意:助力码每天会变,旧的不可用。 +助力逻辑:优先助力互助码变量 +入口-极速版-推推赚大钱 5元无门槛卷 大概需要50人助力 +*/ +const $ = new Env('推推赚大钱-快速'); +const notify = $.isNode() ? require('./sendNotify') : ''; +//Node.js用户请在jdCookie.js处填写京东ck; +const jdCookieNode = $.isNode() ? require('./jdCookie.js') : ''; +const ua = `jdltapp;iPhone;3.1.0;${Math.ceil(Math.random()*4+10)}.${Math.ceil(Math.random()*4)};${randomString(40)}` +var status = 0 + +//IOS等用户直接用NobyDa的jd cookie +let cookiesArr = [], + cookie = '', + message; +let tytpacketId = ''; +if (process.env.tytpacketId) { + tytpacketId = process.env.tytpacketId; +} +if ($.isNode()) { + Object.keys(jdCookieNode).forEach((item) => { + cookiesArr.push(jdCookieNode[item]) + }) + // if (process.env.JD_DEBUG && process.env.JD_DEBUG === 'false') console.log = () => {}; +} else { + cookiesArr = [$.getdata('CookieJD'), $.getdata('CookieJD2'), ...jsonParse($.getdata('CookiesJD') || "[]").map(item => item.cookie)].filter(item => !!item); +} +const JD_API_HOST = 'https://api.m.jd.com/client.action'; + +!(async() => { + if (!cookiesArr[0]) { + $.msg($.name, '【提示】请先获取京东账号一cookie\n直接使用NobyDa的京东签到获取', 'https://bean.m.jd.com/bean/signIndex.action', { + "open-url": "https://bean.m.jd.com/bean/signIndex.action" + }); + return; + } + console.log("推一推开始") + for (let i = cookiesArr.length - 1; i > 0; i--) { + if (cookiesArr[i]) { + cookie = cookiesArr[i]; + $.UserName = decodeURIComponent(cookie.match(/pt_pin=([^; ]+)(?=;?)/) && cookie.match(/pt_pin=([^; ]+)(?=;?)/)[1]) + $.index = i + 1; + $.isLogin = true; + $.nickName = ''; + message = ''; + await TotalBean(); + console.log(`\n******开始【京东账号${$.index}】${$.nickName || $.UserName}*********\n`); + if (!$.isLogin) { + $.msg($.name, `【提示】cookie已失效`, `京东账号${$.index} ${$.nickName || $.UserName}\n请重新登录获取\nhttps://bean.m.jd.com/bean/signIndex.action`, { + "open-url": "https://bean.m.jd.com/bean/signIndex.action" + }); + + if ($.isNode()) { + await notify.sendNotify(`${$.name}cookie已失效 - ${$.UserName}`, `京东账号${$.index} ${$.UserName}\n请重新登录获取cookie`); + } + continue + } + if (status == 1) { + break + } + await tythelp() + await $.wait(15000) + } + } + console.log("推一推结束") +})() +.catch((e) => { + $.log('', `❌ ${$.name}, 失败! 原因: ${e}!`, '') + }) + .finally(() => { + $.done(); + }) + +function tythelp() { + return new Promise(async(resolve) => { + let options = { + url: `https://api.m.jd.com/?t=1623066557140`, + + body: `functionId=helpCoinDozer&appid=station-soa-h5&client=H5&clientVersion=1.0.0&t=1623120183787&body={"actId":"3075b6eab065464dad1c4042d345ac97","channel":"coin_dozer","antiToken":"","referer":"-1","frontendInitStatus":"s","packetId":"${tytpacketId}","helperStatus":"0"}&_ste=1&_stk=appid,body,client,clientVersion,functionId,t&h5st=20210608104303790;8489907903583162;10005;tk01w89681aa9a8nZDdIanIyWnVuWFLK4gnqY+05WKcPY3NWU2dcfa73B7PBM7ufJEN0U+4MyHW5N2mT/RNMq72ycJxH;7e6b956f1a8a71b269a0038bbb4abd24bcfb834a88910818cf1bdfc55b7b96e5`, + headers: { + "Origin": "https://pushgold.jd.com", + "Host": "api.m.jd.com", + "Accept": "application/json, text/plain, */*", + "User-Agent": ua, + "Cookie": cookie, + } + } + + $.post(options, async(err, resp, data) => { + try { + data = JSON.parse(data); + + if (data.code == 0) { + console.log("帮砍:" + data.data.amount) + + } else if (data.msg.indexOf("完成") != -1) { + console.log("已完成砍价") + status = 1 + } else { + if (data.msg !== "need verify"){ + console.log(data.msg) + } + console.log(data.msg) + } + } catch (e) { + $.logErr(e, resp); + } finally { + resolve(); + } + }); + }); +} + +function randomString(e) { + e = e || 32; + let t = "abcdefhijkmnprstwxyz2345678", + a = t.length, + n = ""; + for (i = 0; i < e; i++) + n += t.charAt(Math.floor(Math.random() * a)); + return n +} +async function taskPostUrl(functionId, body) { + return { + url: `${JD_API_HOST}`, + body: `functionId=${functionId}&body=${escape(JSON.stringify(body))}&client=wh5&clientVersion=1.0.0&appid=content_ecology&uuid=6898c30638c55142969304c8e2167997fa59eb54&t=1622588448365`, + headers: { + 'Cookie': cookie, + 'Host': 'api.m.jd.com', + 'Connection': 'keep-alive', + 'Content-Type': 'application/x-www-form-urlencoded', + "User-Agent": $.isNode() ? (process.env.JD_USER_AGENT ? process.env.JD_USER_AGENT : (require('./USER_AGENTS').USER_AGENT)) : ($.getdata('JDUA') ? $.getdata('JDUA') : "jdapp;iPhone;9.4.4;14.3;network/4g;Mozilla/5.0 (iPhone; CPU iPhone OS 14_3 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Mobile/15E148;supportJDSHWK/1"), + 'Accept-Language': 'zh-cn', + 'Accept-Encoding': 'gzip, deflate, br', + } + } +} + + +async function TotalBean() { + return new Promise(async resolve => { + const options = { + "url": `https://wq.jd.com/user/info/QueryJDUserInfo?sceneval=2`, + "headers": { + "Accept": "application/json,text/plain, */*", + "Content-Type": "application/x-www-form-urlencoded", + "Accept-Encoding": "gzip, deflate, br", + "Accept-Language": "zh-cn", + "Connection": "keep-alive", + "Cookie": cookie, + "Referer": "https://wqs.jd.com/my/jingdou/my.shtml?sceneval=2", + "User-Agent": $.isNode() ? (process.env.JD_USER_AGENT ? process.env.JD_USER_AGENT : (require('./USER_AGENTS').USER_AGENT)) : ($.getdata('JDUA') ? $.getdata('JDUA') : "jdapp;iPhone;9.4.4;14.3;network/4g;Mozilla/5.0 (iPhone; CPU iPhone OS 14_3 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Mobile/15E148;supportJDSHWK/1") + } + } + $.post(options, (err, resp, data) => { + try { + if (err) { + console.log(`${JSON.stringify(err)}`) + console.log(`${$.name} API请求失败,请检查网路重试`) + } else { + if (data) { + data = JSON.parse(data); + if (data["retcode"] === 13) { + $.isLogin = false; //cookie过期 + return; + } + if (data["retcode"] === 0) { + $.nickName = (data["base"] && data["base"].nickname) || $.UserName; + } else { + $.nickName = $.UserName; + } + } else { + console.log(`京东服务器返回空数据`) + } + } + } catch (e) { + $.logErr(e, resp) + } finally { + resolve(); + } + }) + }) +} +async function safeGet(data) { + try { + if (typeof JSON.parse(data) == "object") { + return true; + } + } catch (e) { + console.log(e); + console.log(`京东服务器访问数据为空,请检查自身设备网络情况`); + return false; + } +} + +function jsonParse(str) { + if (typeof str == "string") { + try { + return JSON.parse(str); + } catch (e) { + console.log(e); + $.msg($.name, '', '请勿随意在BoxJs输入框修改内容\n建议通过脚本去获取cookie') + return []; + } + } +} +// prettier-ignore + +function Env(t, e) { + "undefined" != typeof process && JSON.stringify(process.env).indexOf("GITHUB") > -1 && process.exit(0); + class s { + constructor(t) { + this.env = t + } + send(t, e = "GET") { + t = "string" == typeof t ? { + url: t + } : t; + let s = this.get; + return "POST" === e && (s = this.post), new Promise((e, i) => { + s.call(this, t, (t, s, r) => { + t ? i(t) : e(s) + }) + }) + } + get(t) { + return this.send.call(this.env, t) + } + post(t) { + return this.send.call(this.env, t, "POST") + } + } + return new class { + constructor(t, e) { + this.name = t, this.http = new s(this), this.data = null, this.dataFile = "box.dat", this.logs = [], this.isMute = !1, this.isNeedRewrite = !1, this.logSeparator = "\n", this.startTime = (new Date).getTime(), Object.assign(this, e), this.log("", `🔔${this.name}, 开始!`) + } + isNode() { + return "undefined" != typeof module && !!module.exports + } + isQuanX() { + return "undefined" != typeof $task + } + isSurge() { + return "undefined" != typeof $httpClient && "undefined" == typeof $loon + } + isLoon() { + return "undefined" != typeof $loon + } + toObj(t, e = null) { + try { + return JSON.parse(t) + } catch { + return e + } + } + toStr(t, e = null) { + try { + return JSON.stringify(t) + } catch { + return e + } + } + getjson(t, e) { + let s = e; + const i = this.getdata(t); + if (i) try { + s = JSON.parse(this.getdata(t)) + } catch {} + return s + } + setjson(t, e) { + try { + return this.setdata(JSON.stringify(t), e) + } catch { + return !1 + } + } + getScript(t) { + return new Promise(e => { + this.get({ + url: t + }, (t, s, i) => e(i)) + }) + } + runScript(t, e) { + return new Promise(s => { + let i = this.getdata("@chavy_boxjs_userCfgs.httpapi"); + i = i ? i.replace(/\n/g, "").trim() : i; + let r = this.getdata("@chavy_boxjs_userCfgs.httpapi_timeout"); + r = r ? 1 * r : 20, r = e && e.timeout ? e.timeout : r; + const [o, h] = i.split("@"), n = { + url: `http://${h}/v1/scripting/evaluate`, + body: { + script_text: t, + mock_type: "cron", + timeout: r + }, + headers: { + "X-Key": o, + Accept: "*/*" + } + }; + this.post(n, (t, e, i) => s(i)) + }).catch(t => this.logErr(t)) + } + loaddata() { + if (!this.isNode()) return {}; { + this.fs = this.fs ? this.fs : require("fs"), this.path = this.path ? this.path : require("path"); + const t = this.path.resolve(this.dataFile), + e = this.path.resolve(process.cwd(), this.dataFile), + s = this.fs.existsSync(t), + i = !s && this.fs.existsSync(e); + if (!s && !i) return {}; { + const i = s ? t : e; + try { + return JSON.parse(this.fs.readFileSync(i)) + } catch (t) { + return {} + } + } + } + } + writedata() { + if (this.isNode()) { + this.fs = this.fs ? this.fs : require("fs"), this.path = this.path ? this.path : require("path"); + const t = this.path.resolve(this.dataFile), + e = this.path.resolve(process.cwd(), this.dataFile), + s = this.fs.existsSync(t), + i = !s && this.fs.existsSync(e), + r = JSON.stringify(this.data); + s ? this.fs.writeFileSync(t, r) : i ? this.fs.writeFileSync(e, r) : this.fs.writeFileSync(t, r) + } + } + lodash_get(t, e, s) { + const i = e.replace(/\[(\d+)\]/g, ".$1").split("."); + let r = t; + for (const t of i) + if (r = Object(r)[t], void 0 === r) return s; + return r + } + lodash_set(t, e, s) { + return Object(t) !== t ? t : (Array.isArray(e) || (e = e.toString().match(/[^.[\]]+/g) || []), e.slice(0, -1).reduce((t, s, i) => Object(t[s]) === t[s] ? t[s] : t[s] = Math.abs(e[i + 1]) >> 0 == +e[i + 1] ? [] : {}, t)[e[e.length - 1]] = s, t) + } + getdata(t) { + let e = this.getval(t); + if (/^@/.test(t)) { + const [, s, i] = /^@(.*?)\.(.*?)$/.exec(t), r = s ? this.getval(s) : ""; + if (r) try { + const t = JSON.parse(r); + e = t ? this.lodash_get(t, i, "") : e + } catch (t) { + e = "" + } + } + return e + } + setdata(t, e) { + let s = !1; + if (/^@/.test(e)) { + const [, i, r] = /^@(.*?)\.(.*?)$/.exec(e), o = this.getval(i), h = i ? "null" === o ? null : o || "{}" : "{}"; + try { + const e = JSON.parse(h); + this.lodash_set(e, r, t), s = this.setval(JSON.stringify(e), i) + } catch (e) { + const o = {}; + this.lodash_set(o, r, t), s = this.setval(JSON.stringify(o), i) + } + } else s = this.setval(t, e); + return s + } + getval(t) { + return this.isSurge() || this.isLoon() ? $persistentStore.read(t) : this.isQuanX() ? $prefs.valueForKey(t) : this.isNode() ? (this.data = this.loaddata(), this.data[t]) : this.data && this.data[t] || null + } + setval(t, e) { + return this.isSurge() || this.isLoon() ? $persistentStore.write(t, e) : this.isQuanX() ? $prefs.setValueForKey(t, e) : this.isNode() ? (this.data = this.loaddata(), this.data[e] = t, this.writedata(), !0) : this.data && this.data[e] || null + } + initGotEnv(t) { + this.got = this.got ? this.got : require("got"), this.cktough = this.cktough ? this.cktough : require("tough-cookie"), this.ckjar = this.ckjar ? this.ckjar : new this.cktough.CookieJar, t && (t.headers = t.headers ? t.headers : {}, void 0 === t.headers.Cookie && void 0 === t.cookieJar && (t.cookieJar = this.ckjar)) + } + get(t, e = (() => {})) { + t.headers && (delete t.headers["Content-Type"], delete t.headers["Content-Length"]), this.isSurge() || this.isLoon() ? (this.isSurge() && this.isNeedRewrite && (t.headers = t.headers || {}, Object.assign(t.headers, { + "X-Surge-Skip-Scripting": !1 + })), $httpClient.get(t, (t, s, i) => { + !t && s && (s.body = i, s.statusCode = s.status), e(t, s, i) + })) : this.isQuanX() ? (this.isNeedRewrite && (t.opts = t.opts || {}, Object.assign(t.opts, { + hints: !1 + })), $task.fetch(t).then(t => { + const { + statusCode: s, + statusCode: i, + headers: r, + body: o + } = t; + e(null, { + status: s, + statusCode: i, + headers: r, + body: o + }, o) + }, t => e(t))) : this.isNode() && (this.initGotEnv(t), this.got(t).on("redirect", (t, e) => { + try { + if (t.headers["set-cookie"]) { + const s = t.headers["set-cookie"].map(this.cktough.Cookie.parse).toString(); + s && this.ckjar.setCookieSync(s, null), e.cookieJar = this.ckjar + } + } catch (t) { + this.logErr(t) + } + }).then(t => { + const { + statusCode: s, + statusCode: i, + headers: r, + body: o + } = t; + e(null, { + status: s, + statusCode: i, + headers: r, + body: o + }, o) + }, t => { + const { + message: s, + response: i + } = t; + e(s, i, i && i.body) + })) + } + post(t, e = (() => {})) { + if (t.body && t.headers && !t.headers["Content-Type"] && (t.headers["Content-Type"] = "application/x-www-form-urlencoded"), t.headers && delete t.headers["Content-Length"], this.isSurge() || this.isLoon()) this.isSurge() && this.isNeedRewrite && (t.headers = t.headers || {}, Object.assign(t.headers, { + "X-Surge-Skip-Scripting": !1 + })), $httpClient.post(t, (t, s, i) => { + !t && s && (s.body = i, s.statusCode = s.status), e(t, s, i) + }); + else if (this.isQuanX()) t.method = "POST", this.isNeedRewrite && (t.opts = t.opts || {}, Object.assign(t.opts, { + hints: !1 + })), $task.fetch(t).then(t => { + const { + statusCode: s, + statusCode: i, + headers: r, + body: o + } = t; + e(null, { + status: s, + statusCode: i, + headers: r, + body: o + }, o) + }, t => e(t)); + else if (this.isNode()) { + this.initGotEnv(t); + const { + url: s, + ...i + } = t; + this.got.post(s, i).then(t => { + const { + statusCode: s, + statusCode: i, + headers: r, + body: o + } = t; + e(null, { + status: s, + statusCode: i, + headers: r, + body: o + }, o) + }, t => { + const { + message: s, + response: i + } = t; + e(s, i, i && i.body) + }) + } + } + time(t, e = null) { + const s = e ? new Date(e) : new Date; + let i = { + "M+": s.getMonth() + 1, + "d+": s.getDate(), + "H+": s.getHours(), + "m+": s.getMinutes(), + "s+": s.getSeconds(), + "q+": Math.floor((s.getMonth() + 3) / 3), + S: s.getMilliseconds() + }; + /(y+)/.test(t) && (t = t.replace(RegExp.$1, (s.getFullYear() + "").substr(4 - RegExp.$1.length))); + for (let e in i) new RegExp("(" + e + ")").test(t) && (t = t.replace(RegExp.$1, 1 == RegExp.$1.length ? i[e] : ("00" + i[e]).substr(("" + i[e]).length))); + return t + } + msg(e = t, s = "", i = "", r) { + const o = t => { + if (!t) return t; + if ("string" == typeof t) return this.isLoon() ? t : this.isQuanX() ? { + "open-url": t + } : this.isSurge() ? { + url: t + } : void 0; + if ("object" == typeof t) { + if (this.isLoon()) { + let e = t.openUrl || t.url || t["open-url"], + s = t.mediaUrl || t["media-url"]; + return { + openUrl: e, + mediaUrl: s + } + } + if (this.isQuanX()) { + let e = t["open-url"] || t.url || t.openUrl, + s = t["media-url"] || t.mediaUrl; + return { + "open-url": e, + "media-url": s + } + } + if (this.isSurge()) { + let e = t.url || t.openUrl || t["open-url"]; + return { + url: e + } + } + } + }; + if (this.isMute || (this.isSurge() || this.isLoon() ? $notification.post(e, s, i, o(r)) : this.isQuanX() && $notify(e, s, i, o(r))), !this.isMuteLog) { + // let t = ["", "==============📣系统通知📣=============="]; + // t.push(e), s && t.push(s), i && t.push(i), console.log(t.join("\n")), this.logs = this.logs.concat(t) + } + } + log(...t) { + // t.length > 0 && (this.logs = [...this.logs, ...t]), console.log(t.join(this.logSeparator)) + } + logErr(t, e) { + const s = !this.isSurge() && !this.isQuanX() && !this.isLoon(); + s ? this.log("", `❗️${this.name}, 错误!`, t.stack) : this.log("", `❗️${this.name}, 错误!`, t) + } + wait(t) { + return new Promise(e => setTimeout(e, t)) + } + done(t = {}) { + const e = (new Date).getTime(), + s = (e - this.startTime) / 1e3; + this.log("", `🔔${this.name}, 结束! 🕛 ${s} 秒`), this.log(), (this.isSurge() || this.isQuanX() || this.isLoon()) && $done(t) + } + }(t, e) +} \ No newline at end of file diff --git a/jd_wish.js b/jd_wish.js index 52b2f07..5de0061 100644 --- a/jd_wish.js +++ b/jd_wish.js @@ -1,17 +1,32 @@ /* 众筹许愿池 活动入口:京东-京东众筹-众筹许愿池 -cron "12 0,15 * * *" script-path=jd_wish.js,tag=众筹许愿池 - */ +脚本兼容: QuantumultX, Surge, Loon, JSBox, Node.js +===============Quantumultx=============== +[task_local] +#众筹许愿池 +40 0,2 * * * https://raw.githubusercontent.com/KingRan/JDJB/main/jd_wish.js, tag=众筹许愿池, img-url=https://raw.githubusercontent.com/Orz-3/mini/master/Color/jd.png, enabled=true +================Loon============== +[Script] +cron "40 0,2 * * *" script-path=https://raw.githubusercontent.com/KingRan/JDJB/main/jd_wish.js,tag=众筹许愿池 + +===============Surge================= +众筹许愿池 = type=cron,cronexp="40 0,2 * * *",wake-system=1,timeout=3600,script-path=https://raw.githubusercontent.com/KingRan/JDJB/main/jd_wish.js + +============小火箭========= +众筹许愿池 = type=cron,script-path=https://raw.githubusercontent.com/KingRan/JDJB/main/jd_wish.js, cronexpr="40 0,2 * * *", timeout=3600, enable=true + */ const $ = new Env('众筹许愿池'); const notify = $.isNode() ? require('./sendNotify') : ''; +//Node.js用户请在jdCookie.js处填写京东ck; const jdCookieNode = $.isNode() ? require('./jdCookie.js') : ''; let message = '', allMessage = ''; +//IOS等用户直接用NobyDa的jd cookie let cookiesArr = [], cookie = ''; const JD_API_HOST = 'https://api.m.jd.com/client.action'; -let appIdArr = ['1EFNVyqeH','1FFVQyqw','1EFRWxKuG', '1E1xZy6s']; -let appNameArr = ['京东电器','1111点心动','许愿抽好礼', 'PLUS生活特权']; +let appIdArr = ['1FFVQyqw','1EFRWxKuG', '1E1xZy6s']; +let appNameArr = ['1111点心动','许愿抽好礼', 'PLUS生活特权']; let appId, appName; $.shareCode = []; if ($.isNode()) { @@ -35,9 +50,16 @@ if ($.isNode()) { $.isLogin = true; $.nickName = ''; message = ''; - + await TotalBean(); console.log(`\n*******开始【京东账号${$.index}】${$.nickName || $.UserName}*********\n`); + if (!$.isLogin) { + $.msg($.name, `【提示】cookie已失效`, `京东账号${$.index} ${$.nickName || $.UserName}\n请重新登录获取\nhttps://bean.m.jd.com/bean/signIndex.action`, {"open-url": "https://bean.m.jd.com/bean/signIndex.action"}); + if ($.isNode()) { + await notify.sendNotify(`${$.name}cookie已失效 - ${$.UserName}`, `京东账号${$.index} ${$.UserName}\n请重新登录获取cookie`); + } + continue + } for (let j = 0; j < appIdArr.length; j++) { appId = appIdArr[j] appName = appNameArr[j] @@ -46,7 +68,11 @@ if ($.isNode()) { } } } - let res = []; + if (allMessage) { + if ($.isNode()) await notify.sendNotify($.name, allMessage); + $.msg($.name, '', allMessage) + } + let res = await getAuthorShareCode('https://gitee.com/KingRan521/JD-Scripts/raw/master/shareCodes/wish.json') $.shareCode = [...$.shareCode, ...(res || [])] for (let i = 0; i < cookiesArr.length; i++) { if (cookiesArr[i]) { @@ -113,7 +139,8 @@ async function jd_wish() { async function healthyDay_getHomeData(type = true) { return new Promise(async resolve => { - $.post(taskUrl('healthyDay_getHomeData', {"appId":appId,"taskToken":"","channelId":1}), async (err, resp, data) => { + // console.log(taskUrl('healthyDay_getHomeData', { "appId": appId, "taskToken": "", "channelId": 1 })); + $.post(taskUrl('healthyDay_getHomeData', { "appId": appId, "taskToken": "", "channelId": 1 }), async (err, resp, data) => { try { if (err) { console.log(`${JSON.stringify(err)}`) @@ -121,37 +148,53 @@ async function healthyDay_getHomeData(type = true) { } else { if (safeGet(data)) { data = JSON.parse(data); + // console.log(data); if (type) { for (let key of Object.keys(data.data.result.hotTaskVos).reverse()) { let vo = data.data.result.hotTaskVos[key] if (vo.status !== 2) { - if (vo.taskType === 12) { + if (vo.taskType === 13 || vo.taskType === 12) { console.log(`点击热区`) - await harmony_collectScore({"appId":appId,"taskToken":vo.simpleRecordInfoVo.taskToken,"taskId":vo.taskId,"actionType":"0"}, vo.taskType) - } - }else { + await harmony_collectScore({ "appId": appId, "taskToken": vo.simpleRecordInfoVo.taskToken, "taskId": vo.taskId, "actionType": "0" }, vo.taskType) + } else { console.log(`【${vo.taskName}】已完成\n`) } - } + } + } for (let key of Object.keys(data.data.result.taskVos).reverse()) { let vo = data.data.result.taskVos[key] - if (vo.status !== 2 && vo.status !== 0) { + if (vo.status !== 2) { if (vo.taskType === 13 || vo.taskType === 12) { console.log(`签到`) - await harmony_collectScore({"appId":appId,"taskToken":vo.simpleRecordInfoVo.taskToken,"taskId":vo.taskId,"actionType":"0"}, vo.taskType) + await harmony_collectScore({ "appId": appId, "taskToken": vo.simpleRecordInfoVo.taskToken, "taskId": vo.taskId, "actionType": "0" }, vo.taskType) } else if (vo.taskType === 1) { for (let key of Object.keys(vo.followShopVo)) { let followShopVo = vo.followShopVo[key] if (followShopVo.status !== 2) { console.log(`【${followShopVo.shopName}】${vo.subTitleName}`) - await harmony_collectScore({"appId":appId,"taskToken":followShopVo.taskToken,"taskId":vo.taskId,"actionType":"0"}) + await harmony_collectScore({ "appId": appId, "taskToken": followShopVo.taskToken, "taskId": vo.taskId, "actionType": "0" }) + } + } + } else if (vo.taskType === 5) { + for (let key of Object.keys(vo.browseShopVo)) { + let browseShopVo = vo.browseShopVo[key] + if (browseShopVo.status !== 2) { + console.log(`【${browseShopVo.skuName}】${vo.subTitleName}`) + await harmony_collectScore({ "appId": appId, "taskToken": browseShopVo.taskToken, "taskId": vo.taskId, "actionType": "0" }) + } + } + } else if (vo.taskType === 15) { + for (let key of Object.keys(vo.productInfoVos)) { + let productInfoVos = vo.productInfoVos[key] + if (productInfoVos.status !== 2) { + console.log(`【${productInfoVos.skuName}】${vo.subTitleName}`) + await harmony_collectScore({ "appId": appId, "taskToken": productInfoVos.taskToken, "taskId": vo.taskId, "actionType": "0" }) } } } else if (vo.taskType === 3) { - for (let key of Object.keys(vo.shoppingActivityVos)) { + for (let key of Object.keys(vo.shoppingActivityVos)) { let shoppingActivityVos = vo.shoppingActivityVos[key] if (shoppingActivityVos.status !== 2) { - // console.log(`【${shoppingActivityVos.skuName}】${vo.subTitleName}`) console.log(`【${vo.subTitleName}】`) await harmony_collectScore({ "appId": appId, "taskToken": shoppingActivityVos.taskToken, "taskId": vo.taskId, "actionType": "0" }) } @@ -161,21 +204,24 @@ async function healthyDay_getHomeData(type = true) { let productInfoVos = vo.productInfoVos[key] if (productInfoVos.status !== 2) { console.log(`【${productInfoVos.skuName}】${vo.subTitleName}`) - await harmony_collectScore({"appId":appId,"taskToken":productInfoVos.taskToken,"taskId":vo.taskId,"actionType":"1"}) + await harmony_collectScore({ "appId": appId, "taskToken": productInfoVos.taskToken, "taskId": vo.taskId, "actionType": "1" }) await $.wait(vo.waitDuration * 1000) - await harmony_collectScore({"appId":appId,"taskToken":productInfoVos.taskToken,"taskId":vo.taskId,"actionType":"0"}) + await harmony_collectScore({ "appId": appId, "taskToken": productInfoVos.taskToken, "taskId": vo.taskId, "actionType": "0" }) } } + } else if (vo.taskType === 27 && vo.taskId === 18) { + console.log(`【${vo.subTitleName}】`) + await harmony_collectScore({ "appId": appId, "taskToken": vo.productInfoVos[0].taskToken, "taskId": vo.taskId, "actionType": "0" }) } else if (vo.taskType === 9 || vo.taskType === 26) { for (let key of Object.keys(vo.shoppingActivityVos)) { let shoppingActivityVos = vo.shoppingActivityVos[key] if (shoppingActivityVos.status !== 2) { console.log(`【${shoppingActivityVos.title}】${vo.subTitleName}`) if (vo.taskType === 9) { - await harmony_collectScore({"appId":appId,"taskToken":shoppingActivityVos.taskToken,"taskId":vo.taskId,"actionType":"1"}) + await harmony_collectScore({ "appId": appId, "taskToken": shoppingActivityVos.taskToken, "taskId": vo.taskId, "actionType": "1" }) await $.wait(vo.waitDuration * 1000) } - await harmony_collectScore({"appId":appId,"taskToken":shoppingActivityVos.taskToken,"taskId":vo.taskId,"actionType":"0"}) + await harmony_collectScore({ "appId": appId, "taskToken": shoppingActivityVos.taskToken, "taskId": vo.taskId, "actionType": "0" }) } } } else if (vo.taskType === 14) { @@ -216,7 +262,7 @@ function harmony_collectScore(body = {}, taskType = '') { if (data && data.data && data.data.bizCode === 0) { if (taskType === 13) { console.log(`签到成功:获得${data.data.result.score}金币\n`) - } else if (body.taskId == 6) { + } else if (body.taskId == 5) { console.log(`助力成功:您的好友获得${data.data.result.score}金币\n`) } else { console.log(`完成任务:获得${data.data.result.score}金币\n`) @@ -224,7 +270,7 @@ function harmony_collectScore(body = {}, taskType = '') { } else { if (taskType === 13) { console.log(`签到失败:${data.data.bizMsg}\n`) - } else if (body.taskId == 6) { + } else if (body.taskId == 5) { console.log(`助力失败:${data.data.bizMsg || data.msg}\n`) if (data.code === -30001 || (data.data && data.data.bizCode === 108)) $.canHelp = false if (data.data.bizCode === 103) $.delcode = true @@ -242,6 +288,7 @@ function harmony_collectScore(body = {}, taskType = '') { }) }) } + function interact_template_getLotteryResult() { return new Promise(resolve => { $.post(taskUrl('interact_template_getLotteryResult', {"appId":appId}), (err, resp, data) => { @@ -252,14 +299,17 @@ function interact_template_getLotteryResult() { } else { if (safeGet(data)) { data = JSON.parse(data); - let userAwardsCacheDto = data && data.data && data.data.result && data.data.result.userAwardsCacheDto + let userAwardsCacheDto = data && data.data && data.data.result && data.data.result.userAwardsCacheDto; if (userAwardsCacheDto) { if (userAwardsCacheDto.type === 2) { - console.log(`抽中:${userAwardsCacheDto.jBeanAwardVo.quantity}${userAwardsCacheDto.jBeanAwardVo.ext || `京豆`}`) + console.log(`抽中:${userAwardsCacheDto.jBeanAwardVo.quantity}${userAwardsCacheDto.jBeanAwardVo.ext || `京豆`}`); } else if (userAwardsCacheDto.type === 0) { console.log(`很遗憾未中奖~`) + } else if (userAwardsCacheDto.type === 1) { + console.log(`抽中:${userAwardsCacheDto.couponVo.prizeName},金额${userAwardsCacheDto.couponVo.usageThreshold}-${userAwardsCacheDto.couponVo.quota},使用时间${userAwardsCacheDto.couponVo.useTimeRange}`); } else { - console.log(JSON.stringify(data)) + console.log(`抽中:${JSON.stringify(data)}`); + message += `抽中:${JSON.stringify(data)}\n`; } } else { $.canLottery = false @@ -327,6 +377,50 @@ function getAuthorShareCode(url) { }) } +function TotalBean() { + return new Promise(async resolve => { + const options = { + "url": `https://wq.jd.com/user/info/QueryJDUserInfo?sceneval=2`, + "headers": { + "Accept": "application/json,text/plain, */*", + "Content-Type": "application/x-www-form-urlencoded", + "Accept-Encoding": "gzip, deflate, br", + "Accept-Language": "zh-cn", + "Connection": "keep-alive", + "Cookie": cookie, + "Referer": "https://wqs.jd.com/my/jingdou/my.shtml?sceneval=2", + "User-Agent": $.isNode() ? (process.env.JD_USER_AGENT ? process.env.JD_USER_AGENT : (require('./USER_AGENTS').USER_AGENT)) : ($.getdata('JDUA') ? $.getdata('JDUA') : "jdapp;iPhone;9.4.4;14.3;network/4g;Mozilla/5.0 (iPhone; CPU iPhone OS 14_3 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Mobile/15E148;supportJDSHWK/1") + } + } + $.post(options, (err, resp, data) => { + try { + if (err) { + console.log(`${JSON.stringify(err)}`) + console.log(`${$.name} API请求失败,请检查网路重试`) + } else { + if (data) { + data = JSON.parse(data); + if (data['retcode'] === 13) { + $.isLogin = false; //cookie过期 + return + } + if (data['retcode'] === 0) { + $.nickName = (data['base'] && data['base'].nickname) || $.UserName; + } else { + $.nickName = $.UserName + } + } else { + console.log(`京东服务器返回空数据`) + } + } + } catch (e) { + $.logErr(e, resp) + } finally { + resolve(); + } + }) + }) +} function safeGet(data) { try { if (typeof JSON.parse(data) == "object") { @@ -349,6 +443,5 @@ function jsonParse(str) { } } } - // prettier-ignore -function Env(t,e){"undefined"!=typeof process&&JSON.stringify(process.env).indexOf("GITHUB")>-1&&process.exit(0);class s{constructor(t){this.env=t}send(t,e="GET"){t="string"==typeof t?{url:t}:t;let s=this.get;return"POST"===e&&(s=this.post),new Promise((e,i)=>{s.call(this,t,(t,s,r)=>{t?i(t):e(s)})})}get(t){return this.send.call(this.env,t)}post(t){return this.send.call(this.env,t,"POST")}}return new class{constructor(t,e){this.name=t,this.http=new s(this),this.data=null,this.dataFile="box.dat",this.logs=[],this.isMute=!1,this.isNeedRewrite=!1,this.logSeparator="\n",this.startTime=(new Date).getTime(),Object.assign(this,e),this.log("",`🔔${this.name}, 开始!`)}isNode(){return"undefined"!=typeof module&&!!module.exports}isQuanX(){return"undefined"!=typeof $task}isSurge(){return"undefined"!=typeof $httpClient&&"undefined"==typeof $loon}isLoon(){return"undefined"!=typeof $loon}toObj(t,e=null){try{return JSON.parse(t)}catch{return e}}toStr(t,e=null){try{return JSON.stringify(t)}catch{return e}}getjson(t,e){let s=e;const i=this.getdata(t);if(i)try{s=JSON.parse(this.getdata(t))}catch{}return s}setjson(t,e){try{return this.setdata(JSON.stringify(t),e)}catch{return!1}}getScript(t){return new Promise(e=>{this.get({url:t},(t,s,i)=>e(i))})}runScript(t,e){return new Promise(s=>{let i=this.getdata("@chavy_boxjs_userCfgs.httpapi");i=i?i.replace(/\n/g,"").trim():i;let r=this.getdata("@chavy_boxjs_userCfgs.httpapi_timeout");r=r?1*r:20,r=e&&e.timeout?e.timeout:r;const[o,h]=i.split("@"),n={url:`http://${h}/v1/scripting/evaluate`,body:{script_text:t,mock_type:"cron",timeout:r},headers:{"X-Key":o,Accept:"*/*"}};this.post(n,(t,e,i)=>s(i))}).catch(t=>this.logErr(t))}loaddata(){if(!this.isNode())return{};{this.fs=this.fs?this.fs:require("fs"),this.path=this.path?this.path:require("path");const t=this.path.resolve(this.dataFile),e=this.path.resolve(process.cwd(),this.dataFile),s=this.fs.existsSync(t),i=!s&&this.fs.existsSync(e);if(!s&&!i)return{};{const i=s?t:e;try{return JSON.parse(this.fs.readFileSync(i))}catch(t){return{}}}}}writedata(){if(this.isNode()){this.fs=this.fs?this.fs:require("fs"),this.path=this.path?this.path:require("path");const t=this.path.resolve(this.dataFile),e=this.path.resolve(process.cwd(),this.dataFile),s=this.fs.existsSync(t),i=!s&&this.fs.existsSync(e),r=JSON.stringify(this.data);s?this.fs.writeFileSync(t,r):i?this.fs.writeFileSync(e,r):this.fs.writeFileSync(t,r)}}lodash_get(t,e,s){const i=e.replace(/\[(\d+)\]/g,".$1").split(".");let r=t;for(const t of i)if(r=Object(r)[t],void 0===r)return s;return r}lodash_set(t,e,s){return Object(t)!==t?t:(Array.isArray(e)||(e=e.toString().match(/[^.[\]]+/g)||[]),e.slice(0,-1).reduce((t,s,i)=>Object(t[s])===t[s]?t[s]:t[s]=Math.abs(e[i+1])>>0==+e[i+1]?[]:{},t)[e[e.length-1]]=s,t)}getdata(t){let e=this.getval(t);if(/^@/.test(t)){const[,s,i]=/^@(.*?)\.(.*?)$/.exec(t),r=s?this.getval(s):"";if(r)try{const t=JSON.parse(r);e=t?this.lodash_get(t,i,""):e}catch(t){e=""}}return e}setdata(t,e){let s=!1;if(/^@/.test(e)){const[,i,r]=/^@(.*?)\.(.*?)$/.exec(e),o=this.getval(i),h=i?"null"===o?null:o||"{}":"{}";try{const e=JSON.parse(h);this.lodash_set(e,r,t),s=this.setval(JSON.stringify(e),i)}catch(e){const o={};this.lodash_set(o,r,t),s=this.setval(JSON.stringify(o),i)}}else s=this.setval(t,e);return s}getval(t){return this.isSurge()||this.isLoon()?$persistentStore.read(t):this.isQuanX()?$prefs.valueForKey(t):this.isNode()?(this.data=this.loaddata(),this.data[t]):this.data&&this.data[t]||null}setval(t,e){return this.isSurge()||this.isLoon()?$persistentStore.write(t,e):this.isQuanX()?$prefs.setValueForKey(t,e):this.isNode()?(this.data=this.loaddata(),this.data[e]=t,this.writedata(),!0):this.data&&this.data[e]||null}initGotEnv(t){this.got=this.got?this.got:require("got"),this.cktough=this.cktough?this.cktough:require("tough-cookie"),this.ckjar=this.ckjar?this.ckjar:new this.cktough.CookieJar,t&&(t.headers=t.headers?t.headers:{},void 0===t.headers.Cookie&&void 0===t.cookieJar&&(t.cookieJar=this.ckjar))}get(t,e=(()=>{})){t.headers&&(delete t.headers["Content-Type"],delete t.headers["Content-Length"]),this.isSurge()||this.isLoon()?(this.isSurge()&&this.isNeedRewrite&&(t.headers=t.headers||{},Object.assign(t.headers,{"X-Surge-Skip-Scripting":!1})),$httpClient.get(t,(t,s,i)=>{!t&&s&&(s.body=i,s.statusCode=s.status),e(t,s,i)})):this.isQuanX()?(this.isNeedRewrite&&(t.opts=t.opts||{},Object.assign(t.opts,{hints:!1})),$task.fetch(t).then(t=>{const{statusCode:s,statusCode:i,headers:r,body:o}=t;e(null,{status:s,statusCode:i,headers:r,body:o},o)},t=>e(t))):this.isNode()&&(this.initGotEnv(t),this.got(t).on("redirect",(t,e)=>{try{if(t.headers["set-cookie"]){const s=t.headers["set-cookie"].map(this.cktough.Cookie.parse).toString();s&&this.ckjar.setCookieSync(s,null),e.cookieJar=this.ckjar}}catch(t){this.logErr(t)}}).then(t=>{const{statusCode:s,statusCode:i,headers:r,body:o}=t;e(null,{status:s,statusCode:i,headers:r,body:o},o)},t=>{const{message:s,response:i}=t;e(s,i,i&&i.body)}))}post(t,e=(()=>{})){if(t.body&&t.headers&&!t.headers["Content-Type"]&&(t.headers["Content-Type"]="application/x-www-form-urlencoded"),t.headers&&delete t.headers["Content-Length"],this.isSurge()||this.isLoon())this.isSurge()&&this.isNeedRewrite&&(t.headers=t.headers||{},Object.assign(t.headers,{"X-Surge-Skip-Scripting":!1})),$httpClient.post(t,(t,s,i)=>{!t&&s&&(s.body=i,s.statusCode=s.status),e(t,s,i)});else if(this.isQuanX())t.method="POST",this.isNeedRewrite&&(t.opts=t.opts||{},Object.assign(t.opts,{hints:!1})),$task.fetch(t).then(t=>{const{statusCode:s,statusCode:i,headers:r,body:o}=t;e(null,{status:s,statusCode:i,headers:r,body:o},o)},t=>e(t));else if(this.isNode()){this.initGotEnv(t);const{url:s,...i}=t;this.got.post(s,i).then(t=>{const{statusCode:s,statusCode:i,headers:r,body:o}=t;e(null,{status:s,statusCode:i,headers:r,body:o},o)},t=>{const{message:s,response:i}=t;e(s,i,i&&i.body)})}}time(t,e=null){const s=e?new Date(e):new Date;let i={"M+":s.getMonth()+1,"d+":s.getDate(),"H+":s.getHours(),"m+":s.getMinutes(),"s+":s.getSeconds(),"q+":Math.floor((s.getMonth()+3)/3),S:s.getMilliseconds()};/(y+)/.test(t)&&(t=t.replace(RegExp.$1,(s.getFullYear()+"").substr(4-RegExp.$1.length)));for(let e in i)new RegExp("("+e+")").test(t)&&(t=t.replace(RegExp.$1,1==RegExp.$1.length?i[e]:("00"+i[e]).substr((""+i[e]).length)));return t}msg(e=t,s="",i="",r){const o=t=>{if(!t)return t;if("string"==typeof t)return this.isLoon()?t:this.isQuanX()?{"open-url":t}:this.isSurge()?{url:t}:void 0;if("object"==typeof t){if(this.isLoon()){let e=t.openUrl||t.url||t["open-url"],s=t.mediaUrl||t["media-url"];return{openUrl:e,mediaUrl:s}}if(this.isQuanX()){let e=t["open-url"]||t.url||t.openUrl,s=t["media-url"]||t.mediaUrl;return{"open-url":e,"media-url":s}}if(this.isSurge()){let e=t.url||t.openUrl||t["open-url"];return{url:e}}}};if(this.isMute||(this.isSurge()||this.isLoon()?$notification.post(e,s,i,o(r)):this.isQuanX()&&$notify(e,s,i,o(r))),!this.isMuteLog){let t=["","==============📣系统通知📣=============="];t.push(e),s&&t.push(s),i&&t.push(i),console.log(t.join("\n")),this.logs=this.logs.concat(t)}}log(...t){t.length>0&&(this.logs=[...this.logs,...t]),console.log(t.join(this.logSeparator))}logErr(t,e){const s=!this.isSurge()&&!this.isQuanX()&&!this.isLoon();s?this.log("",`❗️${this.name}, 错误!`,t.stack):this.log("",`❗️${this.name}, 错误!`,t)}wait(t){return new Promise(e=>setTimeout(e,t))}done(t={}){const e=(new Date).getTime(),s=(e-this.startTime)/1e3;this.log("",`🔔${this.name}, 结束! 🕛 ${s} 秒`),this.log(),(this.isSurge()||this.isQuanX()||this.isLoon())&&$done(t)}}(t,e)} \ No newline at end of file +function Env(t,e){"undefined"!=typeof process&&JSON.stringify(process.env).indexOf("GITHUB")>-1&&process.exit(0);class s{constructor(t){this.env=t}send(t,e="GET"){t="string"==typeof t?{url:t}:t;let s=this.get;return"POST"===e&&(s=this.post),new Promise((e,i)=>{s.call(this,t,(t,s,r)=>{t?i(t):e(s)})})}get(t){return this.send.call(this.env,t)}post(t){return this.send.call(this.env,t,"POST")}}return new class{constructor(t,e){this.name=t,this.http=new s(this),this.data=null,this.dataFile="box.dat",this.logs=[],this.isMute=!1,this.isNeedRewrite=!1,this.logSeparator="\n",this.startTime=(new Date).getTime(),Object.assign(this,e),this.log("",`🔔${this.name}, 开始!`)}isNode(){return"undefined"!=typeof module&&!!module.exports}isQuanX(){return"undefined"!=typeof $task}isSurge(){return"undefined"!=typeof $httpClient&&"undefined"==typeof $loon}isLoon(){return"undefined"!=typeof $loon}toObj(t,e=null){try{return JSON.parse(t)}catch{return e}}toStr(t,e=null){try{return JSON.stringify(t)}catch{return e}}getjson(t,e){let s=e;const i=this.getdata(t);if(i)try{s=JSON.parse(this.getdata(t))}catch{}return s}setjson(t,e){try{return this.setdata(JSON.stringify(t),e)}catch{return!1}}getScript(t){return new Promise(e=>{this.get({url:t},(t,s,i)=>e(i))})}runScript(t,e){return new Promise(s=>{let i=this.getdata("@chavy_boxjs_userCfgs.httpapi");i=i?i.replace(/\n/g,"").trim():i;let r=this.getdata("@chavy_boxjs_userCfgs.httpapi_timeout");r=r?1*r:20,r=e&&e.timeout?e.timeout:r;const[o,h]=i.split("@"),n={url:`http://${h}/v1/scripting/evaluate`,body:{script_text:t,mock_type:"cron",timeout:r},headers:{"X-Key":o,Accept:"*/*"}};this.post(n,(t,e,i)=>s(i))}).catch(t=>this.logErr(t))}loaddata(){if(!this.isNode())return{};{this.fs=this.fs?this.fs:require("fs"),this.path=this.path?this.path:require("path");const t=this.path.resolve(this.dataFile),e=this.path.resolve(process.cwd(),this.dataFile),s=this.fs.existsSync(t),i=!s&&this.fs.existsSync(e);if(!s&&!i)return{};{const i=s?t:e;try{return JSON.parse(this.fs.readFileSync(i))}catch(t){return{}}}}}writedata(){if(this.isNode()){this.fs=this.fs?this.fs:require("fs"),this.path=this.path?this.path:require("path");const t=this.path.resolve(this.dataFile),e=this.path.resolve(process.cwd(),this.dataFile),s=this.fs.existsSync(t),i=!s&&this.fs.existsSync(e),r=JSON.stringify(this.data);s?this.fs.writeFileSync(t,r):i?this.fs.writeFileSync(e,r):this.fs.writeFileSync(t,r)}}lodash_get(t,e,s){const i=e.replace(/\[(\d+)\]/g,".$1").split(".");let r=t;for(const t of i)if(r=Object(r)[t],void 0===r)return s;return r}lodash_set(t,e,s){return Object(t)!==t?t:(Array.isArray(e)||(e=e.toString().match(/[^.[\]]+/g)||[]),e.slice(0,-1).reduce((t,s,i)=>Object(t[s])===t[s]?t[s]:t[s]=Math.abs(e[i+1])>>0==+e[i+1]?[]:{},t)[e[e.length-1]]=s,t)}getdata(t){let e=this.getval(t);if(/^@/.test(t)){const[,s,i]=/^@(.*?)\.(.*?)$/.exec(t),r=s?this.getval(s):"";if(r)try{const t=JSON.parse(r);e=t?this.lodash_get(t,i,""):e}catch(t){e=""}}return e}setdata(t,e){let s=!1;if(/^@/.test(e)){const[,i,r]=/^@(.*?)\.(.*?)$/.exec(e),o=this.getval(i),h=i?"null"===o?null:o||"{}":"{}";try{const e=JSON.parse(h);this.lodash_set(e,r,t),s=this.setval(JSON.stringify(e),i)}catch(e){const o={};this.lodash_set(o,r,t),s=this.setval(JSON.stringify(o),i)}}else s=this.setval(t,e);return s}getval(t){return this.isSurge()||this.isLoon()?$persistentStore.read(t):this.isQuanX()?$prefs.valueForKey(t):this.isNode()?(this.data=this.loaddata(),this.data[t]):this.data&&this.data[t]||null}setval(t,e){return this.isSurge()||this.isLoon()?$persistentStore.write(t,e):this.isQuanX()?$prefs.setValueForKey(t,e):this.isNode()?(this.data=this.loaddata(),this.data[e]=t,this.writedata(),!0):this.data&&this.data[e]||null}initGotEnv(t){this.got=this.got?this.got:require("got"),this.cktough=this.cktough?this.cktough:require("tough-cookie"),this.ckjar=this.ckjar?this.ckjar:new this.cktough.CookieJar,t&&(t.headers=t.headers?t.headers:{},void 0===t.headers.Cookie&&void 0===t.cookieJar&&(t.cookieJar=this.ckjar))}get(t,e=(()=>{})){t.headers&&(delete t.headers["Content-Type"],delete t.headers["Content-Length"]),this.isSurge()||this.isLoon()?(this.isSurge()&&this.isNeedRewrite&&(t.headers=t.headers||{},Object.assign(t.headers,{"X-Surge-Skip-Scripting":!1})),$httpClient.get(t,(t,s,i)=>{!t&&s&&(s.body=i,s.statusCode=s.status),e(t,s,i)})):this.isQuanX()?(this.isNeedRewrite&&(t.opts=t.opts||{},Object.assign(t.opts,{hints:!1})),$task.fetch(t).then(t=>{const{statusCode:s,statusCode:i,headers:r,body:o}=t;e(null,{status:s,statusCode:i,headers:r,body:o},o)},t=>e(t))):this.isNode()&&(this.initGotEnv(t),this.got(t).on("redirect",(t,e)=>{try{if(t.headers["set-cookie"]){const s=t.headers["set-cookie"].map(this.cktough.Cookie.parse).toString();s&&this.ckjar.setCookieSync(s,null),e.cookieJar=this.ckjar}}catch(t){this.logErr(t)}}).then(t=>{const{statusCode:s,statusCode:i,headers:r,body:o}=t;e(null,{status:s,statusCode:i,headers:r,body:o},o)},t=>{const{message:s,response:i}=t;e(s,i,i&&i.body)}))}post(t,e=(()=>{})){if(t.body&&t.headers&&!t.headers["Content-Type"]&&(t.headers["Content-Type"]="application/x-www-form-urlencoded"),t.headers&&delete t.headers["Content-Length"],this.isSurge()||this.isLoon())this.isSurge()&&this.isNeedRewrite&&(t.headers=t.headers||{},Object.assign(t.headers,{"X-Surge-Skip-Scripting":!1})),$httpClient.post(t,(t,s,i)=>{!t&&s&&(s.body=i,s.statusCode=s.status),e(t,s,i)});else if(this.isQuanX())t.method="POST",this.isNeedRewrite&&(t.opts=t.opts||{},Object.assign(t.opts,{hints:!1})),$task.fetch(t).then(t=>{const{statusCode:s,statusCode:i,headers:r,body:o}=t;e(null,{status:s,statusCode:i,headers:r,body:o},o)},t=>e(t));else if(this.isNode()){this.initGotEnv(t);const{url:s,...i}=t;this.got.post(s,i).then(t=>{const{statusCode:s,statusCode:i,headers:r,body:o}=t;e(null,{status:s,statusCode:i,headers:r,body:o},o)},t=>{const{message:s,response:i}=t;e(s,i,i&&i.body)})}}time(t,e=null){const s=e?new Date(e):new Date;let i={"M+":s.getMonth()+1,"d+":s.getDate(),"H+":s.getHours(),"m+":s.getMinutes(),"s+":s.getSeconds(),"q+":Math.floor((s.getMonth()+3)/3),S:s.getMilliseconds()};/(y+)/.test(t)&&(t=t.replace(RegExp.$1,(s.getFullYear()+"").substr(4-RegExp.$1.length)));for(let e in i)new RegExp("("+e+")").test(t)&&(t=t.replace(RegExp.$1,1==RegExp.$1.length?i[e]:("00"+i[e]).substr((""+i[e]).length)));return t}msg(e=t,s="",i="",r){const o=t=>{if(!t)return t;if("string"==typeof t)return this.isLoon()?t:this.isQuanX()?{"open-url":t}:this.isSurge()?{url:t}:void 0;if("object"==typeof t){if(this.isLoon()){let e=t.openUrl||t.url||t["open-url"],s=t.mediaUrl||t["media-url"];return{openUrl:e,mediaUrl:s}}if(this.isQuanX()){let e=t["open-url"]||t.url||t.openUrl,s=t["media-url"]||t.mediaUrl;return{"open-url":e,"media-url":s}}if(this.isSurge()){let e=t.url||t.openUrl||t["open-url"];return{url:e}}}};if(this.isMute||(this.isSurge()||this.isLoon()?$notification.post(e,s,i,o(r)):this.isQuanX()&&$notify(e,s,i,o(r))),!this.isMuteLog){let t=["","==============📣系统通知📣=============="];t.push(e),s&&t.push(s),i&&t.push(i),console.log(t.join("\n")),this.logs=this.logs.concat(t)}}log(...t){t.length>0&&(this.logs=[...this.logs,...t]),console.log(t.join(this.logSeparator))}logErr(t,e){const s=!this.isSurge()&&!this.isQuanX()&&!this.isLoon();s?this.log("",`❗️${this.name}, 错误!`,t.stack):this.log("",`❗️${this.name}, 错误!`,t)}wait(t){return new Promise(e=>setTimeout(e,t))}done(t={}){const e=(new Date).getTime(),s=(e-this.startTime)/1e3;this.log("",`🔔${this.name}, 结束! 🕛 ${s} 秒`),this.log(),(this.isSurge()||this.isQuanX()||this.isLoon())&&$done(t)}}(t,e)} diff --git a/jd_yqhy.py b/jd_yqhy.py index 6f58987..9dfde01 100644 --- a/jd_yqhy.py +++ b/jd_yqhy.py @@ -94,7 +94,7 @@ async def plogin(ua,cookie): 'Referer': 'https://prodev.m.jd.com/', 'User-Agent':ua } - response = requests.get(url=url,headers=header,timeout=5).text + response = requests.get(url=url,headers=header,timeout=30).text return response # 活动接口