2
.github/workflows/deploy_tencent_scf.yml
vendored
2
.github/workflows/deploy_tencent_scf.yml
vendored
@@ -70,6 +70,7 @@ jobs:
|
||||
if [ $DDFACTORY_SHARECODES ]; then sed -i "/variables/a\ DDFACTORY_SHARECODES: $DDFACTORY_SHARECODES" serverless.yml; fi;
|
||||
if [ $DREAM_FACTORY_SHARE_CODES ]; then sed -i "/variables/a\ DREAM_FACTORY_SHARE_CODES: $DREAM_FACTORY_SHARE_CODES" serverless.yml; fi;
|
||||
if [ $JDZZ_SHARECODES ]; then sed -i "/variables/a\ JDZZ_SHARECODES: $JDZZ_SHARECODES" serverless.yml; fi;
|
||||
if [ $JDJOY_SHARECODES ]; then sed -i "/variables/a\ JDJOY_SHARECODES: $JDJOY_SHARECODES" serverless.yml; fi;
|
||||
if [ $TG_PROXY_HOST ]; then sed -i "/variables/a\ TG_PROXY_HOST: $TG_PROXY_HOST" serverless.yml; fi;
|
||||
if [ $TG_PROXY_PORT ]; then sed -i "/variables/a\ TG_PROXY_PORT: $TG_PROXY_PORT" serverless.yml; fi;
|
||||
if [ $MONEY_TREE_SELL_FRUIT ]; then sed -i "/variables/a\ MONEY_TREE_SELL_FRUIT: $MONEY_TREE_SELL_FRUIT" serverless.yml; fi;
|
||||
@@ -124,6 +125,7 @@ jobs:
|
||||
DDFACTORY_SHARECODES: ${{ secrets.DDFACTORY_SHARECODES}}
|
||||
DREAM_FACTORY_SHARE_CODES: ${{ secrets.DREAM_FACTORY_SHARE_CODES}}
|
||||
JDZZ_SHARECODES: ${{ secrets.JDZZ_SHARECODES}}
|
||||
JDJOY_SHARECODES: ${{ secrets.JDJOY_SHARECODES}}
|
||||
TG_PROXY_HOST: ${{ secrets.TG_PROXY_HOST}}
|
||||
TG_PROXY_PORT: ${{ secrets.TG_PROXY_PORT}}
|
||||
MONEY_TREE_SELL_FRUIT: ${{ secrets.MONEY_TREE_SELL_FRUIT}}
|
||||
|
||||
@@ -7,11 +7,10 @@ Github: https://github.com/dompling
|
||||
|
||||
===================
|
||||
特别说明:
|
||||
1.获取多个京东cookie文件,不和野比大佬的文件冲突。暂不支持野比大佬脚本签到。
|
||||
2.若是要使用京东多合一签到,请使用修改版地址:https://raw.githubusercontent.com/dompling/Script/master/jd/JD_extra.js
|
||||
1.获取多个京东cookie的脚本,不和NobyDa的京东cookie冲突。
|
||||
===================
|
||||
===================
|
||||
使用方式:复制 https://home.m.jd.com/myJd/newhome.action 到浏览器打开 ,在个人中心自动获取 cookie,
|
||||
使用方式:在代理软件配置好下方配置后,复制 https://home.m.jd.com/myJd/newhome.action 到浏览器打开 ,在个人中心自动获取 cookie,
|
||||
若弹出成功则正常使用。否则继续再此页面继续刷新一下试试
|
||||
===================
|
||||
|
||||
|
||||
@@ -37,7 +37,7 @@ cron "3 */5 * * *" script-path=https://raw.githubusercontent.com/lxk0301/jd_scri
|
||||
cron "11 1-23/2 * * *" script-path=https://raw.githubusercontent.com/lxk0301/jd_scripts/master/jd_superMarket.js,tag=京小超
|
||||
|
||||
# 京小超兑换奖品
|
||||
cron "0 0 0 * * *" script-path=https://raw.githubusercontent.com/lxk0301/jd_scripts/master/jd_blueCoin.js,tag=京小超兑换奖品
|
||||
cron "0,30 0 0 * * *" script-path=https://raw.githubusercontent.com/lxk0301/jd_scripts/master/jd_blueCoin.js,tag=京小超兑换奖品
|
||||
|
||||
# 取关京东店铺商品
|
||||
cron "55 23 * * *" script-path=https://raw.githubusercontent.com/lxk0301/jd_scripts/master/jd_unsubscribe.js,tag=取关京东店铺商品
|
||||
@@ -91,13 +91,13 @@ http-response ^https:\/\/jdjoy\.jd\.com\/pet\/getPetTreasureBox|^https:\/\/draw\
|
||||
http-response ^https:\/\/account\.huami\.com\/v2\/client\/login script-path=https://raw.githubusercontent.com/lxk0301/jd_scripts/master/backUp/xmSports.js, requires-body=true, timeout=10, tag=小米运动获取Token
|
||||
|
||||
# 京东代属
|
||||
cron "10 7 * * *" script-path=https://raw.githubusercontent.com/lxk0301/jd_scripts/master/jd_ds.js, tag=京东代属
|
||||
# cron "10 7 * * *" script-path=https://raw.githubusercontent.com/lxk0301/jd_scripts/master/jd_ds.js, tag=京东代属
|
||||
|
||||
# 京东快递
|
||||
cron "10 0 * * *" script-path=https://raw.githubusercontent.com/lxk0301/jd_scripts/master/jd_kd.js, tag=京东快递签到
|
||||
|
||||
# 京东汽车
|
||||
cron "10 7 * * *" script-path=https://raw.githubusercontent.com/lxk0301/jd_scripts/master/jd_car.js, tag=京东汽车
|
||||
cron "0 0 * * *" script-path=https://raw.githubusercontent.com/lxk0301/jd_scripts/master/jd_car.js, tag=京东汽车
|
||||
|
||||
# 领京豆额外奖励
|
||||
cron "10 7 * * *" script-path=https://raw.githubusercontent.com/lxk0301/jd_scripts/master/jd_bean_home.js, tag=领京豆额外奖励
|
||||
@@ -107,17 +107,19 @@ cron "3 8 * * *" script-path=https://raw.githubusercontent.com/lxk0301/jd_script
|
||||
# 京东赚赚
|
||||
cron "10 11 * * *" script-path=https://raw.githubusercontent.com/lxk0301/jd_scripts/master/jd_jdzz.js, tag=京东赚赚
|
||||
# 京东秒杀红包雨
|
||||
cron "10 7 * * *" script-path=https://raw.githubusercontent.com/lxk0301/jd_scripts/master/jd_ms_redrain.js, tag=秒杀红包雨
|
||||
# cron "10 7 * * *" script-path=https://raw.githubusercontent.com/lxk0301/jd_scripts/master/jd_ms_redrain.js, tag=秒杀红包雨
|
||||
#注销京东店铺会员卡
|
||||
cron "23 12 * * 6" script-path=https://raw.githubusercontent.com/lxk0301/jd_scripts/master/jd_unbind.js, tag=注销京东店铺会员卡
|
||||
|
||||
# 京东直播
|
||||
cron "10-20/5 12 * * *" script-path=https://raw.githubusercontent.com/lxk0301/jd_scripts/master/jd_live.js, tag=京东直播
|
||||
# 京东看一看
|
||||
cron "40 9,10 * * *" script-path=https://raw.githubusercontent.com/lxk0301/jd_scripts/master/jd_watch.js, tag=京东看一看
|
||||
# cron "40 9,10 * * *" script-path=https://raw.githubusercontent.com/lxk0301/jd_scripts/master/jd_watch.js, tag=京东看一看
|
||||
#直播红包雨
|
||||
cron "1 0,20,9-23/2 15-31 12 *" script-path=https://raw.githubusercontent.com/lxk0301/jd_scripts/master/jd_live_redrain.js, tag=直播红包雨
|
||||
# cron "1 0,20,9-23/2 15-31 12 *" script-path=https://raw.githubusercontent.com/lxk0301/jd_scripts/master/jd_live_redrain.js, tag=直播红包雨
|
||||
# 金融打卡领年终奖
|
||||
cron "10 6 1-31 12 *" script-path=https://raw.githubusercontent.com/lxk0301/jd_scripts/master/jr_sign.js, tag=金融打卡领年终奖
|
||||
# cron "10 6 1-31 12 *" script-path=https://raw.githubusercontent.com/lxk0301/jd_scripts/master/jr_sign.js, tag=金融打卡领年终奖
|
||||
# 健康抽奖机
|
||||
cron "10 0 1-31 12 *" script-path=https://raw.githubusercontent.com/lxk0301/jd_scripts/master/jd_health.js,tag=健康抽奖机
|
||||
cron "10 * * *" script-path=https://raw.githubusercontent.com/lxk0301/jd_scripts/master/jd_health.js,tag=健康抽奖机
|
||||
# 疯狂的joy日常任务
|
||||
cron "30 8 * * *" script-path=https://raw.githubusercontent.com/lxk0301/jd_scripts/master/jd_crazy_joy.js,tag=疯狂的joy日常任务
|
||||
|
||||
@@ -13,7 +13,7 @@
|
||||
"15 */5 * * * https://raw.githubusercontent.com/lxk0301/jd_scripts/master/jd_moneyTree.js , tag=京东摇钱树 , img-url=https://raw.githubusercontent.com/58xinian/icon/master/jdyqs.png",
|
||||
"5 0 * * * https://raw.githubusercontent.com/lxk0301/jd_scripts/master/jd_club_lottery.js , tag=摇京豆 , img-url=https://raw.githubusercontent.com/58xinian/icon/master/jdyjd.png",
|
||||
"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",
|
||||
"0 0 * * * https://raw.githubusercontent.com/lxk0301/jd_scripts/master/jd_blueCoin.js , tag=京小超兑换奖品 , img-url=https://raw.githubusercontent.com/58xinian/icon/master/jxc.png",
|
||||
"0,30 0 * * * https://raw.githubusercontent.com/lxk0301/jd_scripts/master/jd_blueCoin.js , tag=京小超兑换奖品 , img-url=https://raw.githubusercontent.com/58xinian/icon/master/jxc.png",
|
||||
"55 23 * * * https://raw.githubusercontent.com/lxk0301/jd_scripts/master/jd_unsubscribe.js , tag=取关京东店铺商品 , img-url=https://raw.githubusercontent.com/Orz-3/task/master/jd.png",
|
||||
"10 0 * * * https://raw.githubusercontent.com/lxk0301/jd_scripts/master/jd_shop.js , tag=进店领豆 , img-url=https://raw.githubusercontent.com/58xinian/icon/master/jd_shop.png",
|
||||
"15 10 * * * https://raw.githubusercontent.com/lxk0301/jd_scripts/master/jd_joy_run.js , tag=宠汪汪邀请助力与赛跑助力 , img-url=https://raw.githubusercontent.com/58xinian/icon/master/jdcww.png",
|
||||
@@ -24,19 +24,14 @@
|
||||
"13 7 * * * https://raw.githubusercontent.com/lxk0301/jd_scripts/master/jd_small_home.js, tag=东东小窝, img-url=https://github.com/58xinian/icon/raw/master/ddxw.png",
|
||||
"10 * * * * https://raw.githubusercontent.com/lxk0301/jd_scripts/master/jd_jdfactory.js, tag=东东工厂, img-url=https://raw.githubusercontent.com/58xinian/icon/master/jd_factory.png",
|
||||
"0 7 * * * https://raw.githubusercontent.com/lxk0301/jd_scripts/master/jd_syj.js, tag=十元街, img-url=https://github.com/58xinian/icon/raw/master/jd_syj.png",
|
||||
"15 7 * * * https://raw.githubusercontent.com/lxk0301/jd_scripts/master/jd_ms_redrain.js, tag=秒杀红包雨, img-url=https://raw.githubusercontent.com/Orz-3/task/master/jd.png",
|
||||
"10 6 * * * https://raw.githubusercontent.com/lxk0301/jd_scripts/master/jd_bean_home.js, tag=领京豆额外奖励, img-url=https://raw.githubusercontent.com/58xinian/icon/master/jd_bean_home.png",
|
||||
"20 7 * * * https://raw.githubusercontent.com/lxk0301/jd_scripts/master/jd_car.js, tag=京东汽车, img-url=https://raw.githubusercontent.com/58xinian/icon/master/jd_car.png",
|
||||
"0 0 * * * https://raw.githubusercontent.com/lxk0301/jd_scripts/master/jd_car.js, tag=京东汽车, img-url=https://raw.githubusercontent.com/58xinian/icon/master/jd_car.png",
|
||||
"10 0 * * * https://raw.githubusercontent.com/lxk0301/jd_scripts/master/jd_kd.js, tag=京东快递签到, img-url=https://raw.githubusercontent.com/58xinian/icon/master/jd_kd.png",
|
||||
"30 7 * * * https://raw.githubusercontent.com/lxk0301/jd_scripts/master/jd_ds.js, tag=京东代属, img-url=https://raw.githubusercontent.com/58xinian/icon/master/jd_ds.png",
|
||||
"30 0 * * * https://raw.githubusercontent.com/lxk0301/jd_scripts/master/jd_health.js, tag=健康抽奖机, img-url=https://raw.githubusercontent.com/58xinian/icon/master/jd_redPacket.png",
|
||||
"40 9,10 * * * https://raw.githubusercontent.com/lxk0301/jd_scripts/master/jd_watch.js, tag=京东看一看, img-url=https://raw.githubusercontent.com/58xinian/icon/master/jd_watch.png",
|
||||
"10-20/5 12 * * * https://raw.githubusercontent.com/lxk0301/jd_scripts/master/jd_live.js, tag=京东直播, img-url= https://raw.githubusercontent.com/58xinian/icon/master/jd_live_redrain.png",
|
||||
"10 8 * * * https://raw.githubusercontent.com/lxk0301/jd_scripts/master/jd_jdh.js, tag=京东健康, img-url=https://raw.githubusercontent.com/58xinian/icon/master/jd_jdh.png",
|
||||
"14 11 * * * https://raw.githubusercontent.com/lxk0301/jd_scripts/master/jd_jdzz.js, tag=京东赚赚, img-url=https://raw.githubusercontent.com/58xinian/icon/master/jdzz.png",
|
||||
"44 12 * * 6 https://raw.githubusercontent.com/lxk0301/jd_scripts/master/jd_unbind.js, tag=注销京东店铺会员卡, img-url=https://raw.githubusercontent.com/58xinian/icon/master/jd_unbind.png",
|
||||
"1 0,20,9-23/2 15-31 12 * https://raw.githubusercontent.com/lxk0301/jd_scripts/master/jd_live_redrain.js, tag=直播红包雨, img-url= https://raw.githubusercontent.com/58xinian/icon/master/jd_live_redrain.png",
|
||||
"10 12 1-31 12 * https://raw.githubusercontent.com/lxk0301/jd_scripts/master/jr_sign.js, tag=京东金融打卡, img-url= https://raw.githubusercontent.com/58xinian/icon/master/jd_redPacket.png",
|
||||
"30 8 * * * https://raw.githubusercontent.com/lxk0301/jd_scripts/master/jd_crazy_joy.js, tag=crazyJoy任务, img-url=https://raw.githubusercontent.com/Orz-3/task/master/jd.png",
|
||||
"15 17 * * * https://raw.githubusercontent.com/lxk0301/jd_scripts/master/backUp/xmSports.js, tag=小米运动, img-url=https://raw.githubusercontent.com/58xinian/icon/master/xmyd.png"
|
||||
]
|
||||
}
|
||||
|
||||
102
README.md
102
README.md
@@ -20,36 +20,44 @@
|
||||
> ***您使用或者复制了本仓库且本人制作的任何脚本,则视为`已接受`此声明,请仔细阅读***
|
||||
|
||||
## Script脚本列表
|
||||
#### 说明
|
||||
1. 其中 [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)
|
||||
2. 短期任务仅在特定时间有效,请自行在京东APP上查阅,恕不再另行说明。
|
||||
|
||||
1. 京东水果([jd_fruit.js](https://raw.githubusercontent.com/lxk0301/jd_scripts/master/jd_fruit.js))
|
||||
2. 东东萌宠([jd_pet.js](https://raw.githubusercontent.com/lxk0301/jd_scripts/master/jd_pet.js))
|
||||
4. 种豆得豆([jd_plantBean.js](https://raw.githubusercontent.com/lxk0301/jd_scripts/master/jd_plantBean.js))
|
||||
5. 天天加速([jd_speed.js](https://raw.githubusercontent.com/lxk0301/jd_scripts/master/jd_speed.js))
|
||||
6. 摇钱树([jd_moneyTree.js](https://raw.githubusercontent.com/lxk0301/jd_scripts/master/jd_moneyTree.js))
|
||||
6. 宠汪汪([jd_joy.js](https://raw.githubusercontent.com/lxk0301/jd_scripts/master/jd_joy.js))
|
||||
7. 宠汪汪偷好友狗粮与积分([jd_joy_steal.js](https://raw.githubusercontent.com/lxk0301/jd_scripts/master/jd_joy_steal.js))
|
||||
8. 宠汪汪单独喂食([jd_joy_feedPets.js](https://raw.githubusercontent.com/lxk0301/jd_scripts/master/jd_joy_feedPets.js))
|
||||
9. 宠汪汪兑换奖品([jd_joy_reward.js](https://raw.githubusercontent.com/lxk0301/jd_scripts/master/jd_joy_reward.js))
|
||||
10. 宠汪汪强制为好友助力(刷好友)([jd_joy_help.js](https://raw.githubusercontent.com/lxk0301/jd_scripts/master/jd_joy_help.js))
|
||||
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))
|
||||
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))
|
||||
23. 东东工厂([jd_jdfactory.js](https://raw.githubusercontent.com/lxk0301/jd_scripts/master/jd_jdfactory.js))
|
||||
24. 点点券([jd_necklace.js](https://raw.githubusercontent.com/lxk0301/jd_scripts/master/jd_necklace.js))
|
||||
25. 十元街([jd_syj.js](https://raw.githubusercontent.com/lxk0301/jd_scripts/master/jd_syj.js))
|
||||
26. 京东金融-天天提鹅([jd_daily_egg.js](https://raw.githubusercontent.com/lxk0301/jd_scripts/master/jd_daily_egg.js))
|
||||
27. 京东金融-养猪猪([jd_pigPet.js](https://raw.githubusercontent.com/lxk0301/jd_scripts/master/jd_pigPet.js))
|
||||
28. 以及其他一部分在特定时间可用的薅京豆脚本:[手机狂欢城](https://raw.githubusercontent.com/lxk0301/jd_scripts/master/jd_818.js) 、[星推官](https://raw.githubusercontent.com/lxk0301/jd_scripts/master/jd_xtg.js) 、[双十一活动领金币](https://raw.githubusercontent.com/lxk0301/jd_scripts/master/jd_collectProduceScore.js) 、[热8超级盲盒](https://raw.githubusercontent.com/lxk0301/jd_scripts/master/jd_mohe.js)
|
||||
29. Webhook触发Action([webhook.js](https://raw.githubusercontent.com/lxk0301/jd_scripts/master/backUp/webhook.js))
|
||||
| 活动时长 | 名称 | 脚本 |
|
||||
| ---- | ------------------------------ | -------------------------------------------------------------------------------------------------------- |
|
||||
| 长期 | 疯狂的joy | [jd_crazy_joy.js](https://raw.githubusercontent.com/lxk0301/jd_scripts/master/jd_crazy_joy.js) |
|
||||
| 长期 | 京豆变动通知 | [jd_bean_change.js](https://raw.githubusercontent.com/lxk0301/jd_scripts/master/jd_bean_change.js) |
|
||||
| 长期 | 京东多合一签到 | [jd_bean_sign.js](https://raw.githubusercontent.com/lxk0301/jd_scripts/master/jd_bean_sign.js) |
|
||||
| 长期 | 东东超市兑换奖品 | [jd_blueCoin.js](https://raw.githubusercontent.com/lxk0301/jd_scripts/master/jd_blueCoin.js) |
|
||||
| 长期 | 摇京豆 | [jd_club_lottery.js](https://raw.githubusercontent.com/lxk0301/jd_scripts/master/jd_club_lottery.js) |
|
||||
| 长期 | 东东农场 | [jd_fruit.js](https://raw.githubusercontent.com/lxk0301/jd_scripts/master/jd_fruit.js) |
|
||||
| 长期 | 宠汪汪 | [jd_joy.js](https://raw.githubusercontent.com/lxk0301/jd_scripts/master/jd_joy.js) |
|
||||
| 长期 | 宠汪汪单独喂食 | [jd_joy_feedPets.js](https://raw.githubusercontent.com/lxk0301/jd_scripts/master/jd_joy_feedPets.js) |
|
||||
| 长期 | 宠汪汪强制为好友助力(iOS端专用) | [jd_joy_help.js](https://raw.githubusercontent.com/lxk0301/jd_scripts/master/jd_joy_help.js) |
|
||||
| 长期 | 宠汪汪聚宝盆辅助脚本(iOS端专用) | [jd_petTreasureBox.js](https://raw.githubusercontent.com/lxk0301/jd_scripts/master/jd_petTreasureBox.js) |
|
||||
| 长期 | 宠汪汪兑换奖品 | [jd_joy_reward.js](https://raw.githubusercontent.com/lxk0301/jd_scripts/master/jd_joy_reward.js) |
|
||||
| 长期 | 宠汪汪赛跑助力 | [jd_joy_run.js](https://raw.githubusercontent.com/lxk0301/jd_scripts/master/jd_joy_run.js) |
|
||||
| 长期 | 宠汪汪偷好友狗粮与积分 | [jd_joy_steal.js](https://raw.githubusercontent.com/lxk0301/jd_scripts/master/jd_joy_steal.js) |
|
||||
| 长期 | 摇钱树 | [jd_moneyTree.js](https://raw.githubusercontent.com/lxk0301/jd_scripts/master/jd_moneyTree.js) |
|
||||
| 长期 | 东东萌宠 | [jd_pet.js](https://raw.githubusercontent.com/lxk0301/jd_scripts/master/jd_pet.js) |
|
||||
| 长期 | 金融养猪 | [jd_pigPet.js](https://raw.githubusercontent.com/lxk0301/jd_scripts/master/jd_pigPet.js) |
|
||||
| 长期 | 天天提鹅 | [jd_daily_egg.js](https://raw.githubusercontent.com/lxk0301/jd_scripts/master/jd_daily_egg.js) |
|
||||
| 长期 | 种豆得豆 | [jd_plantBean.js](https://raw.githubusercontent.com/lxk0301/jd_scripts/master/jd_plantBean.js) |
|
||||
| 长期 | 全民开红包 | [jd_redPacket.js](https://raw.githubusercontent.com/lxk0301/jd_scripts/master/jd_redPacket.js) |
|
||||
| 长期 | 进店领豆 | [jd_shop.js](https://raw.githubusercontent.com/lxk0301/jd_scripts/master/jd_shop.js) |
|
||||
| 长期 | 天天加速 | [jd_speed.js](https://raw.githubusercontent.com/lxk0301/jd_scripts/master/jd_speed.js) |
|
||||
| 长期 | 京东快递 | [jd_kd.js](https://raw.githubusercontent.com/lxk0301/jd_scripts/master/jd_kd.js) |
|
||||
| 长期 | 东东超市 | [jd_superMarket.js](https://raw.githubusercontent.com/lxk0301/jd_scripts/master/jd_superMarket.js) |
|
||||
| 长期 | 京喜工厂 | [jd_dreamFactory.js](https://raw.githubusercontent.com/lxk0301/jd_scripts/master/jd_dreamFactory.js) |
|
||||
| 长期 | 东东工厂 | [jd_jdfactory.js](https://raw.githubusercontent.com/lxk0301/jd_scripts/master/jd_jdfactory.js) |
|
||||
| 长期 | 东东小窝 | [jd_small_home.js](https://raw.githubusercontent.com/lxk0301/jd_scripts/master/jd_small_home.js) |
|
||||
| 长期 | 点点券 | [jd_necklace.js](https://raw.githubusercontent.com/lxk0301/jd_scripts/master/jd_necklace.js) |
|
||||
| 长期 | 十元街 | [jd_syj.js](https://raw.githubusercontent.com/lxk0301/jd_scripts/master/jd_syj.js) |
|
||||
| 长期 | 京东代属 | [jd_ds.js](https://raw.githubusercontent.com/lxk0301/jd_scripts/master/jd_ds.js) |
|
||||
| 长期 | 取关京东店铺和商品 | [jd_unsubscribe.js](https://raw.githubusercontent.com/lxk0301/jd_scripts/master/jd_unsubscribe.js) |
|
||||
| 短期 | 星推官 | [jd_xtg.js](https://raw.githubusercontent.com/lxk0301/jd_scripts/master/jd_xtg.js) |
|
||||
| 短期 | 手机狂欢城 | [jd_818.js](https://raw.githubusercontent.com/lxk0301/jd_scripts/master/jd_818.js) |
|
||||
|
||||
搬运脚本
|
||||
1. 【[@yangtingxiao](https://github.com/yangtingxiao)】京东抽奖机([jd_lotteryMachine.js](https://raw.githubusercontent.com/lxk0301/jd_scripts/master/jd_lotteryMachine.js))
|
||||
@@ -58,10 +66,13 @@
|
||||
**脚本兼容: [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**
|
||||
|
||||
**TODO**
|
||||
- [x] 所有活动互助码在一个脚本打印
|
||||
- [ ] 京喜工厂添加预测N天后可兑换功能
|
||||
|
||||
- [ ] 东东工厂相互助力
|
||||
- [ ] 京喜工厂相互助力
|
||||
|
||||
## 邀请码互助
|
||||
- [邀请码互助入口](https://github.com/lxk0301/jd_scripts/discussions)
|
||||
- [获取各类活动互助码脚本 jd_get_share_code.js](https://raw.githubusercontent.com/lxk0301/jd_scripts/master/jd_get_share_code.js)
|
||||
- [邀请码使用规范](githubAction.md#互助码类环境变量)(仅限云端)
|
||||
## 食用方法
|
||||
|
||||
### 方法一:本地安装Node.js,下载本库脚本
|
||||
@@ -77,9 +88,9 @@
|
||||
### 方法二:云服务器、腾讯云函数等等
|
||||
|
||||
- 需自行有云服务器,云函数等
|
||||
- 腾讯云云函数 [快速部署教程](tencentscf.md)(免费)
|
||||
- 腾讯云云函数控制台使用 [教程说明](iCloud.md)
|
||||
- 腾讯云云函数 [GitHub Action部署教程](tencentscf.md#github-action-部署)
|
||||
- 腾讯云云函数 [快速部署教程](./backUp/tencentscf.md)(免费)
|
||||
- 腾讯云云函数控制台使用 [教程说明](./backUp/iCloud.md)
|
||||
- 腾讯云云函数 [GitHub Action部署教程](./backUp/tencentscf.md#github-action-部署)
|
||||
|
||||
|
||||
### 方法三:Docker(NAS或VPS用户)
|
||||
@@ -99,26 +110,7 @@
|
||||
|
||||
### 方法四:iOS系统的代理软件(QuantumultX, Surge, Loon, 小火箭)
|
||||
|
||||
#### 以下内容只针对iOS用户
|
||||
|
||||
#### ios使用多个京东账号,需要使用BoxJs保存多会话进行切换
|
||||
|
||||
##### BoxJs简单说明可看作者[BoxJs仓库地址](https://github.com/chavyleung/scripts/)
|
||||
|
||||
使用box可以实现远程订阅助力好友(需订阅此 [链接](https://raw.githubusercontent.com/lxk0301/jd_scripts/master/lxk0301.boxjs.json))
|
||||
|
||||
- [BoxJs使用教程](https://chavyleung.gitbook.io/boxjs/)
|
||||
|
||||
- [BoxJs教程视频](https://youtu.be/eIpBrRxiy0w)
|
||||
|
||||
|
||||
【用box订阅的好处】
|
||||
|
||||
1、脚本也可以远程挂载。京东活动助力功能的分享码只需在box里面填写。以后只需远程更新就行。
|
||||
|
||||
2、所有脚本的cookie都可以备份,方便你迁移到其他支持box的软件。
|
||||
|
||||
3、box可以支持多账号
|
||||
- [京东cookie获取脚本 JD_extra_cookie.js](https://raw.githubusercontent.com/lxk0301/jd_scripts/master/JD_extra_cookie.js)
|
||||
|
||||
### 赞赏码(开发维护不易,请赏杯茶水费)
|
||||
<div align=center><img width="250" height="250" src="https://raw.githubusercontent.com/lxk0301/jd_scripts/master/icon/thanks.jpg"/></div>
|
||||
|
||||
@@ -32,7 +32,7 @@ cron "5 0 * * *" script-path=https://raw.githubusercontent.com/lxk0301/jd_script
|
||||
#京小超
|
||||
cron "11 1-23/5 * * *" script-path=https://raw.githubusercontent.com/lxk0301/jd_scripts/master/jd_superMarket.js,timeout=530, wake-system=1, tag=京小超
|
||||
京小超兑换奖品
|
||||
cron "0 0 * * *" script-path=https://raw.githubusercontent.com/lxk0301/jd_scripts/master/jd_blueCoin.js,timeout=130, wake-system=1, tag=京小超兑换奖品
|
||||
cron "0,30 0 * * *" script-path=https://raw.githubusercontent.com/lxk0301/jd_scripts/master/jd_blueCoin.js,timeout=130, wake-system=1, tag=京小超兑换奖品
|
||||
#取关京东店铺商品
|
||||
cron "55 23 * * *" script-path=https://raw.githubusercontent.com/lxk0301/jd_scripts/master/jd_unsubscribe.js,timeout=250, wake-system=1, tag=取关京东店铺商品
|
||||
#进店领豆
|
||||
@@ -53,31 +53,25 @@ cron "40 * * * *" script-path=https://raw.githubusercontent.com/lxk0301/jd_scrip
|
||||
cron "10 7 * * *" script-path=https://raw.githubusercontent.com/lxk0301/jd_scripts/master/jd_small_home.js, timeout=650, wake-system=1, tag=东东小窝
|
||||
#十元街
|
||||
cron "40 8 * * *" script-path=https://raw.githubusercontent.com/lxk0301/jd_scripts/master/jd_syj.js, timeout=650, wake-system=1, tag=十元街
|
||||
#京东代属(仅京东学生认证用户可用)
|
||||
cron "30 8 * * *" script-path=https://raw.githubusercontent.com/lxk0301/jd_scripts/master/jd_ds.js, timeout=650, wake-system=1, tag=京东代属
|
||||
#领京豆额外奖励
|
||||
cron "30 10 * * *" script-path=https://raw.githubusercontent.com/lxk0301/jd_scripts/master/jd_bean_home.js, timeout=750, wake-system=1, tag=领京豆额外奖励
|
||||
#京东汽车
|
||||
cron "30 11 * * *" script-path=https://raw.githubusercontent.com/lxk0301/jd_scripts/master/jd_car.js, timeout=750, wake-system=1, tag=京东汽车
|
||||
cron "0 10 * * *" script-path=https://raw.githubusercontent.com/lxk0301/jd_scripts/master/jd_car.js, timeout=750, wake-system=1, tag=京东汽车
|
||||
#京东汽车积分兑换京豆
|
||||
cron "0 0 * * *" script-path=https://raw.githubusercontent.com/lxk0301/jd_scripts/master/jd_car_exchange.js, timeout=2750, wake-system=1, tag=京东汽车积分兑换京豆
|
||||
#京东快递签到
|
||||
cron "20 11 * * *" script-path=https://raw.githubusercontent.com/lxk0301/jd_scripts/master/jd_kd.js, timeout=750, wake-system=1, tag=京东快递签到
|
||||
#京东直播(活动结束时间未知)
|
||||
cron "20 12 * * *" script-path=https://raw.githubusercontent.com/lxk0301/jd_scripts/master/jd_live.js, timeout=750, wake-system=1, tag=京东直播
|
||||
#京东看一看
|
||||
cron "40 9,10 * * *" script-path=https://raw.githubusercontent.com/lxk0301/jd_scripts/master/jd_watch.js, timeout=7750, wake-system=1, tag=京东看一看
|
||||
#京东健康
|
||||
cron "20 23 * * *" script-path=https://raw.githubusercontent.com/lxk0301/jd_scripts/master/jd_jdh.js, timeout=750, wake-system=1, tag=京东健康
|
||||
#京东赚赚
|
||||
cron "20 11 * * *" script-path=https://raw.githubusercontent.com/lxk0301/jd_scripts/master/jd_jdzz.js, timeout=750, wake-system=1, tag=京东赚赚
|
||||
#注销京东店铺会员卡
|
||||
cron "20 12 * * 6" script-path=https://raw.githubusercontent.com/lxk0301/jd_scripts/master/jd_unbind.js, timeout=750, wake-system=1, tag=注销京东店铺会员卡
|
||||
#疯狂的joy日常任务
|
||||
cron "30 8 * * *" script-path=https://raw.githubusercontent.com/lxk0301/jd_scripts/master/jd_crazy_joy.js, timeout=1750, wake-system=1, tag=疯狂的joy日常任务
|
||||
#以下为短期活动
|
||||
#金融打卡领年终奖
|
||||
cron "30 7 1-31 12 *" script-path=https://raw.githubusercontent.com/lxk0301/jd_scripts/master/jr_sign.js, timeout=750, wake-system=1, tag=金融打卡领年终奖
|
||||
#健康抽奖机
|
||||
cron "30 2 1-31 12 *" script-path=https://raw.githubusercontent.com/lxk0301/jd_scripts/master/jd_health.js, timeout=750, wake-system=1, tag=健康抽奖机
|
||||
#直播红包雨(2020-12-31活动结束)
|
||||
cron "1 0,20,9-23/2 15-31 12 *" script-path=https://raw.githubusercontent.com/lxk0301/jd_scripts/master/jd_live_redrain.js, timeout=750, wake-system=1, tag=直播红包雨
|
||||
#秒杀红包雨(2020-12-31活动结束)
|
||||
cron "20 9 1-31 12 *" script-path=https://raw.githubusercontent.com/lxk0301/jd_scripts/master/jd_ms_redrain.js, timeout=750, wake-system=1, tag=秒杀红包雨
|
||||
cron "30 2 * * *" script-path=https://raw.githubusercontent.com/lxk0301/jd_scripts/master/jd_health.js, timeout=750, wake-system=1, tag=健康抽奖机
|
||||
|
||||
|
||||
@@ -283,7 +283,7 @@ function readShareCode() {
|
||||
console.log(`${$.name} API请求失败,请检查网路重试`)
|
||||
} else {
|
||||
if (data) {
|
||||
console.log(`随机取${randomCount}个码放到您固定的互助码后面`)
|
||||
console.log(`随机取${randomCount}个码放到您固定的互助码后面(不影响已有固定互助)`)
|
||||
data = JSON.parse(data);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -87,8 +87,15 @@ const JD_API_HOST = 'https://api.m.jd.com/';
|
||||
})
|
||||
|
||||
function showMsg() {
|
||||
return new Promise(resolve => {
|
||||
$.msg($.name, '', `【京东账号${$.index}】${$.nickName}\n${message}`);
|
||||
return new Promise(async resolve => {
|
||||
// $.msg($.name, '', `【京东账号${$.index}】${$.nickName}\n${message}`);
|
||||
let nowTime = new Date().getTime() + new Date().getTimezoneOffset()*60*1000 + 8*60*60*1000;
|
||||
if (nowTime > new Date('2020/12/31 23:59:59+08:00').getTime()) {
|
||||
$.msg($.name, '活动已结束', `咱江湖再见\nhttps://github.com/lxk0301/jd_scripts`, {"open-url": "https://github.com/lxk0301/jd_scripts"});
|
||||
if ($.isNode()) await notify.sendNotify($.name + '活动已结束', `咱江湖再见\n https://github.com/lxk0301/jd_scripts`)
|
||||
} else {
|
||||
$.msg($.name, '', `京东账号${$.index} ${$.nickName}\n${message}`);
|
||||
}
|
||||
resolve()
|
||||
})
|
||||
}
|
||||
@@ -498,7 +498,7 @@ function readShareCode() {
|
||||
console.log(`${$.name} API请求失败,请检查网路重试`)
|
||||
} else {
|
||||
if (data) {
|
||||
console.log(`随机取${randomCount}个码放到您固定的互助码后面`)
|
||||
console.log(`随机取${randomCount}个码放到您固定的互助码后面(不影响已有固定互助)`)
|
||||
data = JSON.parse(data);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -21,7 +21,18 @@ cron "0 0,9,11,13,15,17,19,20,21,23 * * *" script-path=https://raw.githubusercon
|
||||
直播红包雨 = type=cron,script-path=https://raw.githubusercontent.com/lxk0301/jd_scripts/master/jd_live_redrain.js, cronexpr="0 0,9,11,13,15,17,19,20,21,23 * * *", timeout=200, enable=true
|
||||
*/
|
||||
const $ = new Env('直播红包雨');
|
||||
|
||||
let ids = {
|
||||
'0': 'RRA3S6TRRbnNNuGN43oHMA5okbcXmRY',
|
||||
'9': 'RRA3vyGH4MRwCJELDwV7p24mNAByiSk',
|
||||
'11': 'RRAnabmRSnpzSSZicXUhSFGBvFXs5c',
|
||||
'13': 'RRA4RhWMc159kA62qLbaEa88evE7owb',
|
||||
'15': 'RRA2CnovS9KVTTwBD9NV7o4kc3P8PTN',
|
||||
'17': 'RRA2nFXT2oSQM3KaYX9uhBC1hBijDey',
|
||||
'19': 'RRA3SQpuSAAJq1ckoPr4TXaxwbLG73k',
|
||||
'20': 'RRA2cHV3KXqvHAZGboTTryr8JMYZd5j',
|
||||
'21': 'RRA3SPs4XrDEXXwQjEFGrBLtMpjtkMV',
|
||||
'23': 'RRA3dFHoZXGThSnctvtAf69dmVyEDfm',
|
||||
}
|
||||
const notify = $.isNode() ? require('./sendNotify') : '';
|
||||
//Node.js用户请在jdCookie.js处填写京东ck;
|
||||
const jdCookieNode = $.isNode() ? require('./jdCookie.js') : '';
|
||||
@@ -67,12 +78,23 @@ const JD_API_HOST = 'https://api.m.jd.com/api';
|
||||
$.msg($.name, '【提示】请先获取京东账号一cookie\n直接使用NobyDa的京东签到获取', 'https://bean.m.jd.com/', {"open-url": "https://bean.m.jd.com/"});
|
||||
return;
|
||||
}
|
||||
$.log(`=====远程红包雨信息=====`)
|
||||
await getRedRain();
|
||||
if(!$.activityId) return
|
||||
let nowTs = new Date().getTime()
|
||||
if (!($.st <= nowTs && nowTs < $.ed)) {
|
||||
console.log(`不在红包雨时间之内`)
|
||||
return
|
||||
$.log(`远程红包雨配置获取错误,从本地读取配置`)
|
||||
$.log(`\n`)
|
||||
let hour = (new Date().getUTCHours() + 8) %24
|
||||
if (ids[hour]){
|
||||
$.activityId = ids[hour]
|
||||
$.log(`本地红包雨配置获取成功`)
|
||||
} else{
|
||||
$.log(`无法从本地读取配置,请检查运行时间`)
|
||||
return
|
||||
}
|
||||
} else{
|
||||
$.log(`远程红包雨配置获取成功`)
|
||||
}
|
||||
for (let i = 0; i < cookiesArr.length; i++) {
|
||||
if (cookiesArr[i]) {
|
||||
@@ -81,7 +103,7 @@ const JD_API_HOST = 'https://api.m.jd.com/api';
|
||||
$.index = i + 1;
|
||||
$.isLogin = true;
|
||||
$.nickName = '';
|
||||
message = `【${new Date($.st).getHours()}点${$.name}】`
|
||||
message = `【${new Date().getUTCHours()+8}点${$.name}】`
|
||||
await TotalBean();
|
||||
console.log(`\n******开始【京东账号${$.index}】${$.nickName || $.UserName}*********\n`);
|
||||
if (!$.isLogin) {
|
||||
@@ -163,6 +185,7 @@ function receiveRedRain() {
|
||||
message += `领取失败,已领过\n`;
|
||||
} else {
|
||||
console.log(`异常:${JSON.stringify(data)}`)
|
||||
message += `暂无红包雨\n`;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -83,8 +83,14 @@ const JD_API_HOST = 'https://api.m.jd.com/api';
|
||||
})
|
||||
|
||||
function showMsg() {
|
||||
return new Promise(resolve => {
|
||||
$.msg($.name, '', `【京东账号${$.index}】${$.nickName}\n${message}`);
|
||||
return new Promise(async resolve => {
|
||||
let nowTime = new Date().getTime() + new Date().getTimezoneOffset()*60*1000 + 8*60*60*1000;
|
||||
if (nowTime > new Date('2020/12/31 23:59:59+08:00').getTime()) {
|
||||
$.msg($.name, '活动已结束', `咱江湖再见\nhttps://github.com/lxk0301/jd_scripts`, {"open-url": "https://github.com/lxk0301/jd_scripts"});
|
||||
if ($.isNode()) await notify.sendNotify($.name + '活动已结束', `咱江湖再见\n https://github.com/lxk0301/jd_scripts`)
|
||||
} else {
|
||||
$.msg($.name, '', `京东账号${$.index} ${$.nickName}\n${message}`);
|
||||
}
|
||||
resolve()
|
||||
})
|
||||
}
|
||||
@@ -330,7 +330,7 @@ function readShareCode() {
|
||||
console.log(`${$.name} API请求失败,请检查网路重试`)
|
||||
} else {
|
||||
if (data) {
|
||||
console.log(`随机取${randomCount}个码放到您固定的互助码后面`)
|
||||
console.log(`随机取${randomCount}个码放到您固定的互助码后面(不影响已有固定互助)`)
|
||||
data = JSON.parse(data);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -188,6 +188,7 @@ const JD_API_HOST = 'https://api.m.jd.com/client.action';
|
||||
continue
|
||||
}
|
||||
await jdHealth()
|
||||
await showMsg();
|
||||
}
|
||||
}
|
||||
})()
|
||||
@@ -200,8 +201,8 @@ const JD_API_HOST = 'https://api.m.jd.com/client.action';
|
||||
async function jdHealth() {
|
||||
$.bean = 0
|
||||
await getTaskList()
|
||||
console.log(`${$.name}浏览次数:${$.task.times}/${$.task.maxTimes}`)
|
||||
if($.task) {
|
||||
console.log(`${$.name}浏览次数:${$.task.times}/${$.task.maxTimes}`)
|
||||
let i = 0, j = $.task.times
|
||||
while(j < $.task.maxTimes) {
|
||||
if (!acceptBody[i]) break
|
||||
@@ -220,8 +221,15 @@ async function jdHealth() {
|
||||
}
|
||||
|
||||
function showMsg() {
|
||||
return new Promise(resolve => {
|
||||
$.msg($.name, '', `京东账号${$.index} ${$.nickName}\n${message}`);
|
||||
return new Promise(async resolve => {
|
||||
// $.msg($.name, '', `京东账号${$.index} ${$.nickName}\n${message}`);
|
||||
let nowTime = new Date().getTime() + new Date().getTimezoneOffset()*60*1000 + 8*60*60*1000;
|
||||
if (nowTime > new Date('2020/12/31 23:59:59+08:00').getTime()) {
|
||||
$.msg($.name, '活动已结束', `咱江湖再见\nhttps://github.com/lxk0301/jd_scripts`, {"open-url": "https://github.com/lxk0301/jd_scripts"});
|
||||
if ($.isNode()) await notify.sendNotify($.name + '活动已结束', `咱江湖再见\n https://github.com/lxk0301/jd_scripts`)
|
||||
} else {
|
||||
$.msg($.name, '', `京东账号${$.index} ${$.nickName}\n${message}`);
|
||||
}
|
||||
resolve()
|
||||
})
|
||||
}
|
||||
@@ -237,7 +245,9 @@ function getTaskList() {
|
||||
} else {
|
||||
if (safeGet(data)) {
|
||||
data = JSON.parse(data);
|
||||
$.task = data['data']['discTasks'][1]
|
||||
if (data.busiCode === '0') {
|
||||
$.task = data['data']['discTasks'][1]
|
||||
}
|
||||
}
|
||||
}
|
||||
} catch (e) {
|
||||
@@ -78,8 +78,14 @@ const JD_API_HOST = 'https://api.m.jd.com/api';
|
||||
})
|
||||
|
||||
function showMsg() {
|
||||
return new Promise(resolve => {
|
||||
$.msg($.name, '', `【京东账号${$.index}】${$.nickName}\n${message}`);
|
||||
return new Promise(async resolve => {
|
||||
let nowTime = new Date().getTime() + new Date().getTimezoneOffset()*60*1000 + 8*60*60*1000;
|
||||
if (nowTime > new Date('2020/12/31 23:59:59+08:00').getTime()) {
|
||||
$.msg($.name, '活动已结束', `咱江湖再见\nhttps://github.com/lxk0301/jd_scripts`, {"open-url": "https://github.com/lxk0301/jd_scripts"});
|
||||
if ($.isNode()) await notify.sendNotify($.name + '活动已结束', `咱江湖再见\n https://github.com/lxk0301/jd_scripts`)
|
||||
} else {
|
||||
$.msg($.name, '', `【京东账号${$.index}】${$.nickName}\n${message}`);
|
||||
}
|
||||
resolve()
|
||||
})
|
||||
}
|
||||
@@ -96,6 +102,7 @@ function sign() {
|
||||
if (safeGet(data)) {
|
||||
data = JSON.parse(data);
|
||||
console.log(data.resultData.message)
|
||||
message += `${data.resultData.message}`
|
||||
}
|
||||
}
|
||||
} catch (e) {
|
||||
208
backUp/iCloud.md
Normal file
208
backUp/iCloud.md
Normal file
@@ -0,0 +1,208 @@
|
||||
## 1.安装 Node.js 环境
|
||||
|
||||
[下载地址](https://nodejs.org/zh-tw/download/ )
|
||||
|
||||
根据自己的操作系统下载
|
||||
|
||||
傻瓜式安装,一直下一步即可。
|
||||
|
||||
|
||||
|
||||
## 2.下载源码
|
||||
|
||||

|
||||
|
||||
点击红框处下载压缩包
|
||||
|
||||
## 3.安装依赖、增加入口文件、增加cookie
|
||||
|
||||
压缩包解压后进入项目文件夹
|
||||
|
||||
- Windows 用户按住 **shift** 点击右键,点击 **在此处打开命令窗口**
|
||||
- Mac 用户通过终端,自行进入该文件夹
|
||||
|
||||
在命令行内输入 `npm i `,等待运行完成。
|
||||
|
||||
此时,项目文件夹内会多出一个 `node_modules`文件夹
|
||||
|
||||
**增加入口文件**
|
||||
|
||||
方案一:同一个仓库下同一个时间,执行多个脚本
|
||||
|
||||
在项目文件夹内新建 `index.js`
|
||||
|
||||
编辑文件
|
||||
|
||||
```javascript
|
||||
'use strict';
|
||||
exports.main_handler = async (event, context, callback) => {
|
||||
//解决云函数热启动问题
|
||||
delete require.cache[require.resolve('./jd_xtg1.js')];
|
||||
require('./jd_xtg1.js') //这里写你想要的脚本
|
||||
require('./jd_xtg2.js') //这里写你想要的脚本
|
||||
require('./jd_xtg3.js') //这里写你想要的脚本
|
||||
}
|
||||
|
||||
```
|
||||
此时,同一时间点下,会同时执行多个脚本,触发器触发后,index.js文件中require()下的所有脚本都会被执行
|
||||
|
||||
**优点**:同一时间下可以同时执行多个脚本,适合脚本种类少的repository,对脚本数量少的repository推荐使用此方案<br>**缺点**:多个脚本不同时间点运行无法满足
|
||||
|
||||
方案二:同一个仓库下不同的时间点,分别执行不同的脚本(类似GitHub Action执行机制)
|
||||
|
||||
在项目文件夹内新建 `index.js`
|
||||
|
||||
编辑文件
|
||||
|
||||
```javascript
|
||||
'use strict';
|
||||
exports.main_handler = async (event, context, callback) => {
|
||||
for (const v of event["Message"].split("\r\n")) {
|
||||
//解决云函数热启动问题
|
||||
delete require.cache[require.resolve(`./${v}.js`)];
|
||||
console.log(v);
|
||||
require(`./${v}.js`)
|
||||
}
|
||||
}
|
||||
|
||||
```
|
||||
|
||||
此时触发管理按照下图中进行设置,附加信息选择“是”,内容填写需要传递执行的具体脚本文件名,以回车键换行。触发器触发后,附加信息栏内的脚本会被执行,设置多个不同时间点的触发器达到类似GitHub Action的效果
|
||||
|
||||
**优点**:可以满足个性化需求,同一个repository下只需要设置不同的触发器,可以实现不同时间点分别执行不同的脚本<br>**缺点**:repository下脚本过多,如果需要设置多个触发器,实现个性化运行效果,由于云函数的限制,最多只能设置10个
|
||||
|
||||
[](https://imgchr.com/i/B20KxI)
|
||||
[](https://imgchr.com/i/BRCG0H)
|
||||
|
||||
**注意:**<br>
|
||||
Ⅰ方案一与方案二不能混合到同一个index.js文件中使用,同一个仓库下,二者只能选择其一。<br>
|
||||
Ⅱ感谢[issues#115](https://github.com/lxk0301/jd_scripts/issues/115)中的解决方案,目前云函数连续测试已经可以规避热启动问题了。<br>
|
||||
Ⅲ在确保完全按照本教程设置的情况下测试云函数运行情况,对于部分人运行日志中出现某些脚本运行失败其他正常,并且错误提示带有strict字样的,请自行删除index.js中的```'use strict';```,再做测试<br>
|
||||
|
||||
**增加cookie**
|
||||
|
||||
打开项目文件内的 `jdCookie.js`
|
||||
|
||||
在最上面的 `CookieJDs`里写入 cookie ,多个账号以逗号分隔
|
||||
|
||||
例如
|
||||
|
||||
```javascript
|
||||
let CookieJDs = [
|
||||
'pt_key=xxx;pt_pin=xxx;',
|
||||
'pt_key=zzz;pt_pin=zzz;',
|
||||
'pt_key=aaa;pt_pin=xxxaaa'
|
||||
]
|
||||
```
|
||||
|
||||
|
||||
|
||||
## 4.上传至腾讯云
|
||||
|
||||
[腾讯云函数地址]( https://console.cloud.tencent.com/scf/index )
|
||||
|
||||
编写函数
|
||||
|
||||
登录后,点击管理控制台
|
||||
|
||||
单击左侧导航栏**函数服务**,进入“函数服务”页面。
|
||||
在页面上方选择一个地域,最好选择离你常用地区近点的,不至于导致账号异常。单击**新建**。如下图所示:
|
||||
|
||||

|
||||
|
||||
在“新建函数”页面填写函数基础信息,单击**下一步**。如下图所示:
|
||||
|
||||

|
||||
|
||||
**函数名称**:可以自定义,比如为jd。<br>**运行环境**:选择 “Nodejs 12.16”。<br>**创建方式**:选择 “空白函数”。
|
||||
|
||||
确保环境为Nodejs 12.16,执行方法改为:index.main_handler,提交方式建议选本地文件夹,然后从GitHub项目克隆Zip压缩包,解压成文件夹,然后点击这个上传把文件夹上传进来(记得node_modules文件夹一并上传或者将node_modules文件夹上传到“层”,之后选择“函数管理”-“层管理”绑定上传好的层),完了后点击下面的高级设置。
|
||||
|
||||

|
||||
|
||||
内存用不了太大,64MB就够了(64M内存,免费时长6,400,000秒,内存与免费时长大致关系可以参看云函数官方说明),超时时间改为最大的900秒,然后点击最下面的完成。
|
||||
|
||||

|
||||
|
||||
## 5.设置触发器
|
||||
|
||||
点击刚创建的函数
|
||||
|
||||

|
||||
|
||||
点击如图所示
|
||||
|
||||

|
||||
|
||||
创建触发器
|
||||
|
||||

|
||||
|
||||
触发方式默认“**定时触发**”,定时任务名称随便起个名字,触发周期根据自己需要自行设置。
|
||||
|
||||
想进阶使用触发器的自行查看本文中方案一和方案二中的说明
|
||||
|
||||
关于触发周期中的自定义触发周期,使用的是 Cron表达式,这个自行学习下吧
|
||||
|
||||
|
||||
[Corn文档](https://cloud.tencent.com/document/product/583/9708#cron-.E8.A1.A8.E8.BE.BE.E5.BC.8F)
|
||||
|
||||
目前repo中按照每个脚本一个定时器的方式设置到云函数中,大约需要触发器10多个,由于云函数触发器限制最多10个,需要对触发器进行整合,整合后触发器保持在10个以内,以下设置仅供参考<br>
|
||||
|
||||
| **JavaScript** | **脚本名称** | **活动时间** | **原Repository UTC时间** | **适用于云函数的北京时间** | **serverless.yml** |
|
||||
| :----------------------: | :----------------------: | :----------: | :-----------------------: | :-------------------------: | :----------------: |
|
||||
| `jd_bean_change` | 京豆变动通知 | 长期 | 0 2 * * * | 0 1 */1 * * | 30 7 * * * |
|
||||
| `jd_bean_home` | 领京豆额外奖励 | 长期 | / | 0 1 */1 * * | 30 7 * * * |
|
||||
| `jd_bean_sign` | 京豆签到 | 长期 | 0 16 * * * | 0 0 */1 * * | 0 0 * * * |
|
||||
| `jd_blueCoin` | 京小超兑换奖品 | 长期 | 0 16 * * * | 0 1 */1 * * | 0 0 * * * |
|
||||
| `jd_car` | 京东汽车 | 长期 | / | 0 0 */1 * * | 0 0 * * * |
|
||||
| `jd_club_lottery` | 摇京豆 | 长期 | 0 16 * * * | 0 0 */1 * * | 0 0 * * * |
|
||||
| `jd_crazy_joy` | 疯狂的joy | 长期 | / | / | 30 7 * * * |
|
||||
| `jd_crazy_joy_coin` | 疯狂的joy挂机 | 长期 | / | / | / |
|
||||
| `jd_daily_egg` | 京东金融-天天提额 | 长期 | 10 */3 * * * | 0-12/3 */3 * * * | 8 */3 * * * |
|
||||
| `jd_dreamFactory` | 京喜工厂 | 长期 | / | */30 * * * * | 3 */1 * * * |
|
||||
| `jd_ds` | 京东代属(校园用户) | 长期 | / | / | / |
|
||||
| `jd_fruit` | 东东农场 | 长期 | 20 23,4,10 * * * | 0,5,10 8,9,12,18,23,0 * * * | 5 6-18/6 * * * |
|
||||
| `jd_health` | 健康抽奖机 | 短期 | / | 0 0 */1 * * | 10 0 * * * |
|
||||
| `jd_jdfactory` | 东东工厂 | 长期 | / | */30 * * * * | 3 */1 * * * |
|
||||
| `jd_jdh` | 京东健康APP | 短期 | / | / | 30 7 * * * |
|
||||
| `jd_jdzz` | 京东赚赚 | 长期 | / | / | 3 1 * * * |
|
||||
| `jd_joy` | 宠汪汪 | 长期 | 0 0,1,4,10,15,16 * * * | 0,5,10 8,9,12,18,23,0 * * * | 3 */1 * * * |
|
||||
| `jd_joy_feedPets` | 宠汪汪单独喂食 | 长期 | */20 */1 * * * | 0-12/3 */3 * * * | 3 */1 * * * |
|
||||
| `jd_joy_help` | 宠汪汪强制为别人助力 | 长期 | / | / | / |
|
||||
| `jd_joy_reward` | 宠汪汪兑换奖品 | 长期 | 0 0,4,8,16 * * * | 0 8,12,16,0 */1 * * | 0 0-16/8,20 * * * |
|
||||
| `jd_joy_run` | 宠汪汪邀请助力与赛跑助力 | 长期 | / | / | / |
|
||||
| `jd_joy_steal` | 宠汪汪偷好友狗粮与积分 | 长期 | 0 16,22 * * * | 0 0,6,20 */1 * * | 0 0-16/8,20 * * * |
|
||||
| `jd_kd` | 京东快递 | 长期 | / | 0 1 */1 * * | 3 1 * * * |
|
||||
| `jd_live` | 京东直播18豆 | 长期 | / | / | 0 0-16/8,20 * * * |
|
||||
| `jd_live_redrain` | 超级直播间红包雨 | 短期 | / | 0 0,20,9-23/2 * * MON-FRI | / |
|
||||
| `jd_lotteryMachine` | 京东抽奖机 | 长期 | 11 17 * * * | 0 0 */1 * * | 10 0 * * * |
|
||||
| `jd_moneyTree` | 摇钱树 | 长期 | 40 */3 * * * | 0-12/3 */3 * * * | 3 */1 * * * |
|
||||
| `jd_ms_redrain` | 秒杀红包雨 | 短期 | / | 0 1 */1 * * | 10 0 * * * |
|
||||
| `jd_necklace` | 点点券 | 长期 | / | 0 0,6,20 */1 * * | 0 0-16/8,20 * * * |
|
||||
| `jd_pet` | 东东萌宠 | 长期 | 35 23,4,10 * * * | 0,5,10 8,9,12,18,23,0 * * * | 5 6-18/6 * * * |
|
||||
| `jd_petTreasureBox` | 宠汪汪聚宝盆 | 长期 | / | / | / |
|
||||
| `jd_pigPet` | 京东金融-养猪猪 | 长期 | / | 0-12/3 */3 * * * | 3 1 * * * |
|
||||
| `jd_plantBean` | 种豆得豆 | 长期 | 0 23,0-14/1 * * * | 0-12/3 */3 * * * | 3 */1 * * * |
|
||||
| `jd_rankingList` | 京东排行榜 | 长期 | 11 18 * * * | 0 0 */1 * * | 30 7 * * * |
|
||||
| `jd_redPacket` | 全民开红包 | 长期 | 0 17 * * * | 0 1 */1 * * | 10 0 * * * |
|
||||
| `jd_shop` | 进店领豆 | 长期 | 0 16 * * * | 0 0 */1 * * | 10 0 * * * |
|
||||
| `jd_small_home` | 东东小窝 | 长期 | / | 0 0,6,20 */1 * * | 10 0 * * * |
|
||||
| `jd_speed` | 天天加速 | 长期 | 33 */3 * * * | 0-12/3 */3 * * * | 8 */3 * * * |
|
||||
| `jd_superMarket` | 东东超市 | 长期 | 15 * * * * | */30 * * * * | 15 * * * * |
|
||||
| `jd_syj` | 十元街 | 长期 | / | 0 1 */1 * * | 3 1 * * * |
|
||||
| `jd_unbind` | 注销京东会员卡 | 长期 | / | / | 10 0 * * * |
|
||||
| `jd_unsubscribe` | 取关京东店铺和商品 | 长期 | 45 15 * * * | 0 1 */1 * * | 10 0 * * * |
|
||||
| `jd_watch` | 发现-看一看 | 长期 | / | / | 3 1 * * * |
|
||||
| `jr_sign` | 金融打卡年终奖 | 短期 | / | / | 3 1 * * * |
|
||||
| `jd_818` | 京东手机狂欢城 | 短期 | 0 1,4,7,10,12,16,22 * * * | 0 9,12,15,16,20,0,6 */1 * * | / |
|
||||
| `jd_apple_live` | 苹果抽奖机 | 短期 | / | / | / |
|
||||
| `jd_collectProduceScore` | 双十一活动领金币 | 短期 | 30 * * * * | */30 * * * * | / |
|
||||
| `jd_digital_floor` | 数码加购京豆 | 短期 | / | / | / |
|
||||
| `jd_jxstory` | 京喜故事 | 短期 | / | / | / |
|
||||
| `jd_mohe` | 热8超级魔盒 | 短期 | / | / | / |
|
||||
| `jd_pubg` | PUBG | 短期 | / | / | / |
|
||||
| `jd_split` | 金榜年终奖 | 短期 | / | / | / |
|
||||
| `jd_xtg` | 双十一星推官 | 短期 | 0 16 * * * | 0 0 */1 * * | / |
|
||||
|
||||
点击提交,所有流程就结束了。
|
||||
138
backUp/iOS_Weather_AQI_Standard.js
Normal file
138
backUp/iOS_Weather_AQI_Standard.js
Normal file
File diff suppressed because one or more lines are too long
@@ -14,27 +14,6 @@ ziye
|
||||
本人github地址 https://github.com/ziye12/JavaScript
|
||||
转载请备注个名字,谢谢
|
||||
|
||||
11.25 增加 阅读时长上传,阅读金币,阅读随机金币
|
||||
11.25 修复翻倍宝箱不同时领取的问题.增加阅读金币判定
|
||||
11.25 修复阅读时长问题,阅读金币问题,请重新获取时长cookie
|
||||
11.26 随机金币只有一次,故去除,调整修复阅读金币问题,增加时长上传限制
|
||||
11.26 增加领取周时长奖励
|
||||
11.26 增加结束命令
|
||||
11.27 调整通知为,成功开启宝箱再通知
|
||||
11.28 修复错误
|
||||
12.1 调整通知为15次宝箱通知一次
|
||||
12.1 优化通知
|
||||
|
||||
⚠️cookie获取方法:
|
||||
|
||||
进 https://m.q.qq.com/a/s/d3eacc70120b9a37e46bad408c0c4c2a 点我的 获取cookie
|
||||
|
||||
进一本书 看 10秒以下 然后退出,获取阅读时长cookie,看书一定不能超过10秒
|
||||
|
||||
可能某些页面会卡住,但是能获取到cookie,再注释cookie重写就行了!
|
||||
|
||||
|
||||
|
||||
⚠️宝箱奖励为20分钟一次,自己根据情况设置定时,建议设置11分钟一次
|
||||
|
||||
hostname=mqqapi.reader.qq.com
|
||||
@@ -62,7 +41,9 @@ const jsname = '企鹅读书'
|
||||
const $ = Env(jsname)
|
||||
let task = '', config, ssr2 = '', wktime, day = 0;
|
||||
console.log(`\n========= 脚本执行时间(TM):${new Date(new Date().getTime() + 0 * 60 * 60 * 1000).toLocaleString('zh', {hour12: false})} =========\n`)
|
||||
const notify = require('../sendNotify');
|
||||
|
||||
const notify = $.isNode() ? require('../sendNotify') : '';
|
||||
|
||||
const logs = 1; //0为关闭日志,1为开启
|
||||
|
||||
const TIME = 30//单次时长上传限制,默认5分钟
|
||||
@@ -78,6 +59,7 @@ let qqreadtimeurlVal = $.getdata(qqreadtimeurlKey)
|
||||
|
||||
const qqreadtimeheaderKey = 'qqreadtimehd'
|
||||
let qqreadtimeheaderVal = $.getdata(qqreadtimeheaderKey)
|
||||
let nowTimes = new Date(new Date().getTime() + new Date().getTimezoneOffset()*60*1000 + 8*60*60*1000);
|
||||
//云函数使用在下面填写
|
||||
let QQ_READ_COOKIES = [
|
||||
{
|
||||
@@ -177,7 +159,7 @@ function GetCookie() {
|
||||
async function QQ_READ() {
|
||||
for (let i = 0; i < QQ_READ_COOKIES.length; i++) {
|
||||
$.log(`\n*************开始QQ账号${i + 1}**************\n`);
|
||||
tz = '';
|
||||
$.isLogin = true;
|
||||
if (!QQ_READ_COOKIES[i]["qqreadbodyVal"] || !QQ_READ_COOKIES[i]['qqreadtimeurlVal'] || !QQ_READ_COOKIES[i]['qqreadtimeheaderVal']) {
|
||||
$.log(`账号${i + 1}暂未提供脚本执行所需的cookie`);
|
||||
continue
|
||||
@@ -186,6 +168,13 @@ async function QQ_READ() {
|
||||
qqreadtimeurlVal = QQ_READ_COOKIES[i]['qqreadtimeurlVal'];
|
||||
qqreadtimeheaderVal = QQ_READ_COOKIES[i]['qqreadtimeheaderVal'];
|
||||
await qqreadinfo();//用户名
|
||||
if (!$.isLogin) {
|
||||
$.log(`企鹅阅读账号${i + 1} cookie过期`);
|
||||
if (nowTimes.getHours() % 12 === 0 && (nowTimes.getMinutes() > 0 && nowTimes.getMinutes() <= 15)) {
|
||||
await notify.sendNotify(`企鹅阅读账号${i + 1} cookie过期`, '请及时更新 QQ_READ_TIME_HEADER_VAL')
|
||||
}
|
||||
continue
|
||||
}
|
||||
await qqreadwktime();//周时长查询
|
||||
await qqreadtrack();
|
||||
await qqreadconfig();//时长查询
|
||||
@@ -229,13 +218,12 @@ async function QQ_READ() {
|
||||
if (task.data.user.amount >= 100000) {
|
||||
await qqreadwithdraw();
|
||||
}
|
||||
await showmsg();//通知
|
||||
}
|
||||
await showmsg();//通知
|
||||
}
|
||||
function showmsg() {
|
||||
return new Promise(async resolve => {
|
||||
let nowTimes = new Date(new Date().getTime() + new Date().getTimezoneOffset()*60*1000 + 8*60*60*1000);
|
||||
if (nowTimes.getHours() === 22 && (nowTimes.getMinutes() >= 0 && nowTimes.getMinutes() <= 20)) {
|
||||
if (nowTimes.getHours() === 22 && (nowTimes.getMinutes() > 45 && nowTimes.getMinutes() <= 59)) {
|
||||
await notify.sendNotify(jsname, tz);
|
||||
}
|
||||
$.msg(jsname, "", tz);
|
||||
@@ -326,6 +314,13 @@ function qqreadinfo() {
|
||||
$.get(toqqreadinfourl, (error, response, data) => {
|
||||
if (logs) $.log(`${jsname}, 用户名: ${data}`);
|
||||
let info = JSON.parse(data);
|
||||
if (info.code === 0) {
|
||||
$.isLogin = info.data['isLogin'];
|
||||
if (!$.isLogin) {
|
||||
resolve();
|
||||
return
|
||||
}
|
||||
}
|
||||
kz += `\n========== 【${info.data.user.nickName}】 ==========\n`;
|
||||
tz += `\n========== 【${info.data.user.nickName}】 ==========\n`;
|
||||
|
||||
|
||||
293
backUp/qqreadOpenBox.js
Normal file
293
backUp/qqreadOpenBox.js
Normal file
File diff suppressed because one or more lines are too long
@@ -1,4 +1,24 @@
|
||||
### Usage
|
||||
```diff
|
||||
+ 2021-01-03更新 增加 CUSTOM_SHELL_FILE 参数配置执行自定义shell脚本
|
||||
+ 例1:配置远程shell脚本, 我自己写了一个shell脚本https://raw.githubusercontent.com/iouAkira/someDockerfile/master/jd_scripts/shell_script_mod.sh 内容很简单下载惊喜农场并添加定时任务
|
||||
+ CUSTOM_SHELL_FILE=https://raw.githubusercontent.com/iouAkira/someDockerfile/master/jd_scripts/shell_script_mod.sh
|
||||
+
|
||||
+ 例2:配置docker挂载本地自定义shell脚本,/scripts/docker/shell_script_mod.sh 为你在docker-compose.yml里面挂载到容器里面绝对路径
|
||||
+ CUSTOM_SHELL_FILE=/scripts/docker/shell_script_mod.sh
|
||||
+
|
||||
+ tip:如果使用远程自定义,请保证网络畅通或者选择合适的国内仓库,例如有部分人的容器里面就下载不到github的raw文件,那就可以把自己的自定义shell写在gitee上,或者换本地挂载
|
||||
+ 如果是 docker 挂载本地,请保重文件挂载进去了,并且配置的是绝对路径。
|
||||
+ 自定义 shell 脚本里面如果要加 crontab 任务请使用 echo 追加到 /scripts/docker/merged_list_file.sh 里面否者不生效
|
||||
+ 注⚠️ 建议无shell能力的不要轻易使用,当然你可以找别人写好适配了这个docker镜像的脚本直接远程配置
|
||||
+ 上面写了这么多如果还看不懂,不建议使用该变量功能。
|
||||
_____
|
||||
! ⚠️⚠️⚠️2020-12-11更新镜像启动方式,虽然兼容旧版的运行启动方式,但是强烈建议更新镜像和配置后使用
|
||||
! 更新后`command:`指令配置不再需要
|
||||
! 更新后可以使用自定义任务文件追加在默任务文件之后,比以前的完全覆盖多一个选择
|
||||
! - 新的自定两个环境变量为 `CUSTOM_LIST_MERGE_TYPE`:自定文件的生效方式可选值为`append`,`overwrite`默认为`append` ; `CUSTOM_LIST_FILE`: 自定义文件的名字
|
||||
! 更新镜像增减镜像更新通知,以后镜像如果更新之后,会通知用户更新
|
||||
```
|
||||
> 推荐使用`docker-compose`所以这里只介绍`docker-compose`使用方式
|
||||
|
||||
- `docker-compose` 安装(群晖nas docker自带安装了docker-compose)
|
||||
@@ -21,12 +41,6 @@ pip install docker-compose
|
||||
|
||||
### 如果需要使用 docker 多个账户独立并发执行定时任务,[参考这里](https://github.com/iouAkira/scripts/blob/patch-1/docker/docker%E5%A4%9A%E8%B4%A6%E6%88%B7%E4%BD%BF%E7%94%A8%E7%8B%AC%E7%AB%8B%E5%AE%B9%E5%99%A8%E4%BD%BF%E7%94%A8%E8%AF%B4%E6%98%8E.md#%E4%BD%BF%E7%94%A8%E6%AD%A4%E6%96%B9%E5%BC%8F%E8%AF%B7%E5%85%88%E7%90%86%E8%A7%A3%E5%AD%A6%E4%BC%9A%E4%BD%BF%E7%94%A8docker%E5%8A%9E%E6%B3%95%E4%B8%80%E7%9A%84%E4%BD%BF%E7%94%A8%E6%96%B9%E5%BC%8F)
|
||||
|
||||
⚠️⚠️⚠️2020-12-11更新镜像启动方式,虽然兼容旧版的运行启动方式,但是强烈建议更新镜像和配置后使用
|
||||
- 更新后`command:`指令配置不再需要
|
||||
- 更新后可以使用自定义任务文件追加在默任务文件之后,比以前的完全覆盖多一个选择
|
||||
- - 新的自定两个环境变量为 `CUSTOM_LIST_MERGE_TYPE`:自定文件的生效方式可选值为`append`,`overwrite`默认为`append` ; `CUSTOM_LIST_FILE`: 自定义文件的名字
|
||||
- 更新镜像增减镜像更新通知,以后镜像如果更新之后,会通知用户更新
|
||||
|
||||
> 注⚠️:前提先理解学会使用这下面的教程
|
||||
### 创建一个目录`jd_scripts`用于存放备份配置等数据,迁移重装的时候只需要备份整个jd_scripts目录即可
|
||||
需要新建的目录文件结构参考如下:
|
||||
|
||||
@@ -4,24 +4,14 @@
|
||||
50 23 */3 * * rm -rf /scripts/logs/*.log
|
||||
|
||||
##############短期活动##############
|
||||
# 秒杀红包雨(2020.12.31活动过期)
|
||||
40 8 1-31 12 * node /scripts/jd_ms_redrain.js >> /scripts/logs/jd_ms_redrain.log 2>&1
|
||||
# 健康抽奖机(2020.12.31活动过期)
|
||||
10 0 1-31 12 * node /scripts/jd_health.js >> /scripts/logs/jd_health.log 2>&1
|
||||
# 直播红包雨(2020.12.31活动过期)
|
||||
1 0,20,9-23/2 15-31 12 * node /scripts/jd_live_redrain.js >> /scripts/logs/jd_live_redrain.log 2>&1
|
||||
# 京东金融打卡领年终奖(2020.12.31活动过期)
|
||||
10 6 1-31 12 * node /scripts/jr_sign.js >> /scripts/logs/jr_sign.log 2>&1
|
||||
# 京东健康APP集汪汪卡瓜分百万红包(2021.1.6活动过期)
|
||||
10 8 * * * node /scripts/jd_jdh.js >> /scripts/logs/jd_jdh.log 2>&1
|
||||
# crazyJoy自动每日任务
|
||||
10 7 * * * node /scripts/jd_crazy_joy.js >> /scripts/logs/jd_crazy_joy.log 2>&1
|
||||
# 健康抽奖机
|
||||
10 0 * * * node /scripts/jd_health.js >> /scripts/logs/jd_health.log 2>&1
|
||||
|
||||
##############长期活动##############
|
||||
# 签到
|
||||
0 0,12,18 * * * cd /scripts && node jd_bean_sign.js >> /scripts/logs/jd_bean_sign.log 2>&1
|
||||
0 0,18 * * * cd /scripts && node jd_bean_sign.js >> /scripts/logs/jd_bean_sign.log 2>&1
|
||||
# 京小超兑换奖品
|
||||
0 0 * * * node /scripts/jd_blueCoin.js >> /scripts/logs/jd_blueCoin.log 2>&1
|
||||
0,30 0 * * * node /scripts/jd_blueCoin.js >> /scripts/logs/jd_blueCoin.log 2>&1
|
||||
# 摇京豆
|
||||
0 0 * * * node /scripts/jd_club_lottery.js >> /scripts/logs/jd_club_lottery.log 2>&1
|
||||
# 东东农场
|
||||
@@ -71,11 +61,11 @@
|
||||
# 十元街
|
||||
36 8,18 * * * node /scripts/jd_syj.js >> /scripts/logs/jd_syj.log 2>&1
|
||||
# 京东代属(注:限校园用户可使用)
|
||||
36 9 * * * node /scripts/jd_ds.js >> /scripts/logs/jd_ds.log 2>&1
|
||||
# 36 9 * * * node /scripts/jd_ds.js >> /scripts/logs/jd_ds.log 2>&1
|
||||
# 京东快递签到
|
||||
23 1 * * * node /scripts/jd_kd.js >> /scripts/logs/jd_kd.log 2>&1
|
||||
# 京东汽车(签到满500赛点可兑换500京豆)
|
||||
33 2 * * * node /scripts/jd_car.js >> /scripts/logs/jd_car.log 2>&1
|
||||
0 0 * * * node /scripts/jd_car.js >> /scripts/logs/jd_car.log 2>&1
|
||||
# 领京豆额外奖励(每日可获得3京豆)
|
||||
33 4 * * * node /scripts/jd_bean_home.js >> /scripts/logs/jd_bean_home.log 2>&1
|
||||
# 京东直播(每日18豆)
|
||||
@@ -84,7 +74,11 @@
|
||||
10 11 * * * node /scripts/jd_jdzz.js >> /scripts/logs/jd_jdzz.log 2>&1
|
||||
# 宠汪汪邀请助力
|
||||
10 10,11 * * * node /scripts/jd_joy_run.js >> /scripts/logs/jd_joy_run.log 2>&1
|
||||
# 京东发现-看一看,看40个视频领80京豆(非常耗时)
|
||||
13 11,14 * * * node /scripts/jd_watch.js >> /scripts/logs/jd_watch.log 2>&1
|
||||
# 注销京东已开的店铺会员,不是注销京东plus会员,个别店铺无法注销
|
||||
44 4 * * 6 node /scripts/jd_unbind.js >> /scripts/logs/jd_unbind.log 2>&1
|
||||
# crazyJoy自动每日任务
|
||||
10 7 * * * node /scripts/jd_crazy_joy.js >> /scripts/logs/jd_crazy_joy.log 2>&1
|
||||
# 京东汽车旅程赛点兑换金豆
|
||||
0 0 * * * node /scripts/jd_car_exchange.js >> /scripts/logs/jd_car_exchange.log 2>&1
|
||||
# 导到所有互助码
|
||||
47 7 * * * node /scripts/jd_get_share_code.js >> /scripts/logs/jd_get_share_code.log 2>&1
|
||||
|
||||
@@ -107,7 +107,7 @@ if [ $(grep -c "default_task.sh" $mergedListFile) -eq '0' ]; then
|
||||
echo "52 */1 * * * sh /scripts/docker/default_task.sh |ts >> /scripts/logs/default_task.log 2>&1" >>$mergedListFile
|
||||
fi
|
||||
|
||||
if [ $RANDOM_DELAY_MAX ];then
|
||||
if [ $RANDOM_DELAY_MAX ]; then
|
||||
if [ $RANDOM_DELAY_MAX -ge 1 ]; then
|
||||
echo "已设置随机延迟为 $RANDOM_DELAY_MAX , 设置延迟任务中... "
|
||||
sed -i "/\(jd_bean_sign.js\|jd_blueCoin.js\|jd_joy_reward.js\|jd_joy_steal.js\|jd_joy_feedPets.js\)/!s/node/sleep \$((RANDOM % \$RANDOM_DELAY_MAX)); node/g" $mergedListFile
|
||||
@@ -116,6 +116,27 @@ else
|
||||
echo "未配置随即延迟对应的环境变量,故不设置延迟任务"
|
||||
fi
|
||||
|
||||
##增加自定义shell脚本
|
||||
if [ 0"$CUSTOM_SHELL_FILE" = "0" ]; then
|
||||
echo "未配置自定shell脚本文件,跳过执行。"
|
||||
else
|
||||
if expr "$CUSTOM_SHELL_FILE" : 'http.*' &>/dev/null; then
|
||||
echo "自定义shell脚本为远程脚本,开始下在自定义远程脚本。"
|
||||
wget -O /scripts/docker/shell_script_mod.sh $CUSTOM_SHELL_FILE
|
||||
echo "下载完成,开始执行..."
|
||||
sh -x /scripts/docker/shell_script_mod.sh
|
||||
echo "自定义远程shell脚本下载并执行结束。"
|
||||
else
|
||||
if [ !$CUSTOM_SHELL_FILE ]; then
|
||||
echo "自定义shell脚本为docker挂载脚本文件,但是指定挂载文件不存在,跳过执行。"
|
||||
else
|
||||
echo "docker挂载的自定shell脚本,开始执行..."
|
||||
sh -x $CUSTOM_SHELL_FILE
|
||||
echo "docker挂载的自定shell脚本,执行结束。"
|
||||
fi
|
||||
fi
|
||||
fi
|
||||
|
||||
echo "加载最新的定时任务文件..."
|
||||
crontab $mergedListFile
|
||||
|
||||
|
||||
@@ -118,9 +118,9 @@ Apple京东自营旗舰店
|
||||
100&100&iPhone12&Apple京东自营旗舰店
|
||||
```
|
||||
|
||||
#### 关于脚本推送通知(微信server酱推送通知,bark app推送通知,telegram机器人推送通知,钉钉机器人推送通知,iGot聚合推送)
|
||||
#### 关于脚本推送通知频率
|
||||
|
||||
> 如果你填写了上面五种推送通知方式中的某一个通知所需secret,那么脚本通知情况如下:
|
||||
> 如果你填写了推送通知方式中的某一种通知所需环境变量,那么脚本通知情况如下:
|
||||
|
||||
> 目前默认只有jd_fruit.js,jd_pet.js,jd_bean_sign.js,jd_818.js四个脚本每次运行后都通知
|
||||
|
||||
|
||||
154
iCloud.md
154
iCloud.md
@@ -1,154 +0,0 @@
|
||||
## 1.安装 Node.js 环境
|
||||
|
||||
[下载地址](https://nodejs.org/zh-tw/download/ )
|
||||
|
||||
根据自己的操作系统下载
|
||||
|
||||
傻瓜式安装,一直下一步即可。
|
||||
|
||||
|
||||
|
||||
## 2.下载源码
|
||||
|
||||

|
||||
|
||||
点击红框处下载压缩包
|
||||
|
||||
## 3.安装依赖、增加入口文件、增加cookie
|
||||
|
||||
压缩包解压后进入项目文件夹
|
||||
|
||||
- Windows 用户按住 **shift** 点击右键,点击 **在此处打开命令窗口**
|
||||
- Mac 用户通过终端,自行进入该文件夹
|
||||
|
||||
在命令行内输入 `npm i `,等待运行完成。
|
||||
|
||||
此时,项目文件夹内会多出一个 `node_modules`文件夹
|
||||
|
||||
**增加入口文件**
|
||||
|
||||
方案一:同一个仓库下同一个时间,执行多个脚本
|
||||
|
||||
在项目文件夹内新建 `index.js`
|
||||
|
||||
编辑文件
|
||||
|
||||
```javascript
|
||||
'use strict';
|
||||
exports.main_handler = async (event, context, callback) => {
|
||||
//解决云函数热启动问题
|
||||
delete require.cache[require.resolve('./jd_xtg1.js')];
|
||||
require('./jd_xtg1.js') //这里写你想要的脚本
|
||||
require('./jd_xtg2.js') //这里写你想要的脚本
|
||||
require('./jd_xtg3.js') //这里写你想要的脚本
|
||||
}
|
||||
|
||||
```
|
||||
此时,同一时间点下,会同时执行多个脚本,触发器触发后,index.js文件中require()下的所有脚本都会被执行
|
||||
|
||||
**优点**:同一时间下可以同时执行多个脚本,适合脚本种类少的repository,对脚本数量少的repository推荐使用此方案<br>**缺点**:多个脚本不同时间点运行无法满足
|
||||
|
||||
方案二:同一个仓库下不同的时间点,分别执行不同的脚本(类似GitHub Action执行机制)
|
||||
|
||||
在项目文件夹内新建 `index.js`
|
||||
|
||||
编辑文件
|
||||
|
||||
```javascript
|
||||
'use strict';
|
||||
exports.main_handler = async (event, context, callback) => {
|
||||
for (const v of event["Message"].split("\r\n")) {
|
||||
//解决云函数热启动问题
|
||||
delete require.cache[require.resolve(`./${v}.js`)];
|
||||
console.log(v);
|
||||
require(`./${v}.js`)
|
||||
}
|
||||
}
|
||||
|
||||
```
|
||||
|
||||
此时触发管理按照下图中进行设置,附加信息选择“是”,内容填写需要传递执行的具体脚本文件名,以回车键换行。触发器触发后,附加信息栏内的脚本会被执行,设置多个不同时间点的触发器达到类似GitHub Action的效果
|
||||
|
||||
**优点**:可以满足个性化需求,同一个repository下只需要设置不同的触发器,可以实现不同时间点分别执行不同的脚本<br>**缺点**:repository下脚本过多,如果需要设置多个触发器,实现个性化运行效果,由于云函数的限制,最多只能设置10个
|
||||
|
||||
[](https://imgchr.com/i/B20KxI)
|
||||
[](https://imgchr.com/i/BRCG0H)
|
||||
|
||||
**注意:**<br>
|
||||
Ⅰ方案一与方案二不能混合到同一个index.js文件中使用,同一个仓库下,二者只能选择其一。<br>
|
||||
Ⅱ感谢[issues#115](https://github.com/lxk0301/jd_scripts/issues/115)中的解决方案,目前云函数连续测试已经可以规避热启动问题了。<br>
|
||||
Ⅲ在确保完全按照本教程设置的情况下测试云函数运行情况,对于部分人运行日志中出现某些脚本运行失败其他正常,并且错误提示带有strict字样的,请自行删除index.js中的```'use strict';```,再做测试<br>
|
||||
|
||||
**增加cookie**
|
||||
|
||||
打开项目文件内的 `jdCookie.js`
|
||||
|
||||
在最上面的 `CookieJDs`里写入 cookie ,多个账号以逗号分隔
|
||||
|
||||
例如
|
||||
|
||||
```javascript
|
||||
let CookieJDs = [
|
||||
'pt_key=xxx;pt_pin=xxx;',
|
||||
'pt_key=zzz;pt_pin=zzz;',
|
||||
'pt_key=aaa;pt_pin=xxxaaa'
|
||||
]
|
||||
```
|
||||
|
||||
|
||||
|
||||
## 4.上传至腾讯云
|
||||
|
||||
[腾讯云函数地址]( https://console.cloud.tencent.com/scf/index )
|
||||
|
||||
编写函数
|
||||
|
||||
登录后,点击管理控制台
|
||||
|
||||
单击左侧导航栏**函数服务**,进入“函数服务”页面。
|
||||
在页面上方选择一个地域,最好选择离你常用地区近点的,不至于导致账号异常。单击**新建**。如下图所示:
|
||||
|
||||

|
||||
|
||||
在“新建函数”页面填写函数基础信息,单击**下一步**。如下图所示:
|
||||
|
||||

|
||||
|
||||
**函数名称**:可以自定义,比如为jd。<br>**运行环境**:选择 “Nodejs 12.16”。<br>**创建方式**:选择 “空白函数”。
|
||||
|
||||
确保环境为Nodejs 12.16,执行方法改为:index.main_handler,提交方式建议选本地文件夹,然后从GitHub项目克隆Zip压缩包,解压成文件夹,然后点击这个上传把文件夹上传进来(记得node_modules文件夹一并上传或者将node_modules文件夹上传到“层”,之后选择“函数管理”-“层管理”绑定上传好的层),完了后点击下面的高级设置。
|
||||
|
||||

|
||||
|
||||
内存用不了太大,64MB就够了(64M内存,免费时长6,400,000秒,内存与免费时长大致关系可以参看云函数官方说明),超时时间改为最大的900秒,然后点击最下面的完成。
|
||||
|
||||

|
||||
|
||||
## 5.设置触发器
|
||||
|
||||
点击刚创建的函数
|
||||
|
||||

|
||||
|
||||
点击如图所示
|
||||
|
||||

|
||||
|
||||
创建触发器
|
||||
|
||||

|
||||
|
||||
触发方式默认“**定时触发**”,定时任务名称随便起个名字,触发周期根据自己需要自行设置。
|
||||
|
||||
想进阶使用触发器的自行查看本文中方案一和方案二中的说明
|
||||
|
||||
关于触发周期中的自定义触发周期,使用的是 Cron表达式,这个自行学习下吧
|
||||
|
||||
|
||||
[Corn文档](https://cloud.tencent.com/document/product/583/9708#cron-.E8.A1.A8.E8.BE.BE.E5.BC.8F)
|
||||
|
||||
目前repo中按照每个脚本一个定时器的方式设置到云函数中,大约需要触发器10多个,由于云函数触发器限制最多10个,需要对触发器进行整合,整合后触发器保持在10个以内,以下设置仅供参考<br>
|
||||
|
||||

|
||||
|
||||
点击提交,所有流程就结束了。
|
||||
13
jdCookie.js
13
jdCookie.js
@@ -15,19 +15,14 @@ if (process.env.JD_COOKIE) {
|
||||
} else if (process.env.JD_COOKIE.indexOf('\n') > -1) {
|
||||
console.log(`您的cookie选择的是用换行隔开\n`)
|
||||
CookieJDs = process.env.JD_COOKIE.split('\n');
|
||||
} else if (process.env.JD_COOKIE.indexOf('\\n') > -1) {
|
||||
//环境变量兼容腾讯云和docker下\n会被转义成\\n
|
||||
console.log(`您的cookie选择的是用换行隔开\\n`)
|
||||
CookieJDs = process.env.JD_COOKIE.split('\\n');
|
||||
} else {
|
||||
CookieJDs = [process.env.JD_COOKIE];
|
||||
}
|
||||
CookieJDs = [...new Set(CookieJDs)]
|
||||
console.log(`\n====================共有${CookieJDs.length}个京东账号Cookie=========\n`);
|
||||
console.log(`==================脚本执行- 北京时间(UTC+8):${new Date(new Date().getTime() + new Date().getTimezoneOffset()*60*1000 + 8*60*60*1000).toLocaleString()}=====================\n`)
|
||||
// console.log(`\n==================脚本执行来自 github action=====================\n`)
|
||||
}
|
||||
CookieJDs = [...new Set(CookieJDs.filter(item => item !== "" && item !== null && item !== undefined))]
|
||||
console.log(`\n====================共有${CookieJDs.length}个京东账号Cookie=========\n`);
|
||||
console.log(`==================脚本执行- 北京时间(UTC+8):${new Date(new Date().getTime() + new Date().getTimezoneOffset()*60*1000 + 8*60*60*1000).toLocaleString()}=====================\n`)
|
||||
for (let i = 0; i < CookieJDs.length; i++) {
|
||||
const index = (i + 1 === 1) ? '' : (i + 1);
|
||||
exports['CookieJD' + index] = CookieJDs[i];
|
||||
exports['CookieJD' + index] = CookieJDs[i].trim();
|
||||
}
|
||||
|
||||
@@ -11,7 +11,7 @@ let shareCodes = [
|
||||
'V5LkjP4WRyjeCKR9VRwcRX0bBuTz7MEK0-E99EJ7u0k=@Bo-jnVs_m9uBvbRzraXcSA==@-OvElMzqeyeGBWazWYjI1Q==',//账号一的好友shareCode,不同好友中间用@符号隔开
|
||||
'1uzRU5HkaUgvy0AB5Q9VUg==@PDPM257r_KuQhil2Y7koNw==@-OvElMzqeyeGBWazWYjI1Q==',//账号二的好友shareCode,不同好友中间用@符号隔开
|
||||
]
|
||||
// 判断github action里面是否有东东萌宠互助码
|
||||
// 判断github action里面是否有京喜工厂互助码
|
||||
if (process.env.DREAM_FACTORY_SHARE_CODES) {
|
||||
if (process.env.DREAM_FACTORY_SHARE_CODES.indexOf('&') > -1) {
|
||||
console.log(`您的互助码选择的是用&隔开\n`)
|
||||
@@ -28,4 +28,4 @@ if (process.env.DREAM_FACTORY_SHARE_CODES) {
|
||||
for (let i = 0; i < shareCodes.length; i++) {
|
||||
const index = (i + 1 === 1) ? '' : (i + 1);
|
||||
exports['shareCodes' + index] = shareCodes[i];
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
水果互助码
|
||||
东东农场互助码
|
||||
此文件为Node.js专用。其他用户请忽略
|
||||
支持京东N个账号
|
||||
*/
|
||||
@@ -11,7 +11,7 @@ let FruitShareCodes = [
|
||||
'0a74407df5df4fa99672a037eec61f7e@dbb21614667246fabcfd9685b6f448f3@6fbd26cc27ac44d6a7fed34092453f77@61ff5c624949454aa88561f2cd721bf6@56db8e7bc5874668ba7d5195230d067a',//账号一的好友shareCode,不同好友中间用@符号隔开
|
||||
'6fbd26cc27ac44d6a7fed34092453f77@61ff5c624949454aa88561f2cd721bf6@9c52670d52ad4e1a812f894563c746ea@8175509d82504e96828afc8b1bbb9cb3',//账号二的好友shareCode,不同好友中间用@符号隔开
|
||||
]
|
||||
// 判断github action里面是否有水果互助码
|
||||
// 判断github action里面是否有东东农场互助码
|
||||
if (process.env.FRUITSHARECODES) {
|
||||
if (process.env.FRUITSHARECODES.indexOf('&') > -1) {
|
||||
console.log(`您的东东农场互助码选择的是用&隔开\n`)
|
||||
|
||||
@@ -11,7 +11,7 @@ let PlantBeanShareCodes = [
|
||||
'66j4yt3ebl5ierjljoszp7e4izzbzaqhi5k2unz2afwlyqsgnasq@olmijoxgmjutyrsovl2xalt2tbtfmg6sqldcb3q@e7lhibzb3zek27amgsvywffxx7hxgtzstrk2lba@olmijoxgmjutyx55upqaqxrblt7f3h26dgj2riy',//账号一的好友shareCode,不同好友中间用@符号隔开
|
||||
'4npkonnsy7xi3p6pjfxg6ct5gll42gmvnz7zgoy@6dygkptofggtp6ffhbowku3xgu@mlrdw3aw26j3wgzjipsxgonaoyr2evrdsifsziy@mlrdw3aw26j3wgzjipsxgonaoyr2evrdsifsziy',//账号二的好友shareCode,不同好友中间用@符号隔开
|
||||
]
|
||||
// 判断github action里面是否有东东萌宠互助码
|
||||
// 判断github action里面是否有种豆得豆互助码
|
||||
if (process.env.PLANT_BEAN_SHARECODES) {
|
||||
if (process.env.PLANT_BEAN_SHARECODES.indexOf('&') > -1) {
|
||||
console.log(`您的种豆互助码选择的是用&隔开\n`)
|
||||
@@ -28,4 +28,4 @@ if (process.env.PLANT_BEAN_SHARECODES) {
|
||||
for (let i = 0; i < PlantBeanShareCodes.length; i++) {
|
||||
const index = (i + 1 === 1) ? '' : (i + 1);
|
||||
exports['PlantBeanShareCodes' + index] = PlantBeanShareCodes[i];
|
||||
}
|
||||
}
|
||||
|
||||
@@ -111,11 +111,63 @@ const JD_API_HOST = 'https://api.m.jd.com/';
|
||||
})
|
||||
|
||||
async function jdBeanHome() {
|
||||
$.doneState = false
|
||||
// for (let i = 0; i < 3; ++i) {
|
||||
// await doTask2()
|
||||
// await $.wait(1000)
|
||||
// if ($.doneState) break
|
||||
// }
|
||||
do {
|
||||
await doTask2()
|
||||
await $.wait(3000)
|
||||
} while (!$.doneState)
|
||||
await $.wait(1000)
|
||||
await award("feeds")
|
||||
await $.wait(1000)
|
||||
await getUserInfo()
|
||||
await $.wait(1000)
|
||||
await getTaskList()
|
||||
await showMsg();
|
||||
}
|
||||
|
||||
function getRandomInt(min, max) {
|
||||
min = Math.ceil(min);
|
||||
max = Math.floor(max);
|
||||
return Math.floor(Math.random() * (max - min)) + min;
|
||||
}
|
||||
function doTask2() {
|
||||
return new Promise(resolve => {
|
||||
const body = {"awardFlag": false, "skuId": `${getRandomInt(10000000,20000000)}`, "source": "feeds", "type": '1'};
|
||||
$.post(taskUrl('beanHomeTask', body), (err, resp, data) => {
|
||||
try {
|
||||
if (err) {
|
||||
console.log(`${JSON.stringify(err)}`)
|
||||
console.log(`${$.name} API请求失败,请检查网路重试`)
|
||||
} else {
|
||||
if (safeGet(data)) {
|
||||
data = JSON.parse(data);
|
||||
if (data.code === '0' && data.data){
|
||||
console.log(`任务完成进度:${data.data.taskProgress} / ${data.data.taskThreshold}`)
|
||||
if(data.data.taskProgress === data.data.taskThreshold)
|
||||
$.doneState = true
|
||||
} else if (data.code === '0' && data.errorCode === 'HT201') {
|
||||
$.doneState = true
|
||||
} else {
|
||||
//HT304风控用户
|
||||
$.doneState = true
|
||||
console.log(`做任务异常:${JSON.stringify(data)}`)
|
||||
}
|
||||
}
|
||||
}
|
||||
} catch (e) {
|
||||
$.logErr(e, resp)
|
||||
} finally {
|
||||
resolve();
|
||||
}
|
||||
})
|
||||
})
|
||||
}
|
||||
|
||||
function getAuthorShareCode() {
|
||||
return new Promise(resolve => {
|
||||
$.get({url: "https://gitee.com/shylocks/updateTeam/raw/main/jd_bean_home",headers:{
|
||||
@@ -164,18 +216,20 @@ function getUserInfo() {
|
||||
} else {
|
||||
if (safeGet(data)) {
|
||||
data = JSON.parse(data);
|
||||
$.actId = data.data.jklInfo.keyId
|
||||
let {shareCode, groupCode} = data.data
|
||||
if (!shareCode) {
|
||||
console.log(`未获取到助力码,去开团`)
|
||||
await hitGroup()
|
||||
} else {
|
||||
console.log(shareCode, groupCode)
|
||||
// 去做逛会场任务
|
||||
if (data.data.beanActivityVisitVenue.taskStatus === '0') {
|
||||
await help(shareCode, groupCode, 1)
|
||||
if(data.data.jklInfo) {
|
||||
$.actId = data.data.jklInfo.keyId
|
||||
let {shareCode, groupCode} = data.data
|
||||
if (!shareCode) {
|
||||
console.log(`未获取到助力码,去开团`)
|
||||
await hitGroup()
|
||||
} else {
|
||||
console.log(shareCode, groupCode)
|
||||
// 去做逛会场任务
|
||||
if (data.data.beanActivityVisitVenue.taskStatus === '0') {
|
||||
await help(shareCode, groupCode, 1)
|
||||
}
|
||||
$.newShareCodes.push([shareCode, groupCode])
|
||||
}
|
||||
$.newShareCodes.push([shareCode, groupCode])
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -328,9 +382,9 @@ function receiveTask(itemId = "zddd", type = "3") {
|
||||
}
|
||||
|
||||
|
||||
function award() {
|
||||
function award(source="home") {
|
||||
return new Promise(resolve => {
|
||||
const body = {"awardFlag": true, "source": "home"};
|
||||
const body = {"awardFlag": true, "source": source};
|
||||
$.post(taskUrl('beanHomeTask', body), (err, resp, data) => {
|
||||
try {
|
||||
if (err) {
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
/*
|
||||
京豆签到,自用,可N个京东账号,IOS软件用户请使用 https://raw.githubusercontent.com/NobyDa/Script/master/JD-DailyBonus/JD_DailyBonus.js
|
||||
Node.JS专用
|
||||
更新时间:2020-12-21
|
||||
更新时间:2021-1-7
|
||||
从 github @ruicky改写而来
|
||||
version v0.0.1
|
||||
create by ruicky
|
||||
@@ -17,6 +17,7 @@ const download = require('download');
|
||||
let resultPath = "./result.txt";
|
||||
let JD_DailyBonusPath = "./JD_DailyBonus.js";
|
||||
let outPutUrl = './';
|
||||
let NodeSet = 'CookieSet.json';
|
||||
let cookiesArr = [], cookie = '';
|
||||
|
||||
if ($.isNode()) {
|
||||
@@ -75,7 +76,7 @@ async function execSign() {
|
||||
const barkContentStart = notifyContent.indexOf('【签到概览】')
|
||||
const barkContentEnd = notifyContent.length;
|
||||
if (process.env.JD_BEAN_SIGN_STOP_NOTIFY === 'true') return
|
||||
if (notify.BARK_PUSH) process.env.JD_BEAN_SIGN_NOTIFY_SIMPLE = 'true';
|
||||
if (process.env.BARK_PUSH || notify.BARK_PUSH) process.env.JD_BEAN_SIGN_NOTIFY_SIMPLE = 'true';
|
||||
if (process.env.JD_BEAN_SIGN_NOTIFY_SIMPLE === 'true') {
|
||||
if (barkContentStart > -1 && barkContentEnd > -1) {
|
||||
BarkContent = notifyContent.substring(barkContentStart, barkContentEnd);
|
||||
@@ -130,6 +131,7 @@ async function downFile () {
|
||||
async function changeFile (content) {
|
||||
console.log(`开始替换变量`)
|
||||
let newContent = content.replace(/var Key = ''/, `var Key = '${cookie}'`);
|
||||
newContent = newContent.replace(/const NodeSet = 'CookieSet.json'/, `const NodeSet = '${NodeSet}'`)
|
||||
if (process.env.JD_BEAN_STOP && process.env.JD_BEAN_STOP !== '0') {
|
||||
newContent = newContent.replace(/var stop = 0/, `var stop = ${process.env.JD_BEAN_STOP * 1}`);
|
||||
}
|
||||
@@ -219,6 +221,7 @@ function requireConfig() {
|
||||
resultPath = err ? '/tmp/result.txt' : resultPath;
|
||||
JD_DailyBonusPath = err ? '/tmp/JD_DailyBonus.js' : JD_DailyBonusPath;
|
||||
outPutUrl = err ? '/tmp/' : outPutUrl;
|
||||
NodeSet = err ? '/tmp/CookieSet.json' : NodeSet;
|
||||
resolve()
|
||||
});
|
||||
})
|
||||
|
||||
194
jd_car_exchange.js
Normal file
194
jd_car_exchange.js
Normal file
File diff suppressed because one or more lines are too long
120
jd_crazy_joy.js
120
jd_crazy_joy.js
File diff suppressed because one or more lines are too long
@@ -204,6 +204,12 @@ async function jdJxStory() {
|
||||
await $.wait(1000)
|
||||
await getJoyShop()
|
||||
await $.wait(1000)
|
||||
if ($.joyIds && $.joyIds.length > 0) {
|
||||
$.log('当前JOY分布情况')
|
||||
$.log(`\n${$.joyIds[0]} ${$.joyIds[1]} ${$.joyIds[2]} ${$.joyIds[3]}`)
|
||||
$.log(`${$.joyIds[4]} ${$.joyIds[5]} ${$.joyIds[6]} ${$.joyIds[7]}`)
|
||||
$.log(`${$.joyIds[8]} ${$.joyIds[9]} ${$.joyIds[10]} ${$.joyIds[11]}\n`)
|
||||
}
|
||||
for (let i = 0; i < $.joyIds.length; ++i) {
|
||||
if (!$.canBuy) {
|
||||
$.log(`金币不足,跳过购买`)
|
||||
@@ -280,8 +286,14 @@ function getJoyShop() {
|
||||
data = JSON.parse(data);
|
||||
if (data.success && data.data && data.data.shop) {
|
||||
const shop = data.data.shop.filter(vo => vo.status === 1) || []
|
||||
$.buyJoyLevel = shop.length ? shop[shop.length - 1]['joyId'] : 1
|
||||
$.cost = shop.length ? shop[shop.length - 1]['coins'] : Infinity
|
||||
$.buyJoyLevel = shop.length ? shop[shop.length - 1]['joyId'] : 1;//可购买的最大等级
|
||||
if ($.isNode() && process.env.BUY_JOY_LEVEL) {
|
||||
$.log(`当前可购买的最高JOY等级为${$.buyJoyLevel}级\n`)
|
||||
$.buyJoyLevel = (process.env.BUY_JOY_LEVEL * 1) > $.buyJoyLevel ? $.buyJoyLevel : process.env.BUY_JOY_LEVEL * 1;
|
||||
$.cost = shop[$.buyJoyLevel - 1]['coins']
|
||||
} else {
|
||||
$.cost = shop.length ? shop[shop.length - 1]['coins'] : Infinity
|
||||
}
|
||||
}
|
||||
}
|
||||
} catch (e) {
|
||||
@@ -412,12 +424,17 @@ function getCoin() {
|
||||
if (data.data && data.data.tryMoneyJoyBeans) {
|
||||
console.log(`分红狗生效中,预计获得 ${data.data.tryMoneyJoyBeans} 京豆奖励`)
|
||||
}
|
||||
if (data.data && data.data.totalCoinAmount)
|
||||
$.coin = data.data.totalCoinAmount
|
||||
if (data.data && data.data.totalCoinAmount) {
|
||||
$.coin = data.data.totalCoinAmount;
|
||||
} else {
|
||||
$.coin = `获取当前金币数量失败`
|
||||
}
|
||||
if (data.data && data.data.luckyBoxRecordId) {
|
||||
await openBox('LUCKY_BOX_DROP',data.data.luckyBoxRecordId)
|
||||
} else
|
||||
$.log(`产出金币信息获取失败`)
|
||||
}
|
||||
if (data.data) {
|
||||
$.log(`此次在线收益:获得 ${data.data['coins']} 金币`)
|
||||
}
|
||||
}
|
||||
}
|
||||
} catch (e) {
|
||||
@@ -430,7 +447,6 @@ function getCoin() {
|
||||
}
|
||||
|
||||
function openBox(eventType = 'LUCKY_BOX_DROP', boxId) {
|
||||
console.log(`openBox:${eventType}`)
|
||||
let body = { eventType, "eventRecordId": boxId}
|
||||
return new Promise(async resolve => {
|
||||
$.get(taskUrl('crazyJoy_event_getVideoAdvert', JSON.stringify(body)), async (err, resp, data) => {
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
/*
|
||||
京东京喜工厂
|
||||
更新时间:2020-12-07
|
||||
更新时间:2020-12-27
|
||||
活动入口 :京东APP->游戏与互动->查看更多->京喜工厂
|
||||
或者: 京东APP首页搜索 "玩一玩" ,造物工厂即可
|
||||
|
||||
@@ -31,10 +31,10 @@ const JD_API_HOST = 'https://m.jingxi.com';
|
||||
const notify = $.isNode() ? require('./sendNotify') : '';
|
||||
let jdNotify = true;//是否关闭通知,false打开通知推送,true关闭通知推送
|
||||
const randomCount = $.isNode() ? 20 : 5;
|
||||
const tuanActiveId = `6S9y4sJUfA2vPQP6TLdVIQ==`;
|
||||
let tuanActiveId = `6S9y4sJUfA2vPQP6TLdVIQ==`;
|
||||
const jxOpenUrl = `openjd://virtual?params=%7B%20%22category%22:%20%22jump%22,%20%22des%22:%20%22m%22,%20%22url%22:%20%22https://wqsd.jd.com/pingou/dream_factory/index.html%22%20%7D`;
|
||||
let cookiesArr = [], cookie = '', message = '';
|
||||
const inviteCodes = ['V5LkjP4WRyjeCKR9VRwcRX0bBuTz7MEK0-E99EJ7u0k=', 'PDPM257r_KuQhil2Y7koNw==', "gB99tYLjvPcEFloDgamoBw==", '-OvElMzqeyeGBWazWYjI1Q==', 'GFwo6PntxDHH95ZRzZ5uAg=='];
|
||||
const inviteCodes = ['V5LkjP4WRyjeCKR9VRwcRX0bBuTz7MEK0-E99EJ7u0k=@0WtCMPNq7jekehT6d3AbFw==', 'PDPM257r_KuQhil2Y7koNw==', "gB99tYLjvPcEFloDgamoBw==", '-OvElMzqeyeGBWazWYjI1Q==', 'GFwo6PntxDHH95ZRzZ5uAg=='];
|
||||
const jdCookieNode = $.isNode() ? require('./jdCookie.js') : '';
|
||||
if ($.isNode()) {
|
||||
Object.keys(jdCookieNode).forEach((item) => {
|
||||
@@ -565,7 +565,12 @@ function userInfo() {
|
||||
// $.msg($.name, '【提示】', `京东账号${$.index}[${$.nickName}]京喜工厂活动未开始\n请手动去京东APP->游戏与互动->查看更多->京喜工厂 开启活动`);
|
||||
} else if (data.factoryList && !data.productionList) {
|
||||
console.log(`【提示】京东账号${$.index}[${$.nickName}]京喜工厂未选购商品\n请手动去京东APP->游戏与互动->查看更多->京喜工厂 选购\n`)
|
||||
// $.msg($.name, '【提示】', `京东账号${$.index}[${$.nickName}]京喜工厂未选择商品\n请手动去京东APP->游戏与互动->查看更多->京喜工厂 选择商品`);
|
||||
let nowTimes = new Date(new Date().getTime() + new Date().getTimezoneOffset()*60*1000 + 8*60*60*1000);
|
||||
if (nowTimes.getHours() % 12 === 0) {
|
||||
//如按每小时运行一次,则此处将一天推送2次提醒
|
||||
$.msg($.name, '提醒⏰', `京东账号${$.index}[${$.nickName}]京喜工厂未选择商品\n请手动去京东APP->游戏与互动->查看更多->京喜工厂 选择商品`);
|
||||
if ($.isNode()) await notify.sendNotify(`${$.name} - 京东账号${$.index} - ${$.nickName}`, `京东账号${$.index}[${$.nickName}]京喜工厂未选择商品\n请手动去京东APP->游戏与互动->查看更多->京喜工厂 选择商品`)
|
||||
}
|
||||
}
|
||||
}
|
||||
} else {
|
||||
@@ -1013,17 +1018,19 @@ function CreateTuan() {
|
||||
})
|
||||
}
|
||||
async function joinLeaderTuan() {
|
||||
await updateTuanIds();
|
||||
if (!$.tuanIdS) await updateTuanIdsCDN('https://gitee.com/lxk0301/updateTeam/raw/master/jd_updateFactoryTuanId.json');
|
||||
if (!$.tuanIdS) await updateTuanIdsCDN('https://cdn.jsdelivr.net/gh/lxk0301/updateTeam@master/jd_updateFactoryTuanId.json');
|
||||
for (let tuanId of $.tuanIdS.tuanIds) {
|
||||
if (!tuanId) continue
|
||||
await JoinTuan(tuanId);
|
||||
if ($.tuanIdS && $.tuanIdS.tuanIds) {
|
||||
for (let tuanId of $.tuanIdS.tuanIds) {
|
||||
if (!tuanId) continue
|
||||
await JoinTuan(tuanId);
|
||||
}
|
||||
}
|
||||
$.tuanIdS = null;
|
||||
if (!$.tuanIdS) await updateTuanIdsCDN('https://gitee.com/shylocks/updateTeam/raw/main/jd_updateFactoryTuanId.json');
|
||||
for (let tuanId of $.tuanIdS.tuanIds) {
|
||||
if (!tuanId) continue
|
||||
await JoinTuan(tuanId);
|
||||
if ($.tuanIdS && $.tuanIdS.tuanIds) {
|
||||
for (let tuanId of $.tuanIdS.tuanIds) {
|
||||
if (!tuanId) continue
|
||||
await JoinTuan(tuanId);
|
||||
}
|
||||
}
|
||||
}
|
||||
function JoinTuan(tuanId) {
|
||||
@@ -1248,17 +1255,17 @@ async function exchangeProNotify() {
|
||||
// 一:在兑换超时这一天(2020/12/8 09:20:04)的前2小时内通知
|
||||
if ((exchangeEndTime - nowTimes) <= 3600000 * 2) {
|
||||
$.msg($.name, ``, `【京东账号${$.index}】${$.nickName}\n【生产商品】${$.productName}${(exchangeEndTime - nowTimes) / 60*60*1000}分钟后兑换超时\n【兑换截止时间】${$.exchangeEndTime}\n请速去京喜APP->首页->好物0元造进行兑换`, {'open-url': jxOpenUrl, 'media-url': $.picture})
|
||||
await notify.sendNotify(`${$.name} - 京东账号${$.index} - ${$.nickName}`, `【京东账号${$.index}】${$.nickName}\n【生产商品】${$.productName}${(exchangeEndTime - nowTimes) / 60*60*1000}分钟后兑换超时\n【兑换截止时间】${$.exchangeEndTime}\n请速去京喜APP->首页->好物0元造进行兑换`, { url: jxOpenUrl })
|
||||
if ($.isNode()) await notify.sendNotify(`${$.name} - 京东账号${$.index} - ${$.nickName}`, `【京东账号${$.index}】${$.nickName}\n【生产商品】${$.productName}${(exchangeEndTime - nowTimes) / 60*60*1000}分钟后兑换超时\n【兑换截止时间】${$.exchangeEndTime}\n请速去京喜APP->首页->好物0元造进行兑换`, { url: jxOpenUrl })
|
||||
}
|
||||
//二:在兑换超时日期前的时间一天通知三次(2020/12/6 9,10,11点,以及在2020/12/7 9,10,11点各通知一次)
|
||||
if (nowHours === exchangeEndHours || nowHours === (exchangeEndHours + 1) || nowHours === (exchangeEndHours + 2)) {
|
||||
$.msg($.name, ``, `【京东账号${$.index}】${$.nickName}\n【生产商品】${$.productName}已可兑换\n【兑换截止时间】${$.exchangeEndTime}\n请速去京喜APP->首页->好物0元造进行兑换`, {'open-url': jxOpenUrl, 'media-url': $.picture})
|
||||
await notify.sendNotify(`${$.name} - 京东账号${$.index} - ${$.nickName}`, `【京东账号${$.index}】${$.nickName}\n【生产商品】${$.productName}已可兑换\n【兑换截止时间】${$.exchangeEndTime}\n请速去京喜APP->首页->好物0元造进行兑换`, { url: jxOpenUrl })
|
||||
if ($.isNode()) await notify.sendNotify(`${$.name} - 京东账号${$.index} - ${$.nickName}`, `【京东账号${$.index}】${$.nickName}\n【生产商品】${$.productName}已可兑换\n【兑换截止时间】${$.exchangeEndTime}\n请速去京喜APP->首页->好物0元造进行兑换`, { url: jxOpenUrl })
|
||||
}
|
||||
} else {
|
||||
//兑换已超时
|
||||
$.msg($.name, ``, `【京东账号${$.index}】${$.nickName}\n【生产商品】${$.productName}兑换已超时,请重新选择商品生产\n【兑换截止时间】${$.exchangeEndTime}`, {'open-url': jxOpenUrl})
|
||||
await notify.sendNotify(`${$.name} - 京东账号${$.index} - ${$.nickName}`, `【京东账号${$.index}】${$.nickName}\n【生产商品】${$.productName}兑换已超时,请重新选择商品生产\n【兑换截止时间】${$.exchangeEndTime}`, { url: jxOpenUrl })
|
||||
if ($.isNode()) await notify.sendNotify(`${$.name} - 京东账号${$.index} - ${$.nickName}`, `【京东账号${$.index}】${$.nickName}\n【生产商品】${$.productName}兑换已超时,请重新选择商品生产\n【兑换截止时间】${$.exchangeEndTime}`, { url: jxOpenUrl })
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -1298,7 +1305,7 @@ function readShareCode() {
|
||||
console.log(`${$.name} API请求失败,请检查网路重试`)
|
||||
} else {
|
||||
if (data) {
|
||||
console.log(`随机取${randomCount}个码放到您固定的互助码后面`)
|
||||
console.log(`随机取${randomCount}个码放到您固定的互助码后面(不影响已有固定互助)`)
|
||||
data = JSON.parse(data);
|
||||
}
|
||||
}
|
||||
@@ -1333,8 +1340,15 @@ function shareCodesFormat() {
|
||||
})
|
||||
}
|
||||
function requireConfig() {
|
||||
return new Promise(resolve => {
|
||||
return new Promise(async resolve => {
|
||||
await updateTuanIdsCDN('https://gitee.com/lxk0301/updateTeam/raw/master/jd_updateFactoryTuanId.json');
|
||||
if (!$.tuanIdS) await updateTuanIds();
|
||||
if (!$.tuanIdS) await updateTuanIdsCDN('https://cdn.jsdelivr.net/gh/lxk0301/updateTeam@master/jd_updateFactoryTuanId.json');
|
||||
if ($.tuanIdS && $.tuanIdS.tuanActiveId) {
|
||||
tuanActiveId = $.tuanIdS.tuanActiveId;
|
||||
}
|
||||
console.log(`开始获取${$.name}配置文件\n`);
|
||||
console.log(`tuanActiveId: ${tuanActiveId}`)
|
||||
//Node.js用户请在jdCookie.js处填写京东ck;
|
||||
const shareCodes = $.isNode() ? require('./jdDreamFactoryShareCodes.js') : '';
|
||||
console.log(`共${cookiesArr.length}个京东账号\n`);
|
||||
|
||||
51
jd_fruit.js
51
jd_fruit.js
@@ -1,6 +1,6 @@
|
||||
/*
|
||||
东东水果:脚本更新地址 https://raw.githubusercontent.com/lxk0301/jd_scripts/master/jd_fruit.js
|
||||
更新时间:2020-12-15
|
||||
更新时间:2021-1-5
|
||||
东东农场活动链接:https://h5.m.jd.com/babelDiy/Zeus/3KSjXqQabiTuD1cJ28QskrpWoBKT/index.html
|
||||
已支持IOS双京东账号,Node.js支持N个京东账号
|
||||
脚本兼容: QuantumultX, Surge, Loon, JSBox, Node.js
|
||||
@@ -29,9 +29,9 @@ let cookiesArr = [], cookie = '', jdFruitShareArr = [], isBox = false, notify, n
|
||||
//下面给出两个账号的填写示例(iOS只支持2个京东账号)
|
||||
let shareCodes = [ // 这个列表填入你要助力的好友的shareCode
|
||||
//账号一的好友shareCode,不同好友的shareCode中间用@符号隔开
|
||||
'0a74407df5df4fa99672a037eec61f7e@dbb21614667246fabcfd9685b6f448f3@6fbd26cc27ac44d6a7fed34092453f77@61ff5c624949454aa88561f2cd721bf6@56db8e7bc5874668ba7d5195230d067a',
|
||||
'0a74407df5df4fa99672a037eec61f7e@dbb21614667246fabcfd9685b6f448f3@6fbd26cc27ac44d6a7fed34092453f77@61ff5c624949454aa88561f2cd721bf6@56db8e7bc5874668ba7d5195230d067a@',
|
||||
//账号二的好友shareCode,不同好友的shareCode中间用@符号隔开
|
||||
'b1638a774d054a05a30a17d3b4d364b8@f92cb56c6a1349f5a35f0372aa041ea0@9c52670d52ad4e1a812f894563c746ea@8175509d82504e96828afc8b1bbb9cb3',
|
||||
'b1638a774d054a05a30a17d3b4d364b8@f92cb56c6a1349f5a35f0372aa041ea0@9c52670d52ad4e1a812f894563c746ea@8175509d82504e96828afc8b1bbb9cb3@2673c3777d4443829b2a635059953a28',
|
||||
]
|
||||
let message = '', subTitle = '', option = {}, isFruitFinished = false;
|
||||
const retainWater = 100;//保留水滴大于多少g,默认100g;
|
||||
@@ -279,7 +279,7 @@ async function doTenWater() {
|
||||
}
|
||||
if (isFruitFinished) {
|
||||
option['open-url'] = urlSchema;
|
||||
$.msg($.name, `【提醒⏰】${$.farmInfo.farmUserPro.name}已可领取`, '请去京东APP或微信小程序查看\n点击弹窗即达', option);
|
||||
$.msg($.name, ``, `【京东账号${$.index}】${$.nickName || $.UserName}\n【提醒⏰】${$.farmInfo.farmUserPro.name}已可领取\n请去京东APP或微信小程序查看\n点击弹窗即达`, option);
|
||||
$.done();
|
||||
if ($.isNode()) {
|
||||
await notify.sendNotify(`${$.name} - 账号${$.index} - ${$.nickName || $.UserName}水果已可领取`, `京东账号${$.index} ${$.nickName}\n${$.farmInfo.farmUserPro.name}已可领取`);
|
||||
@@ -403,7 +403,7 @@ async function doTenWaterAgain() {
|
||||
}
|
||||
if (isFruitFinished) {
|
||||
option['open-url'] = urlSchema;
|
||||
$.msg($.name, `【提醒⏰】${$.farmInfo.farmUserPro.name}已可领取`, '请去京东APP或微信小程序查看\n点击弹窗即达', option);
|
||||
$.msg($.name, ``, `【京东账号${$.index}】${$.nickName || $.UserName}\n【提醒⏰】${$.farmInfo.farmUserPro.name}已可领取\n请去京东APP或微信小程序查看\n点击弹窗即达`, option);
|
||||
$.done();
|
||||
if ($.isNode()) {
|
||||
await notify.sendNotify(`${$.name} - 账号${$.index} - ${$.nickName}水果已可领取`, `京东账号${$.index} ${$.nickName}\n${$.farmInfo.farmUserPro.name}已可领取`);
|
||||
@@ -431,7 +431,7 @@ async function doTenWaterAgain() {
|
||||
}
|
||||
if (isFruitFinished) {
|
||||
option['open-url'] = urlSchema;
|
||||
$.msg($.name, `【提醒⏰】${$.farmInfo.farmUserPro.name}已可领取`, '请去京东APP或微信小程序查看\n点击弹窗即达', option);
|
||||
$.msg($.name, ``, `【京东账号${$.index}】${$.nickName || $.UserName}\n【提醒⏰】${$.farmInfo.farmUserPro.name}已可领取\n请去京东APP或微信小程序查看\n点击弹窗即达`, option);
|
||||
$.done();
|
||||
if ($.isNode()) {
|
||||
await notify.sendNotify(`${$.name} - 账号${$.index} - ${$.nickName}水果已可领取`, `京东账号${$.index} ${$.nickName}\n${$.farmInfo.farmUserPro.name}已可领取`);
|
||||
@@ -771,24 +771,31 @@ async function clockInIn() {
|
||||
//
|
||||
async function getAwardInviteFriend() {
|
||||
await friendListInitForFarm();//查询好友列表
|
||||
console.log(`\n今日已邀请好友${$.friendList.inviteFriendCount}个 / 每日邀请上限${$.friendList.inviteFriendMax}个`);
|
||||
console.log(`开始删除${$.friendList.friends.length}个好友,可拿每天的邀请奖励`);
|
||||
for (let friend of $.friendList.friends) {
|
||||
console.log(`\n开始删除好友 [${friend.shareCode}]`);
|
||||
const deleteFriendForFarm = await request('deleteFriendForFarm', { "shareCode": `${friend.shareCode}`,"version":8,"channel":1 });
|
||||
if (deleteFriendForFarm && deleteFriendForFarm.code === '0') {
|
||||
console.log(`删除好友 [${friend.shareCode}] 成功\n`);
|
||||
console.log(`查询好友列表数据:${JSON.stringify($.friendList)}\n`)
|
||||
if ($.friendList) {
|
||||
console.log(`\n今日已邀请好友${$.friendList.inviteFriendCount}个 / 每日邀请上限${$.friendList.inviteFriendMax}个`);
|
||||
console.log(`开始删除${$.friendList.friends && $.friendList.friends.length}个好友,可拿每天的邀请奖励`);
|
||||
if ($.friendList.friends && $.friendList.friends.length > 0) {
|
||||
for (let friend of $.friendList.friends) {
|
||||
console.log(`\n开始删除好友 [${friend.shareCode}]`);
|
||||
const deleteFriendForFarm = await request('deleteFriendForFarm', { "shareCode": `${friend.shareCode}`,"version":8,"channel":1 });
|
||||
if (deleteFriendForFarm && deleteFriendForFarm.code === '0') {
|
||||
console.log(`删除好友 [${friend.shareCode}] 成功\n`);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
await receiveFriendInvite();//为他人助力,接受邀请成为别人的好友
|
||||
if ($.friendList.inviteFriendCount > 0) {
|
||||
if ($.friendList.inviteFriendCount > $.friendList.inviteFriendGotAwardCount) {
|
||||
console.log('开始领取邀请好友的奖励');
|
||||
await awardInviteFriendForFarm();
|
||||
console.log(`领取邀请好友的奖励结果::${JSON.stringify($.awardInviteFriendRes)}`);
|
||||
await receiveFriendInvite();//为他人助力,接受邀请成为别人的好友
|
||||
if ($.friendList.inviteFriendCount > 0) {
|
||||
if ($.friendList.inviteFriendCount > $.friendList.inviteFriendGotAwardCount) {
|
||||
console.log('开始领取邀请好友的奖励');
|
||||
await awardInviteFriendForFarm();
|
||||
console.log(`领取邀请好友的奖励结果::${JSON.stringify($.awardInviteFriendRes)}`);
|
||||
}
|
||||
} else {
|
||||
console.log('今日未邀请过好友')
|
||||
}
|
||||
} else {
|
||||
console.log('今日未邀请过好友')
|
||||
console.log(`查询好友列表失败\n`);
|
||||
}
|
||||
}
|
||||
//给好友浇水
|
||||
@@ -1239,7 +1246,7 @@ function readShareCode() {
|
||||
console.log(`${$.name} API请求失败,请检查网路重试`)
|
||||
} else {
|
||||
if (data) {
|
||||
console.log(`随机取个${randomCount}码放到您固定的互助码后面`)
|
||||
console.log(`随机取个${randomCount}码放到您固定的互助码后面(不影响已有固定互助)`)
|
||||
data = JSON.parse(data);
|
||||
}
|
||||
}
|
||||
|
||||
699
jd_get_share_code.js
Normal file
699
jd_get_share_code.js
Normal file
File diff suppressed because one or more lines are too long
@@ -265,7 +265,7 @@ function readShareCode() {
|
||||
console.log(`${$.name} API请求失败,请检查网路重试`)
|
||||
} else {
|
||||
if (data) {
|
||||
console.log(`随机取${randomCount}个码放到您固定的互助码后面`)
|
||||
console.log(`随机取${randomCount}个码放到您固定的互助码后面(不影响已有固定互助)`)
|
||||
data = JSON.parse(data);
|
||||
}
|
||||
}
|
||||
|
||||
219
jd_jdfactory.js
219
jd_jdfactory.js
@@ -2,7 +2,7 @@
|
||||
* @Author: lxk0301 https://github.com/lxk0301
|
||||
* @Date: 2020-12-06 18:19:21
|
||||
* @Last Modified by: lxk0301
|
||||
* @Last Modified time: 2020-12-06 22:58:02
|
||||
* @Last Modified time: 2020-12-26 22:58:02
|
||||
*/
|
||||
/*
|
||||
东东工厂,不是京喜工厂
|
||||
@@ -108,8 +108,8 @@ function showMsg() {
|
||||
} else {
|
||||
$.log(`京东账号${$.index}${$.nickName}\n${message}`);
|
||||
}
|
||||
if (new Date().getHours() === 23) {
|
||||
$.msg($.name, '', `京东账号${$.index}${$.nickName}\n${message}`);
|
||||
if (new Date().getHours() === 12) {
|
||||
$.msg($.name, '', `${message}`);
|
||||
}
|
||||
resolve()
|
||||
})
|
||||
@@ -181,6 +181,7 @@ async function algorithm() {
|
||||
}
|
||||
} else {
|
||||
console.log(`\n此账号${$.index}${$.nickName}暂未选择商品\n`);
|
||||
message += `京东账号${$.index} ${$.nickName}\n`;
|
||||
message += `已选商品:暂无\n`;
|
||||
message += `心仪商品:${wantProduct ? wantProduct : '暂无'}\n`;
|
||||
if (wantProduct) {
|
||||
@@ -216,17 +217,17 @@ async function algorithm() {
|
||||
} else {
|
||||
console.log(`BoxJs或环境变量暂未提供心仪商品\n如需兑换心仪商品,请提供心仪商品名称\n`);
|
||||
await jdfactory_getProductList(true);
|
||||
message += `当前剩余最多商品:${$.canMakeList[0].name}\n`;
|
||||
message += `兑换所需电量:${$.canMakeList[0].fullScore}\n`;
|
||||
message += `当前剩余最多商品:${$.canMakeList[0] && $.canMakeList[0].name}\n`;
|
||||
message += `兑换所需电量:${$.canMakeList[0] && $.canMakeList[0].fullScore}\n`;
|
||||
message += `您当前总电量:${$.batteryValue * 1}\n`;
|
||||
if ($.canMakeList[0].couponCount > 0 && $.batteryValue * 1 >= $.canMakeList[0].fullScore) {
|
||||
if ($.canMakeList[0] && $.canMakeList[0].couponCount > 0 && $.batteryValue * 1 >= $.canMakeList[0] && $.canMakeList[0].fullScore) {
|
||||
let nowTimes = new Date(new Date().getTime() + new Date().getTimezoneOffset()*60*1000 + 8*60*60*1000);
|
||||
if (new Date(nowTimes).getHours() === 12) {
|
||||
$.msg($.name, '', `京东账号${$.index}${$.nickName}\n${message}【满足】兑换${$.canMakeList[0].name}所需总电量:${$.canMakeList[0].fullScore}\n请点击弹窗直达活动页面\n选择此心仪商品并手动投入电量兑换`, {'open-url': 'openjd://virtual?params=%7B%20%22category%22:%20%22jump%22,%20%22des%22:%20%22m%22,%20%22url%22:%20%22https://h5.m.jd.com/babelDiy/Zeus/2uSsV2wHEkySvompfjB43nuKkcHp/index.html%22%20%7D'});
|
||||
if ($.isNode()) await notify.sendNotify(`${$.name} - 账号${$.index} - ${$.nickName}`, `【京东账号${$.index}】${$.nickName}\n${message}【满足】兑换${$.canMakeList[0].name}所需总电量:${$.canMakeList[0].fullScore}\n请速去活动页面查看`);
|
||||
$.msg($.name, '', `京东账号${$.index}${$.nickName}\n${message}【满足】兑换${$.canMakeList[0] && $.canMakeList[0] && [0].name}所需总电量:${$.canMakeList[0] && $.canMakeList[0].fullScore}\n请点击弹窗直达活动页面\n选择此心仪商品并手动投入电量兑换`, {'open-url': 'openjd://virtual?params=%7B%20%22category%22:%20%22jump%22,%20%22des%22:%20%22m%22,%20%22url%22:%20%22https://h5.m.jd.com/babelDiy/Zeus/2uSsV2wHEkySvompfjB43nuKkcHp/index.html%22%20%7D'});
|
||||
if ($.isNode()) await notify.sendNotify(`${$.name} - 账号${$.index} - ${$.nickName}`, `【京东账号${$.index}】${$.nickName}\n${message}【满足】兑换${$.canMakeList[0] && $.canMakeList[0].name}所需总电量:${$.canMakeList[0].fullScore}\n请速去活动页面查看`);
|
||||
}
|
||||
} else {
|
||||
console.log(`\n目前电量${$.batteryValue * 1},不满足兑换 ${$.canMakeList[0].name}所需的 ${$.canMakeList[0].fullScore}电量\n`)
|
||||
console.log(`\n目前电量${$.batteryValue * 1},不满足兑换 ${$.canMakeList[0] && $.canMakeList[0].name}所需的 ${$.canMakeList[0] && $.canMakeList[0].fullScore}电量\n`)
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -254,98 +255,100 @@ async function helpFriends() {
|
||||
}
|
||||
}
|
||||
async function doTask() {
|
||||
for (let item of $.taskVos) {
|
||||
if (item.taskType === 1) {
|
||||
//关注店铺任务
|
||||
if (item.status === 1) {
|
||||
console.log(`准备做此任务:${item.taskName}`);
|
||||
for (let task of item.followShopVo) {
|
||||
if (task.status === 1) {
|
||||
await jdfactory_collectScore(task.taskToken);
|
||||
}
|
||||
}
|
||||
} else {
|
||||
console.log(`${item.taskName}已做完`)
|
||||
}
|
||||
}
|
||||
if (item.taskType === 2) {
|
||||
//看看商品任务
|
||||
if (item.status === 1) {
|
||||
console.log(`准备做此任务:${item.taskName}`);
|
||||
for (let task of item.productInfoVos) {
|
||||
if (task.status === 1) {
|
||||
await jdfactory_collectScore(task.taskToken);
|
||||
}
|
||||
}
|
||||
} else {
|
||||
console.log(`${item.taskName}已做完`)
|
||||
}
|
||||
}
|
||||
if (item.taskType === 3) {
|
||||
//逛会场任务
|
||||
if (item.status === 1) {
|
||||
console.log(`准备做此任务:${item.taskName}`);
|
||||
for (let task of item.shoppingActivityVos) {
|
||||
if (task.status === 1) {
|
||||
await jdfactory_collectScore(task.taskToken);
|
||||
}
|
||||
}
|
||||
} else {
|
||||
console.log(`${item.taskName}已做完`)
|
||||
}
|
||||
}
|
||||
if (item.taskType === 10) {
|
||||
if (item.status === 1) {
|
||||
if (item.threeMealInfoVos[0].status === 1) {
|
||||
//可以做此任务
|
||||
if ($.taskVos && $.taskVos.length > 0) {
|
||||
for (let item of $.taskVos) {
|
||||
if (item.taskType === 1) {
|
||||
//关注店铺任务
|
||||
if (item.status === 1) {
|
||||
console.log(`准备做此任务:${item.taskName}`);
|
||||
await jdfactory_collectScore(item.threeMealInfoVos[0].taskToken);
|
||||
} else if (item.threeMealInfoVos[0].status === 0) {
|
||||
console.log(`${item.taskName} 任务已错过时间`)
|
||||
for (let task of item.followShopVo) {
|
||||
if (task.status === 1) {
|
||||
await jdfactory_collectScore(task.taskToken);
|
||||
}
|
||||
}
|
||||
} else {
|
||||
console.log(`${item.taskName}已做完`)
|
||||
}
|
||||
} else if (item.status === 2){
|
||||
console.log(`${item.taskName}已完成`);
|
||||
}
|
||||
}
|
||||
if (item.taskType === 21) {
|
||||
//开通会员任务
|
||||
if (item.status === 1) {
|
||||
console.log(`此任务:${item.taskName},跳过`);
|
||||
// for (let task of item.brandMemberVos) {
|
||||
// if (task.status === 1) {
|
||||
// await jdfactory_collectScore(task.taskToken);
|
||||
// }
|
||||
// }
|
||||
} else {
|
||||
console.log(`${item.taskName}已做完`)
|
||||
if (item.taskType === 2) {
|
||||
//看看商品任务
|
||||
if (item.status === 1) {
|
||||
console.log(`准备做此任务:${item.taskName}`);
|
||||
for (let task of item.productInfoVos) {
|
||||
if (task.status === 1) {
|
||||
await jdfactory_collectScore(task.taskToken);
|
||||
}
|
||||
}
|
||||
} else {
|
||||
console.log(`${item.taskName}已做完`)
|
||||
}
|
||||
}
|
||||
}
|
||||
if (item.taskType === 13) {
|
||||
//每日打卡
|
||||
if (item.status === 1) {
|
||||
console.log(`准备做此任务:${item.taskName}`);
|
||||
await jdfactory_collectScore(item.simpleRecordInfoVo.taskToken);
|
||||
} else {
|
||||
console.log(`${item.taskName}已完成`);
|
||||
if (item.taskType === 3) {
|
||||
//逛会场任务
|
||||
if (item.status === 1) {
|
||||
console.log(`准备做此任务:${item.taskName}`);
|
||||
for (let task of item.shoppingActivityVos) {
|
||||
if (task.status === 1) {
|
||||
await jdfactory_collectScore(task.taskToken);
|
||||
}
|
||||
}
|
||||
} else {
|
||||
console.log(`${item.taskName}已做完`)
|
||||
}
|
||||
}
|
||||
}
|
||||
if (item.taskType === 14) {
|
||||
//好友助力
|
||||
if (item.status === 1) {
|
||||
console.log(`准备做此任务:${item.taskName}`);
|
||||
// await jdfactory_collectScore(item.simpleRecordInfoVo.taskToken);
|
||||
} else {
|
||||
console.log(`${item.taskName}已完成`);
|
||||
if (item.taskType === 10) {
|
||||
if (item.status === 1) {
|
||||
if (item.threeMealInfoVos[0].status === 1) {
|
||||
//可以做此任务
|
||||
console.log(`准备做此任务:${item.taskName}`);
|
||||
await jdfactory_collectScore(item.threeMealInfoVos[0].taskToken);
|
||||
} else if (item.threeMealInfoVos[0].status === 0) {
|
||||
console.log(`${item.taskName} 任务已错过时间`)
|
||||
}
|
||||
} else if (item.status === 2){
|
||||
console.log(`${item.taskName}已完成`);
|
||||
}
|
||||
}
|
||||
}
|
||||
if (item.taskType === 23) {
|
||||
//从数码电器首页进入
|
||||
if (item.status === 1) {
|
||||
console.log(`准备做此任务:${item.taskName}`);
|
||||
await queryVkComponent();
|
||||
await jdfactory_collectScore(item.simpleRecordInfoVo.taskToken);
|
||||
} else {
|
||||
console.log(`${item.taskName}已完成`);
|
||||
if (item.taskType === 21) {
|
||||
//开通会员任务
|
||||
if (item.status === 1) {
|
||||
console.log(`此任务:${item.taskName},跳过`);
|
||||
// for (let task of item.brandMemberVos) {
|
||||
// if (task.status === 1) {
|
||||
// await jdfactory_collectScore(task.taskToken);
|
||||
// }
|
||||
// }
|
||||
} else {
|
||||
console.log(`${item.taskName}已做完`)
|
||||
}
|
||||
}
|
||||
if (item.taskType === 13) {
|
||||
//每日打卡
|
||||
if (item.status === 1) {
|
||||
console.log(`准备做此任务:${item.taskName}`);
|
||||
await jdfactory_collectScore(item.simpleRecordInfoVo.taskToken);
|
||||
} else {
|
||||
console.log(`${item.taskName}已完成`);
|
||||
}
|
||||
}
|
||||
if (item.taskType === 14) {
|
||||
//好友助力
|
||||
if (item.status === 1) {
|
||||
console.log(`准备做此任务:${item.taskName}`);
|
||||
// await jdfactory_collectScore(item.simpleRecordInfoVo.taskToken);
|
||||
} else {
|
||||
console.log(`${item.taskName}已完成`);
|
||||
}
|
||||
}
|
||||
if (item.taskType === 23) {
|
||||
//从数码电器首页进入
|
||||
if (item.status === 1) {
|
||||
console.log(`准备做此任务:${item.taskName}`);
|
||||
await queryVkComponent();
|
||||
await jdfactory_collectScore(item.simpleRecordInfoVo.taskToken);
|
||||
} else {
|
||||
console.log(`${item.taskName}已完成`);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -353,7 +356,8 @@ async function doTask() {
|
||||
|
||||
//领取做完任务的奖励
|
||||
function jdfactory_collectScore(taskToken) {
|
||||
return new Promise(resolve => {
|
||||
return new Promise(async resolve => {
|
||||
await $.wait(1000);
|
||||
$.post(taskPostUrl("jdfactory_collectScore", { taskToken }, "jdfactory_collectScore"), async (err, resp, data) => {
|
||||
try {
|
||||
if (err) {
|
||||
@@ -532,17 +536,20 @@ function jdfactory_getProductList(flag = false) {
|
||||
if (safeGet(data)) {
|
||||
data = JSON.parse(data);
|
||||
if (data.data.bizCode === 0) {
|
||||
$.canMakeList = [];
|
||||
$.canMakeList = data.data.result.canMakeList;//当前可选商品列表 sellOut:1为已抢光,0为目前可选择
|
||||
$.canMakeList.sort(sortCouponCount);
|
||||
console.log(`商品名称 可选状态 剩余量`)
|
||||
for (let item of $.canMakeList) {
|
||||
console.log(`${item.name.slice(-4)} ${item.sellOut === 1 ? '已抢光':'可 选'} ${item.couponCount}`);
|
||||
}
|
||||
if (!flag) {
|
||||
if ($.canMakeList && $.canMakeList.length > 0) {
|
||||
$.canMakeList.sort(sortCouponCount);
|
||||
console.log(`商品名称 可选状态 剩余量`)
|
||||
for (let item of $.canMakeList) {
|
||||
if (item.name.indexOf(wantProduct) > -1 && item.couponCount > 0 && item.sellOut === 0) {
|
||||
await jdfactory_makeProduct(item.skuId);
|
||||
break
|
||||
console.log(`${item.name.slice(-4)} ${item.sellOut === 1 ? '已抢光':'可 选'} ${item.couponCount}`);
|
||||
}
|
||||
if (!flag) {
|
||||
for (let item of $.canMakeList) {
|
||||
if (item.name.indexOf(wantProduct) > -1 && item.couponCount > 0 && item.sellOut === 0) {
|
||||
await jdfactory_makeProduct(item.skuId);
|
||||
break
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -621,7 +628,7 @@ function readShareCode() {
|
||||
console.log(`${$.name} API请求失败,请检查网路重试`)
|
||||
} else {
|
||||
if (data) {
|
||||
console.log(`随机取${randomCount}个码放到您固定的互助码后面`)
|
||||
console.log(`随机取${randomCount}个码放到您固定的互助码后面(不影响已有固定互助)`)
|
||||
data = JSON.parse(data);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -343,7 +343,7 @@ function readShareCode() {
|
||||
console.log(`${$.name} API请求失败,请检查网路重试`)
|
||||
} else {
|
||||
if (data) {
|
||||
console.log(`随机取${randomCount}个码放到您固定的互助码后面`)
|
||||
console.log(`随机取${randomCount}个码放到您固定的互助码后面(不影响已有固定互助)`)
|
||||
data = JSON.parse(data);
|
||||
}
|
||||
}
|
||||
|
||||
13
jd_joy.js
13
jd_joy.js
@@ -164,16 +164,15 @@ async function joinTwoPeopleRun() {
|
||||
if (petRaceResult === 'unreceive') {
|
||||
console.log('今日参赛的比赛已经结束,现在领取奖励');
|
||||
await getWinCoin();
|
||||
let winCoin = 0, teamLimitCount = 2;
|
||||
let winCoin = 0;
|
||||
if ($.getWinCoinRes && $.getWinCoinRes.success) {
|
||||
winCoin = $.getWinCoinRes.data.winCoin;
|
||||
teamLimitCount = $.getWinCoinRes.data.teamLimitCount;
|
||||
}
|
||||
await receiveJoyRunAward();
|
||||
console.log(`领取赛跑奖励结果:${JSON.stringify($.receiveJoyRunAwardRes)}`)
|
||||
if ($.receiveJoyRunAwardRes.success) {
|
||||
$.msg($.name, '', `【京东账号${$.index}】${$.nickName}\n太棒了,${teamLimitCount}人赛跑取得获胜\n恭喜您已获得${winCoin}积分奖励`);
|
||||
if ($.isNode()) await notify.sendNotify(`${$.name} - 京东账号${$.index} - ${$.nickName}`, `京东账号${$.index}${$.nickName}\n${teamLimitCount}人赛跑取得获胜\n恭喜您已获得${winCoin}积分奖励`)
|
||||
$.msg($.name, '', `【京东账号${$.index}】${$.nickName}\n太棒了,${$.name}赛跑取得获胜\n恭喜您已获得${winCoin}积分奖励`);
|
||||
if ($.isNode()) await notify.sendNotify(`${$.name} - 京东账号${$.index} - ${$.nickName}`, `京东账号${$.index}${$.nickName}\n太棒了,${$.name}赛跑取得获胜\n恭喜您已获得${winCoin}积分奖励`)
|
||||
}
|
||||
}
|
||||
if (petRaceResult === 'participate') {
|
||||
@@ -476,16 +475,16 @@ function followShop(shopId) {
|
||||
}
|
||||
function enterRoom() {
|
||||
return new Promise(resolve => {
|
||||
const url = `${weAppUrl}/enterRoom?reqSource=weapp`;
|
||||
const url = `${weAppUrl}/enterRoom/h5?reqSource=weapp&invitePin=&openId=`;
|
||||
const host = `draw.jdfcloud.com`;
|
||||
const reqSource = 'weapp';
|
||||
$.get(taskUrl(url, host, reqSource), (err, resp, data) => {
|
||||
$.post({...taskUrl(url, host, reqSource),body:'{}'}, (err, resp, data) => {
|
||||
try {
|
||||
if (err) {
|
||||
console.log('\n京东宠汪汪: API查询请求失败 ‼️‼️')
|
||||
} else {
|
||||
// console.log('JSON.parse(data)', JSON.parse(data))
|
||||
|
||||
|
||||
$.roomData = JSON.parse(data);
|
||||
|
||||
console.log(`现有狗粮: ${$.roomData.data.petFood}\n`)
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
/*
|
||||
宠汪汪积分兑换奖品脚本, 目前脚本只兑换京豆,兑换京豆成功,才会发出通知提示,其他情况不通知。
|
||||
更新时间:2020-12-23
|
||||
更新时间:2021-1-6
|
||||
兑换规则:一个账号一天只能兑换一次京豆。
|
||||
兑换奖品成功后才会有系统弹窗通知
|
||||
每日京豆库存会在0:00、8:00、16:00更新,经测试发现中午12:00也会有补发京豆。
|
||||
@@ -60,6 +60,7 @@ const JD_API_HOST = 'https://jdjoy.jd.com';
|
||||
}
|
||||
continue
|
||||
}
|
||||
console.log(`本地时间与京东服务器时间差(毫秒):${await get_diff_time()}`);
|
||||
await joyReward();
|
||||
// $.msg($.name, '兑换脚本暂不能使用', `请停止使用,等待后期更新\n如果新版本兑换您有兑换机会,请抓包兑换\n再把抓包数据发送telegram用户@lxk0301`);
|
||||
}
|
||||
@@ -126,9 +127,9 @@ async function joyReward() {
|
||||
ctrTemp = `${jdNotify}` === 'false';
|
||||
}
|
||||
if (ctrTemp) {
|
||||
$.msg($.name, `兑换${giftValue}京豆成功`, `【京东账号${$.index}】${$.nickName}\n【宠物等级】${data.level}\n【积分详情】消耗积分 ${salePrice}, 剩余积分 ${data.coin - salePrice}`);
|
||||
$.msg($.name, ``, `【京东账号${$.index}】${$.nickName}\n【${giftValue}京豆】兑换成功\n【宠物等级】${data.level}\n【积分详情】消耗积分 ${salePrice}, 剩余积分 ${data.coin - salePrice}`);
|
||||
if ($.isNode()) {
|
||||
await notify.sendNotify(`${$.name} - 账号${$.index} - ${$.nickName}`, `【京东账号${$.index}】 ${$.nickName}\n【兑换${giftValue}京豆】成功\n【宠物等级】${data.level}\n【积分详情】消耗积分 ${salePrice}, 剩余积分 ${data.coin - salePrice}`);
|
||||
await notify.sendNotify(`${$.name} - 账号${$.index} - ${$.nickName}`, `【京东账号${$.index}】 ${$.nickName}\n【${giftValue}京豆】兑换成功\n【宠物等级】${data.level}\n【积分详情】消耗积分 ${salePrice}, 剩余积分 ${data.coin - salePrice}`);
|
||||
}
|
||||
}
|
||||
// if ($.isNode()) {
|
||||
@@ -273,6 +274,35 @@ function TotalBean() {
|
||||
})
|
||||
})
|
||||
}
|
||||
function getJDServerTime() {
|
||||
return new Promise(resolve => {
|
||||
// console.log(Date.now())
|
||||
$.get({url: "https://a.jd.com//ajax/queryServerData.html",headers:{
|
||||
"User-Agent": "Mozilla/5.0 (iPhone; CPU iPhone OS 13_2_3 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/13.0.3 Mobile/15E148 Safari/604.1 Edg/87.0.4280.88"
|
||||
}}, async (err, resp, data) => {
|
||||
try {
|
||||
if (err) {
|
||||
console.log(`${JSON.stringify(err)}`)
|
||||
console.log(`${$.name} 获取京东服务器时间失败,请检查网路重试`)
|
||||
} else {
|
||||
data = JSON.parse(data);
|
||||
$.jdTime = data['serverTime'];
|
||||
// console.log(data['serverTime']);
|
||||
// console.log(data['serverTime'] - Date.now())
|
||||
}
|
||||
} catch (e) {
|
||||
$.logErr(e, resp)
|
||||
} finally {
|
||||
resolve($.jdTime);
|
||||
}
|
||||
})
|
||||
})
|
||||
}
|
||||
async function get_diff_time() {
|
||||
// console.log(`本机时间戳 ${Date.now()}`)
|
||||
// console.log(`京东服务器时间戳 ${await getJDServerTime()}`)
|
||||
return Date.now() - await getJDServerTime();
|
||||
}
|
||||
function jsonParse(str) {
|
||||
if (typeof str == "string") {
|
||||
try {
|
||||
|
||||
File diff suppressed because one or more lines are too long
18
jd_pet.js
18
jd_pet.js
@@ -1,6 +1,6 @@
|
||||
/*
|
||||
东东萌宠 更新地址: https://raw.githubusercontent.com/lxk0301/jd_scripts/master/jd_pet.js
|
||||
更新时间:2020-11-30
|
||||
更新时间:2021-01-06
|
||||
已支持IOS双京东账号,Node.js支持N个京东账号
|
||||
脚本兼容: QuantumultX, Surge, Loon, JSBox, Node.js
|
||||
|
||||
@@ -90,7 +90,7 @@ async function jdPet() {
|
||||
}
|
||||
if (!$.petInfo.goodsInfo) {
|
||||
$.msg($.name, '', `【提示】京东账号${$.index}${$.nickName}\n暂未选购新的商品`, { "open-url": "openapp.jdmoble://" });
|
||||
await notify.sendNotify(`${$.name} - ${$.index} - ${$.nickName}`, `【提示】京东账号${$.index}${$.nickName}\n暂未选购新的商品`);
|
||||
if ($.isNode()) await notify.sendNotify(`${$.name} - ${$.index} - ${$.nickName}`, `【提示】京东账号${$.index}${$.nickName}\n暂未选购新的商品`);
|
||||
return
|
||||
}
|
||||
goodsUrl = $.petInfo.goodsInfo && $.petInfo.goodsInfo.goodsUrl;
|
||||
@@ -231,8 +231,10 @@ async function masterHelpInit() {
|
||||
if(!res.result.addedBonusFlag) {
|
||||
console.log("开始领取额外奖励");
|
||||
let getHelpAddedBonusResult = await request('getHelpAddedBonus');
|
||||
if (getHelpAddedBonusResult.resultCode === '0') {
|
||||
message += `【额外奖励${getHelpAddedBonusResult.result.reward}领取】${getHelpAddedBonusResult.message}\n`;
|
||||
}
|
||||
console.log(`领取30g额外奖励结果:【${getHelpAddedBonusResult.message}】`);
|
||||
message += `【额外奖励${getHelpAddedBonusResult.result.reward}领取】${getHelpAddedBonusResult.message}\n`;
|
||||
} else {
|
||||
console.log("已经领取过5好友助力额外奖励");
|
||||
message += `【额外奖励】已领取\n`;
|
||||
@@ -261,6 +263,8 @@ async function masterHelpInit() {
|
||||
* 运行脚本时你自己的shareCode会在控制台输出, 可以将其分享给他人
|
||||
*/
|
||||
async function slaveHelp() {
|
||||
$.log(`\n因1.6日好友助力功能下线。故暂时屏蔽\n`)
|
||||
return
|
||||
let helpPeoples = '';
|
||||
for (let code of newShareCodes) {
|
||||
console.log(`开始助力京东账号${$.index} - ${$.nickName}的好友: ${code}`);
|
||||
@@ -281,7 +285,7 @@ async function slaveHelp() {
|
||||
console.log(`助力其他情况:${JSON.stringify(response)}`);
|
||||
}
|
||||
} else {
|
||||
console.log(`助理好友结果: ${response.message}`);
|
||||
console.log(`助力好友结果: ${response.message}`);
|
||||
}
|
||||
}
|
||||
if (helpPeoples && helpPeoples.length > 0) {
|
||||
@@ -442,7 +446,7 @@ function readShareCode() {
|
||||
console.log(`${$.name} API请求失败,请检查网路重试`)
|
||||
} else {
|
||||
if (data) {
|
||||
console.log(`随机取个${randomCount}码放到您固定的互助码后面`)
|
||||
console.log(`随机取个${randomCount}码放到您固定的互助码后面(不影响已有固定互助)`)
|
||||
data = JSON.parse(data);
|
||||
}
|
||||
}
|
||||
@@ -467,7 +471,9 @@ function shareCodesFormat() {
|
||||
const tempIndex = $.index > shareCodes.length ? (shareCodes.length - 1) : ($.index - 1);
|
||||
newShareCodes = shareCodes[tempIndex].split('@');
|
||||
}
|
||||
const readShareCodeRes = await readShareCode();
|
||||
//因好友助力功能下线。故暂时屏蔽
|
||||
// const readShareCodeRes = await readShareCode();
|
||||
const readShareCodeRes = null;
|
||||
if (readShareCodeRes && readShareCodeRes.code === 200) {
|
||||
newShareCodes = [...new Set([...newShareCodes, ...(readShareCodeRes.data || [])])];
|
||||
}
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
/*
|
||||
种豆得豆 脚本更新地址:https://raw.githubusercontent.com/lxk0301/jd_scripts/master/jd_plantBean.js
|
||||
更新时间:2020-11-04
|
||||
更新时间:2020-12-31
|
||||
已支持IOS京东双账号,云端N个京东账号
|
||||
脚本兼容: QuantumultX, Surge, Loon, JSBox, Node.js
|
||||
注:会自动关注任务中的店铺跟商品,介意者勿使用。
|
||||
@@ -161,14 +161,27 @@ async function stealFriendWater() {
|
||||
return
|
||||
}
|
||||
if ($.stealFriendList.data && $.stealFriendList.data.friendInfoList && $.stealFriendList.data.friendInfoList.length > 0) {
|
||||
let nowTimes = new Date(new Date().getTime() + new Date().getTimezoneOffset()*60*1000 + 8*60*60*1000);
|
||||
for (let item of $.stealFriendList.data.friendInfoList) {
|
||||
if (item.nutrCount >= 3) {
|
||||
// console.log(`可以偷的好友的信息::${JSON.stringify(item)}`);
|
||||
console.log(`可以偷的好友的信息paradiseUuid::${JSON.stringify(item.paradiseUuid)}`);
|
||||
await collectUserNutr(item.paradiseUuid);
|
||||
console.log(`偷取好友营养液情况:${JSON.stringify($.stealFriendRes)}`)
|
||||
if ($.stealFriendRes.code === '0') {
|
||||
console.log(`偷取好友营养液成功`)
|
||||
if (new Date(nowTimes).getHours() === 20) {
|
||||
if (item.nutrCount >= 2) {
|
||||
// console.log(`可以偷的好友的信息::${JSON.stringify(item)}`);
|
||||
console.log(`可以偷的好友的信息paradiseUuid::${JSON.stringify(item.paradiseUuid)}`);
|
||||
await collectUserNutr(item.paradiseUuid);
|
||||
console.log(`偷取好友营养液情况:${JSON.stringify($.stealFriendRes)}`)
|
||||
if ($.stealFriendRes.code === '0') {
|
||||
console.log(`偷取好友营养液成功`)
|
||||
}
|
||||
}
|
||||
} else {
|
||||
if (item.nutrCount >= 3) {
|
||||
// console.log(`可以偷的好友的信息::${JSON.stringify(item)}`);
|
||||
console.log(`可以偷的好友的信息paradiseUuid::${JSON.stringify(item.paradiseUuid)}`);
|
||||
await collectUserNutr(item.paradiseUuid);
|
||||
console.log(`偷取好友营养液情况:${JSON.stringify($.stealFriendRes)}`)
|
||||
if ($.stealFriendRes.code === '0') {
|
||||
console.log(`偷取好友营养液成功`)
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -508,7 +521,7 @@ function readShareCode() {
|
||||
console.log(`${$.name} API请求失败,请检查网路重试`)
|
||||
} else {
|
||||
if (data) {
|
||||
console.log(`随机取个${randomCount}码放到您固定的互助码后面`)
|
||||
console.log(`随机取个${randomCount}码放到您固定的互助码后面(不影响已有固定互助)`)
|
||||
data = JSON.parse(data);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
* @Author: lxk0301 https://github.com/lxk0301
|
||||
* @Date: 2020-11-12 11:42:12
|
||||
* @Last Modified by: lxk0301
|
||||
* @Last Modified time: 2020-12-23 14:27:20
|
||||
* @Last Modified time: 2021-1-4 14:27:20
|
||||
*/
|
||||
/*
|
||||
东东小窝 https://raw.githubusercontent.com/lxk0301/jd_scripts/master/jd_small_home.js
|
||||
@@ -274,25 +274,27 @@ function queryFurnituresCenterList() {
|
||||
if (safeGet(data)) {
|
||||
data = JSON.parse(data);
|
||||
if (data.head.code === 200) {
|
||||
let { buy, list } = data.body;
|
||||
$.canBuyList = [];
|
||||
list.map((item, index) => {
|
||||
if (buy.some((buyItem) => buyItem === item.id)) return
|
||||
$.canBuyList.push(item);
|
||||
})
|
||||
$.canBuyList.sort(sortByjdBeanNum);
|
||||
if ($.canBuyList[0].needWoB <= $.woB) {
|
||||
await furnituresCenterPurchase($.canBuyList[0].id, $.canBuyList[0].jdBeanNum);
|
||||
} else {
|
||||
console.log(`\n兑换${$.canBuyList[0].jdBeanNum}京豆失败:当前wo币${$.woB}不够兑换所需的${$.canBuyList[0].needWoB}WO币`)
|
||||
message += `【装饰领京豆】兑换${$.canBuyList[0].jdBeanNum}京豆失败,原因:WO币不够\n`;
|
||||
if (data.body) {
|
||||
let { buy, list } = data.body;
|
||||
$.canBuyList = [];
|
||||
list.map((item, index) => {
|
||||
if (buy.some((buyItem) => buyItem === item.id)) return
|
||||
$.canBuyList.push(item);
|
||||
})
|
||||
$.canBuyList.sort(sortByjdBeanNum);
|
||||
if ($.canBuyList[0].needWoB <= $.woB) {
|
||||
await furnituresCenterPurchase($.canBuyList[0].id, $.canBuyList[0].jdBeanNum);
|
||||
} else {
|
||||
console.log(`\n兑换${$.canBuyList[0].jdBeanNum}京豆失败:当前wo币${$.woB}不够兑换所需的${$.canBuyList[0].needWoB}WO币`)
|
||||
message += `【装饰领京豆】兑换${$.canBuyList[0].jdBeanNum}京豆失败,原因:WO币不够\n`;
|
||||
}
|
||||
// for (let canBuyItem of $.canBuyList) {
|
||||
// if (canBuyItem.needWoB <= $.woB) {
|
||||
// await furnituresCenterPurchase(canBuyItem.id, canBuyItem.jdBeanNum);
|
||||
// break
|
||||
// }
|
||||
// }
|
||||
}
|
||||
// for (let canBuyItem of $.canBuyList) {
|
||||
// if (canBuyItem.needWoB <= $.woB) {
|
||||
// await furnituresCenterPurchase(canBuyItem.id, canBuyItem.jdBeanNum);
|
||||
// break
|
||||
// }
|
||||
// }
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
102
jd_speed.js
102
jd_speed.js
File diff suppressed because one or more lines are too long
@@ -2,7 +2,7 @@
|
||||
* @Author: lxk0301 https://github.com/lxk0301
|
||||
* @Date: 2020-08-16 18:54:16
|
||||
* @Last Modified by: lxk0301
|
||||
* @Last Modified time: 2020-11-24 08:22:37
|
||||
* @Last Modified time: 2021-1-17 18:22:37
|
||||
*/
|
||||
/*
|
||||
东东超市(活动入口:京东APP-》首页-》京东超市-》底部东东超市)
|
||||
@@ -153,11 +153,11 @@ async function doDailyTask() {
|
||||
const res = await smtgObtainShopTaskPrize(item.taskId);
|
||||
console.log(`\n领取做完任务的奖励${JSON.stringify(res)}\n`)
|
||||
}
|
||||
//做任务
|
||||
if ((item.type === 1 || item.type === 11) && item.taskStatus === 0) {
|
||||
// 分享任务
|
||||
const res = await smtgDoShopTask(item.taskId);
|
||||
console.log(`${item.subTitle}结果${JSON.stringify(res)}`)
|
||||
|
||||
}
|
||||
if (item.type === 2) {
|
||||
//逛会场
|
||||
@@ -177,6 +177,15 @@ async function doDailyTask() {
|
||||
console.log(`${item.subTitle}结果${JSON.stringify(res)}`);
|
||||
}
|
||||
}
|
||||
if (item.type === 9) {
|
||||
//开卡领蓝币任务
|
||||
if (item.taskStatus === 0) {
|
||||
console.log('开始开卡领蓝币任务')
|
||||
const itemId = item.content[item.type].itemId;
|
||||
const res = await smtgDoShopTask(item.taskId, itemId);
|
||||
console.log(`${item.subTitle}结果${JSON.stringify(res)}`);
|
||||
}
|
||||
}
|
||||
if (item.type === 10) {
|
||||
//关注店铺
|
||||
if (item.taskStatus === 0) {
|
||||
@@ -253,7 +262,7 @@ function receiveBlueCoin(timeout = 0) {
|
||||
//每日签到
|
||||
function smtgSign() {
|
||||
return new Promise((resolve) => {
|
||||
$.get(taskUrl('smtg_sign'), async (err, resp, data) => {
|
||||
$.get(taskUrl('smtg_sign', {"shareId":"QcSH6BqSXysv48bMoRfTBz7VBqc5P6GodDUBAt54d8598XAUtNoGd4xWVuNtVVwNO1dSKcoaY3sX_13Z-b3BoSW1W7NnqD36nZiNuwrtyO-gXbjIlsOBFpgIPMhpiVYKVAaNiHmr2XOJptu14d8uW-UWJtefjG9fUGv0Io7NwAQ","channel":"4"}), async (err, resp, data) => {
|
||||
try {
|
||||
// console.log('ddd----ddd', data)
|
||||
if (err) {
|
||||
@@ -751,7 +760,8 @@ function updatePkActivityIdCDN(url = 'https://raw.fastgit.org/lxk0301/updateTeam
|
||||
function smtgDoShopTask(taskId, itemId) {
|
||||
return new Promise((resolve) => {
|
||||
const body = {
|
||||
"taskId": taskId
|
||||
"taskId": taskId,
|
||||
"channel": "18"
|
||||
}
|
||||
if (itemId) {
|
||||
body.itemId = itemId;
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
* @Author: lxk0301 https://github.com/lxk0301
|
||||
* @Date: 2020-11-27 09:19:21
|
||||
* @Last Modified by: lxk0301
|
||||
* @Last Modified time: 2020-11-27 09:58:02
|
||||
* @Last Modified time: 2021-1-1 16:58:02
|
||||
*/
|
||||
/*
|
||||
十元街脚本,一周签到下来可获得30京豆,一天任意时刻运行一次即可
|
||||
@@ -93,7 +93,7 @@ function showMsg() {
|
||||
let signFlag = 0;
|
||||
function userSignIn() {
|
||||
return new Promise(resolve => {
|
||||
const body = {"activityId":"8d6845fe2e77425c82d5078d314d33c5","inviterId":"VMIQlLQqjQyjZokQmv5bIDgq011L0Ov8","channel":"MiniProgram"};
|
||||
const body = {"activityId":"ccd8067defcd4787871b7f0c96fcbf5c","inviterId":"","channel":"MiniProgram"};
|
||||
$.get(taskUrl('userSignIn', body), async (err, resp, data) => {
|
||||
try {
|
||||
if (err) {
|
||||
@@ -122,6 +122,10 @@ function userSignIn() {
|
||||
signFlag ++;
|
||||
await userSignIn();
|
||||
}
|
||||
} else if (data.code === 66) {
|
||||
//此处有时会遇到 服务器繁忙 导致签到失败,故重复三次签到
|
||||
$.log(`${$.name}签到失败:${data.msg}`);
|
||||
message += `【签到】失败,${data.msg}`;
|
||||
} else {
|
||||
console.log(`异常:${JSON.stringify(data)}`)
|
||||
}
|
||||
|
||||
35
jd_unbind.js
35
jd_unbind.js
@@ -36,9 +36,9 @@ if ($.isNode()) {
|
||||
cookiesArr.reverse();
|
||||
cookiesArr = cookiesArr.filter(item => item !== "" && item !== null && item !== undefined);
|
||||
}
|
||||
const jdNotify = $.getdata('jdUnsubscribeNotify');//是否关闭通知,false打开通知推送,true关闭通知推送
|
||||
let cardPageSize = $.getdata('jdUnsubscribePageSize') || 200;// 运行一次取消多少个会员卡。数字0表示不注销任何会员卡
|
||||
let stopCards = $.getdata('jdUnsubscribeStopCards') || ['京东PLUS会员'];//遇到此会员卡不再进行注销
|
||||
const jdNotify = $.getdata('jdUnbindCardNotify');//是否关闭通知,false打开通知推送,true关闭通知推送
|
||||
let cardPageSize = 200;// 运行一次取消多少个会员卡。数字0表示不注销任何会员卡
|
||||
let stopCards = `京东PLUS会员`;//遇到此会员卡跳过注销,多个使用&分开
|
||||
const JD_API_HOST = 'https://api.m.jd.com/';
|
||||
!(async () => {
|
||||
if (!cookiesArr[0]) {
|
||||
@@ -220,24 +220,23 @@ function TotalBean() {
|
||||
}
|
||||
function requireConfig() {
|
||||
return new Promise(resolve => {
|
||||
if ($.isNode() && process.env.UN_BIND_CARD_NUM) {
|
||||
$.UN_BIND_NUM = process.env.UN_BIND_CARD_NUM
|
||||
}
|
||||
if ($.isNode() && process.env.UN_BIND_STOP_CARD) {
|
||||
if (process.env.UN_BIND_STOP_CARD.indexOf('&') > -1) {
|
||||
$.UN_BIND_STOP_CARD = process.env.UN_BIND_STOP_CARD.split('&');
|
||||
} else if (process.env.UN_BIND_STOP_CARD.indexOf('@') > -1) {
|
||||
$.UN_BIND_STOP_CARD = process.env.UN_BIND_STOP_CARD.split('@');
|
||||
} else if (process.env.UN_BIND_STOP_CARD.indexOf('\n') > -1) {
|
||||
$.UN_BIND_STOP_CARD = process.env.UN_BIND_STOP_CARD.split('\n');
|
||||
} else if (process.env.UN_BIND_STOP_CARD.indexOf('\\n') > -1) {
|
||||
$.UN_BIND_STOP_CARD = process.env.UN_BIND_STOP_CARD.split('\\n');
|
||||
$.UN_BIND_NUM = $.isNode() ? (process.env.UN_BIND_CARD_NUM ? process.env.UN_BIND_CARD_NUM : cardPageSize) : ($.getdata('UN_BIND_CARD_NUM') ? $.getdata('UN_BIND_CARD_NUM') : cardPageSize);
|
||||
$.UN_BIND_STOP_CARD = $.isNode() ? (process.env.UN_BIND_STOP_CARD ? process.env.UN_BIND_STOP_CARD : stopCards) : ($.getdata('UN_BIND_STOP_CARD') ? $.getdata('UN_BIND_STOP_CARD') : stopCards);
|
||||
if ($.UN_BIND_STOP_CARD) {
|
||||
if ($.UN_BIND_STOP_CARD.indexOf('&') > -1) {
|
||||
$.UN_BIND_STOP_CARD = $.UN_BIND_STOP_CARD.split('&');
|
||||
} else if ($.UN_BIND_STOP_CARD.indexOf('@') > -1) {
|
||||
$.UN_BIND_STOP_CARD = $.UN_BIND_STOP_CARD.split('@');
|
||||
} else if ($.UN_BIND_STOP_CARD.indexOf('\n') > -1) {
|
||||
$.UN_BIND_STOP_CARD = $.UN_BIND_STOP_CARD.split('\n');
|
||||
} else if ($.UN_BIND_STOP_CARD.indexOf('\\n') > -1) {
|
||||
$.UN_BIND_STOP_CARD = $.UN_BIND_STOP_CARD.split('\\n');
|
||||
} else {
|
||||
$.UN_BIND_STOP_CARD = process.env.UN_BIND_STOP_CARD.split();
|
||||
$.UN_BIND_STOP_CARD = $.UN_BIND_STOP_CARD.split();
|
||||
}
|
||||
}
|
||||
cardPageSize = $.UN_BIND_NUM || cardPageSize
|
||||
stopCards = $.UN_BIND_STOP_CARD || stopCards
|
||||
cardPageSize = $.UN_BIND_NUM;
|
||||
stopCards = $.UN_BIND_STOP_CARD;
|
||||
resolve()
|
||||
})
|
||||
}
|
||||
|
||||
@@ -664,6 +664,44 @@
|
||||
"https://raw.githubusercontent.com/Orz-3/task/master/jd.png"
|
||||
]
|
||||
},
|
||||
{
|
||||
"id": "jd_unbind",
|
||||
"name": "注销京东会员卡",
|
||||
"keys": [
|
||||
"UN_BIND_CARD_NUM",
|
||||
"UN_BIND_STOP_CARD"
|
||||
],
|
||||
"settings": [
|
||||
{
|
||||
"id": "jdUnbindCardNotify",
|
||||
"name": "静默运行",
|
||||
"val": false,
|
||||
"type": "boolean",
|
||||
"desc": "运行脚本时不发出系统弹窗通知"
|
||||
},
|
||||
{
|
||||
"id": "UN_BIND_CARD_NUM",
|
||||
"name": "注销京东店铺会员卡的数量",
|
||||
"val": 200,
|
||||
"type": "number",
|
||||
"desc": "运行一次脚本注销多少个店铺会员卡(默认200个,输入0表示不注销会员卡)"
|
||||
},
|
||||
{
|
||||
"id": "UN_BIND_STOP_CARD",
|
||||
"name": "注销京东店铺会员卡(白名单)",
|
||||
"val": "",
|
||||
"type": "text",
|
||||
"desc": "不想注销的店铺会员卡名称"
|
||||
}
|
||||
],
|
||||
"author": "@lxk0301",
|
||||
"repo": "https://github.com/lxk0301/jd_scripts",
|
||||
"script": "https://raw.githubusercontent.com/lxk0301/jd_scripts/master/jd_unsubscribe.js",
|
||||
"icons": [
|
||||
"https://raw.githubusercontent.com/58xinian/icon/master/jd_unbind_mini.png",
|
||||
"https://raw.githubusercontent.com/58xinian/icon/master/jd_unbind.png"
|
||||
]
|
||||
},
|
||||
{
|
||||
"id": "jd_SuperMarket",
|
||||
"name": "京小超",
|
||||
|
||||
125
sendNotify.js
125
sendNotify.js
File diff suppressed because one or more lines are too long
@@ -19,15 +19,15 @@ inputs:
|
||||
- timer: # 签到
|
||||
parameters:
|
||||
name: jd_bean_sign
|
||||
cronExpression: "0 0 0,7 * * * *"
|
||||
enable: true
|
||||
argument: jd_bean_sign
|
||||
- timer: # 京小超兑换奖品# 摇京豆
|
||||
parameters:
|
||||
name: jd_blueCoin_jd_club_lottery
|
||||
cronExpression: "0 0 0 * * * *"
|
||||
enable: true
|
||||
argument: jd_blueCoin&jd_club_lottery
|
||||
argument: jd_bean_sign
|
||||
- timer: #京小超兑换奖品 #摇京豆 #京东汽车 #京东汽车兑换
|
||||
parameters:
|
||||
name: jd_blueCoin_jd_club_lottery_car_car_exchange
|
||||
cronExpression: "0 0 0 * * * *"
|
||||
enable: true
|
||||
argument: jd_blueCoin&jd_club_lottery&jd_car&jd_car_exchange
|
||||
- timer: # 东东农场# 东东萌宠
|
||||
parameters:
|
||||
name: jd_fruit_jd_pet
|
||||
@@ -46,12 +46,12 @@ inputs:
|
||||
cronExpression: "0 0 0-16/8,20 * * * *"
|
||||
enable: true
|
||||
argument: jd_joy_reward&jd_joy_steal&jd_necklace&jd_live
|
||||
- timer: #京东全民开红包 #进店领豆 #取关京东店铺商品 #注销京东会员卡 #京东抽奖机 #东东小窝 #秒杀红包雨 #健康抽奖机
|
||||
- timer: #京东全民开红包 #进店领豆 #取关京东店铺商品 #注销京东会员卡 #京东抽奖机 #东东小窝 #健康抽奖机
|
||||
parameters:
|
||||
name: redPacket_shop_unsubscribe_unbind_lotteryMachine_small_home_ms_redrain_health
|
||||
name: redPacket_shop_unsubscribe_unbind_lotteryMachine_small_home_health
|
||||
cronExpression: "0 10 0 * * * *"
|
||||
enable: true
|
||||
argument: jd_redPacket&jd_shop&jd_unsubscribe&jd_unbind&jd_lotteryMachine&jd_small_home&jd_ms_redrain&jd_health
|
||||
argument: jd_redPacket&jd_shop&jd_unsubscribe&jd_unbind&jd_lotteryMachine&jd_small_home&jd_health
|
||||
- timer: # 京东天天加速# 天天提鹅
|
||||
parameters:
|
||||
name: jd_speed_jd_daily_egg
|
||||
@@ -64,18 +64,18 @@ inputs:
|
||||
cronExpression: "0 15 * * * * *"
|
||||
enable: true
|
||||
argument: jd_superMarket
|
||||
- timer: #京豆变动通知 #疯狂的joy #京东排行榜 #领京豆额外奖励 #京东汽车 #京东健康APP
|
||||
- timer: #京豆变动通知 #疯狂的joy #京东排行榜 #领京豆额外奖励
|
||||
parameters:
|
||||
name: bean_change_crazy_joy_rankingList_bean_home_car_jdh
|
||||
name: bean_change_crazy_joy_rankingList_bean_home
|
||||
cronExpression: "0 30 7 * * * *"
|
||||
enable: true
|
||||
argument: jd_bean_change&jd_crazy_joy&jd_rankingList&jd_bean_home&jd_car&jd_jdh
|
||||
- timer: #金融养猪 #十元街 #京东快递 #发现-看一看 #京东赚赚 #金融打卡领年终奖
|
||||
argument: jd_bean_change&jd_crazy_joy&jd_rankingList&jd_bean_home&jd_car
|
||||
- timer: #金融养猪 #十元街 #京东快递 #京东赚赚
|
||||
parameters:
|
||||
name: pigPet_syj_kd_watch_jdzz_jr_sign
|
||||
name: pigPet_syj_kd_jdzz
|
||||
cronExpression: "0 3 1 * * * *"
|
||||
enable: true
|
||||
argument: jd_pigPet&jd_syj&jd_kd&jd_watch&jd_jdzz&jr_sign
|
||||
argument: jd_pigPet&jd_syj&jd_kd&jd_jdzz
|
||||
environment: # 环境变量
|
||||
variables: # 环境变量对象
|
||||
AAA: BBB # 不要删除,用来格式化对齐追加的变量的
|
||||
|
||||
Reference in New Issue
Block a user