mirror of
https://github.com/shufflewzc/faker2.git
synced 2025-04-23 10:58:44 +08:00
update
This commit is contained in:
parent
12768ee97a
commit
bd09b175a6
File diff suppressed because one or more lines are too long
@ -1,7 +1,7 @@
|
|||||||
/**
|
/**
|
||||||
特务之明星送好礼
|
特务之明星送好礼
|
||||||
一次性脚本。请禁用!
|
第一个CK黑号,自动退出
|
||||||
cron 36 2,19 * * * jd_superBrandStar.js
|
15 5,21 * * * jd_superBrandStar.js
|
||||||
*/
|
*/
|
||||||
const $ = new Env('特务之明星送好礼');
|
const $ = new Env('特务之明星送好礼');
|
||||||
const notify = $.isNode() ? require('./sendNotify') : '';
|
const notify = $.isNode() ? require('./sendNotify') : '';
|
||||||
@ -30,7 +30,7 @@ if ($.isNode()) {
|
|||||||
$.isLogin = true;
|
$.isLogin = true;
|
||||||
$.nickName = '';
|
$.nickName = '';
|
||||||
$.UserName = decodeURIComponent($.cookie.match(/pt_pin=([^; ]+)(?=;?)/) && $.cookie.match(/pt_pin=([^; ]+)(?=;?)/)[1]);
|
$.UserName = decodeURIComponent($.cookie.match(/pt_pin=([^; ]+)(?=;?)/) && $.cookie.match(/pt_pin=([^; ]+)(?=;?)/)[1]);
|
||||||
//await TotalBean();
|
await TotalBean();
|
||||||
console.log(`\n*****开始【京东账号${$.index}】${$.nickName || $.UserName}*****\n`);
|
console.log(`\n*****开始【京东账号${$.index}】${$.nickName || $.UserName}*****\n`);
|
||||||
if (!$.isLogin) {
|
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" });
|
$.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" });
|
||||||
@ -41,7 +41,7 @@ if ($.isNode()) {
|
|||||||
continue
|
continue
|
||||||
}
|
}
|
||||||
await main();
|
await main();
|
||||||
//if (i == 0 && $.flag) return;
|
if (i == 0 && $.flag) return;
|
||||||
}
|
}
|
||||||
|
|
||||||
})().catch((e) => { $.log('', `❌ ${$.name}, 失败! 原因: ${e}!`, '') }).finally(() => { $.done(); })
|
})().catch((e) => { $.log('', `❌ ${$.name}, 失败! 原因: ${e}!`, '') }).finally(() => { $.done(); })
|
||||||
@ -50,7 +50,7 @@ async function main() {
|
|||||||
$.runFlag = false;
|
$.runFlag = false;
|
||||||
$.activityInfo = {};
|
$.activityInfo = {};
|
||||||
await takeRequest('showStarGiftInfo');
|
await takeRequest('showStarGiftInfo');
|
||||||
if (JSON.stringify($.activityInfo) === '{}') {
|
if($.bizCode == 'MP001'){
|
||||||
console.log(`本期活动结束,等待下期。。。`);
|
console.log(`本期活动结束,等待下期。。。`);
|
||||||
$.flag = true
|
$.flag = true
|
||||||
return;
|
return;
|
||||||
@ -161,6 +161,7 @@ function dealReturn(type, data) {
|
|||||||
}
|
}
|
||||||
switch (type) {
|
switch (type) {
|
||||||
case 'showStarGiftInfo':
|
case 'showStarGiftInfo':
|
||||||
|
$.bizCode = data.data.bizCode;
|
||||||
if (data.code === '0' && data.data && data.data.result) {
|
if (data.code === '0' && data.data && data.data.result) {
|
||||||
$.activityInfo = data.data.result;
|
$.activityInfo = data.data.result;
|
||||||
}
|
}
|
||||||
|
289
jd_twjk.js
Normal file
289
jd_twjk.js
Normal file
File diff suppressed because one or more lines are too long
Loading…
Reference in New Issue
Block a user