更新readme,京小超改名为东东超市,docker方法一新增东东小窝

This commit is contained in:
lxk0301
2020-11-22 16:37:15 +08:00
parent db2522e843
commit 12df19de0e
7 changed files with 722 additions and 28 deletions

View File

@@ -63,6 +63,8 @@ cron "2 9 * * *" script-path=https://raw.githubusercontent.com/lxk0301/jd_script
#点点券
cron "20 0,20 * * *" script-path=https://raw.githubusercontent.com/lxk0301/jd_scripts/master/jd_necklace.js, tag=点点券
#东东小窝
cron "16 0 * * *" script-path=https://raw.githubusercontent.com/lxk0301/jd_scripts/master/jd_small_home.js, tag=东东小窝
#京东全民营业领金币
cron "20 * * * *" script-path=https://raw.githubusercontent.com/lxk0301/jd_scripts/master/jd_collectProduceScore.js, tag=京东全民营业领金币

View File

@@ -34,13 +34,15 @@
11. 宠汪汪赛跑助力([jd_joy_run.js](https://raw.githubusercontent.com/lxk0301/jd_scripts/master/jd_joy_run.js))
12. 宠汪汪聚宝盆辅助脚本([jd_petTreasureBox.js](https://raw.githubusercontent.com/lxk0301/jd_scripts/master/jd_petTreasureBox.js))
13. 取关京东店铺和商品([jd_unsubscribe.js](https://raw.githubusercontent.com/lxk0301/jd_scripts/master/jd_unsubscribe.js))
14. 京小超([jd_superMarket.js](https://raw.githubusercontent.com/lxk0301/jd_scripts/master/jd_superMarket.js))
15. 京小超兑换奖品([jd_blueCoin.js](https://raw.githubusercontent.com/lxk0301/jd_scripts/master/jd_blueCoin.js))
14. 东东超市([jd_superMarket.js](https://raw.githubusercontent.com/lxk0301/jd_scripts/master/jd_superMarket.js))
15. 东东超市兑换奖品([jd_blueCoin.js](https://raw.githubusercontent.com/lxk0301/jd_scripts/master/jd_blueCoin.js))
16. 进店领豆([jd_shop.js](https://raw.githubusercontent.com/lxk0301/jd_scripts/master/jd_shop.js))
17. 摇京豆([jd_club_lottery.js](https://raw.githubusercontent.com/lxk0301/jd_scripts/master/jd_club_lottery.js))
18. 全名开红包([jd_redPacket.js](https://raw.githubusercontent.com/lxk0301/jd_scripts/master/jd_redPacket.js))
19. 京东多合一签到([jd_bean_sign.js](https://raw.githubusercontent.com/lxk0301/jd_scripts/master/jd_bean_sign.js)) 【可N个京东账号Node.js专用核心脚本是JD_DailyBonus.js IOS软件用户请使用NobyDa的 [JD_DailyBonus.js](https://raw.githubusercontent.com/NobyDa/Script/master/JD-DailyBonus/JD_DailyBonus.js) 】
20. 京豆变动通知([jd_bean_change.js](https://raw.githubusercontent.com/lxk0301/jd_scripts/master/jd_bean_change.js))
21. 京喜工厂([jd_dreamFactory.js](https://raw.githubusercontent.com/lxk0301/jd_scripts/master/jd_dreamFactory.js))
22. 东东超市([jd_small_home.js](https://raw.githubusercontent.com/lxk0301/jd_scripts/master/jd_small_home.js))
21. 以及其他一部分在特定时间可用的薅京豆脚本,如 [手机狂欢城](https://raw.githubusercontent.com/lxk0301/jd_scripts/master/jd_818.js) 、[星推官](https://raw.githubusercontent.com/lxk0301/jd_scripts/master/jd_xtg.js) 等。
**脚本兼容: [QuantumultX](https://apps.apple.com/us/app/quantumult-x/id1443988620), [Surge](https://apps.apple.com/us/app/surge-4/id1442620678), [Loon](https://apps.apple.com/us/app/loon/id1373567447), 小火箭, JSBox, Node.js**

View File

@@ -55,6 +55,7 @@
12 13 * * * node /scripts/jd_pigPet.js >> /scripts/logs/jd_pigPet.log 2>&1
# 点点券
20 0,20 * * * node /scripts/jd_necklace.js >> /scripts/logs/jd_necklace.log 2>&1
# 京喜工厂
20 * * * * node /scripts/jd_dreamFactory.js >> /scripts/logs/jd_dreamFactory.log 2>&1
20 * * * * node /scripts/jd_dreamFactory.js >> /scripts/logs/jd_dreamFactory.log 2>&1
# 东东小窝
20 * * * * node /scripts/jd_small_home.js >> /scripts/logs/jd_small_home.log 2>&1

View File

@@ -56,4 +56,6 @@
# 点点券
20 0,20 * * * node /scripts/jd_necklace.js |ts >> /scripts/logs/jd_necklace.log 2>&1
# 京喜工厂
20 * * * * node /scripts/jd_dreamFactory.js |ts >> /scripts/logs/jd_dreamFactory.log 2>&1
20 * * * * node /scripts/jd_dreamFactory.js |ts >> /scripts/logs/jd_dreamFactory.log 2>&1
# 东东小窝
20 * * * * node /scripts/jd_small_home.js |ts >> /scripts/logs/jd_small_home.log 2>&1

View File

@@ -23,7 +23,7 @@ cron "10 0,20 * * *" script-path=https://raw.githubusercontent.com/lxk0301/jd_sc
点点券 = type=cron,cronexp="10 0,20 * * *",wake-system=1,timeout=20,script-path=https://raw.githubusercontent.com/lxk0301/jd_scripts/master/jd_necklace.js
============小火箭=========
东东农场 = type=cron,script-path=https://raw.githubusercontent.com/lxk0301/jd_scripts/master/jd_necklace.js, cronexpr="10 0,20 * * *", timeout=200, enable=true
点点券 = type=cron,script-path=https://raw.githubusercontent.com/lxk0301/jd_scripts/master/jd_necklace.js, cronexpr="10 0,20 * * *", timeout=200, enable=true
*/
const $ = new Env('点点券');

688
jd_small_home.js Normal file

File diff suppressed because one or more lines are too long

View File

@@ -5,23 +5,22 @@
* @Last Modified time: 2020-11-22 08:22:37
*/
/*
京小超(活动入口京东APP-》首页-》京东超市-》底部东东超市)
现有功能:每日签到,日常任务(分享游戏,逛会场,关注店铺,卖货能手),收取金币,收取蓝币,商圈活动
东东超市(活动入口京东APP-》首页-》京东超市-》底部东东超市)
Some Functions Modified From https://github.com/Zero-S1/JD_tools/blob/master/JD_superMarket.py
支持京东双账号
京小超兑换奖品请使用此脚本 https://raw.githubusercontent.com/lxk0301/jd_scripts/master/jd_blueCoin.js
脚本兼容: QuantumultX, Surge, Loon, JSBox, Node.js
// QuantumultX
[task_local]
#京小超
11 1-23/5 * * * https://raw.githubusercontent.com/lxk0301/jd_scripts/master/jd_superMarket.js, tag=京小超, img-url=https://raw.githubusercontent.com/58xinian/icon/master/jxc.png, enabled=true
#东东超市
11 1-23/5 * * * https://raw.githubusercontent.com/lxk0301/jd_scripts/master/jd_superMarket.js, tag=东东超市, img-url=https://raw.githubusercontent.com/58xinian/icon/master/jxc.png, enabled=true
// Loon
[Script]
cron "11 1-23/5 * * *" script-path=https://raw.githubusercontent.com/lxk0301/jd_scripts/master/jd_superMarket.js,tag=京小超
cron "11 1-23/5 * * *" script-path=https://raw.githubusercontent.com/lxk0301/jd_scripts/master/jd_superMarket.js,tag=东东超市
// Surge
京小超 = type=cron,cronexp="11 1-23/5 * * *",wake-system=1,timeout=320,script-path=https://raw.githubusercontent.com/lxk0301/jd_scripts/master/jd_superMarket.js
东东超市 = type=cron,cronexp="11 1-23/5 * * *",wake-system=1,timeout=320,script-path=https://raw.githubusercontent.com/lxk0301/jd_scripts/master/jd_superMarket.js
*/
const $ = new Env('京小超');
const $ = new Env('东东超市');
//Node.js用户请在jdCookie.js处填写京东ck;
//IOS等用户直接用NobyDa的jd cookie
let cookiesArr = [], cookie = '', jdSuperMarketShareArr = [], notify, newShareCodes;
@@ -311,18 +310,13 @@ async function businessCircleActivity() {
const smtg_getTeamPkDetailInfoRes = await smtg_getTeamPkDetailInfo();
if (smtg_getTeamPkDetailInfoRes && smtg_getTeamPkDetailInfoRes.data.bizCode === 0) {
const { joinStatus, pkStatus, inviteCount, inviteCode, currentUserPkInfo, pkUserPkInfo, prizeInfo, pkActivityId, teamId } = smtg_getTeamPkDetailInfoRes.data.result;
console.log(`joinStatus:${joinStatus}`);
console.log(`pkStatus:${pkStatus}`);
console.log(`inviteCode: [${inviteCode}]`);
console.log(`PK队伍teamId: [${teamId}]`);
console.log(`PK队伍名称: [${currentUserPkInfo && currentUserPkInfo.teamName}]`);
await updatePkActivityId();
if (!$.updatePkActivityIdRes) await updatePkActivityIdCDN();
console.log(`\nupdatePkActivityId[pkActivityId]:::${$.updatePkActivityIdRes.pkActivityId}`);
console.log(`\n京东服务器返回的[pkActivityId] ${pkActivityId}`);
console.log(`\njoinStatus:${joinStatus}`);
console.log(`pkStatus:${pkStatus}\n`);
if (joinStatus === 0) {
await updatePkActivityId();
if (!$.updatePkActivityIdRes) await updatePkActivityIdCDN();
console.log(`\nupdatePkActivityId[pkActivityId]:::${$.updatePkActivityIdRes.pkActivityId}`);
console.log(`\n京东服务器返回的[pkActivityId] ${pkActivityId}`);
if ($.updatePkActivityIdRes && ($.updatePkActivityIdRes.pkActivityId === pkActivityId)) {
let Teams = [
{
@@ -365,12 +359,17 @@ async function businessCircleActivity() {
console.log('\nupdatePkActivityId请求返回的pkActivityId与京东服务器返回不一致,暂时不加入战队')
}
} else if (joinStatus === 1) {
console.log(`我邀请的人数:${inviteCount}\n`)
console.log(`\n我方战队战队 [${currentUserPkInfo && currentUserPkInfo.teamName}]/【${currentUserPkInfo && currentUserPkInfo.teamCount}`);
console.log(`对方战队战队 [${pkUserPkInfo && pkUserPkInfo.teamName}]/【${pkUserPkInfo && pkUserPkInfo.teamCount}\n`);
if (teamId) {
console.log(`inviteCode: [${inviteCode}]`);
console.log(`PK队伍teamId: [${teamId}]`);
console.log(`PK队伍名称: [${currentUserPkInfo && currentUserPkInfo.teamName}]`);
console.log(`我邀请的人数:${inviteCount}\n`)
console.log(`\n我方战队战队 [${currentUserPkInfo && currentUserPkInfo.teamName}]/【${currentUserPkInfo && currentUserPkInfo.teamCount}`);
console.log(`对方战队战队 [${pkUserPkInfo && pkUserPkInfo.teamName}]/【${pkUserPkInfo && pkUserPkInfo.teamCount}\n`);
}
}
if (pkStatus === 1) {
console.log(`商圈PK进行中`)
console.log(`商圈PK进行中\n`)
} else if (pkStatus === 2) {
console.log(`商圈PK结束了`)
if (prizeInfo.pkPrizeStatus === 2) {
@@ -391,10 +390,10 @@ async function businessCircleActivity() {
}
}
} else if (prizeInfo.pkPrizeStatus === 1) {
console.log(`商圈PK奖励已经领取`)
console.log(`商圈PK奖励已经领取\n`)
}
} else if (pkStatus === 3) {
console.log(`商圈PK暂停中`)
console.log(`商圈PK暂停中\n`)
}
}
return