Skip to content

Commit c6f9119

Browse files
author
和尚
committed
Merge branch 'dust' of https://github.com/monk-coder/dust into dust
2 parents 6349e44 + bf7e31d commit c6f9119

3 files changed

Lines changed: 33 additions & 6 deletions

File tree

i-chenzhe/remote_crontab_list.sh

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,12 @@
1+
# 长期活动
12
# 百变大咖秀
23
10 10,11 * * 2-5 node /scripts/z_entertainment.js >> /scripts/logs/z_entertainment.log 2>&1
3-
44
# 粉丝互动
55
3 10 * * * node /scripts/z_fanslove.js >> /scripts/logs/z_fanslove.log 2>&1
6-
76
# 超级摇一摇
87
3 20 * * * node /scripts/z_shake.js >> /scripts/logs/z_shake.log 2>&1
9-
108
# 京东超市-大转盘
119
10 10 * * * node /scripts/z_marketLottery.js >> /scripts/logs/z_marketLottery.log 2>&1
12-
13-
# 母婴-跳一跳
14-
5 8,14,20 25-31 3 * node /scripts/z_mother_jump.js >> /scripts/logs/z_mother_jump.log 2>&1
10+
# 短期活动
11+
# 手机狂欢城
12+
0 0 1-20 4 * node /scripts/z_carnivalcity.js >> /scripts/logs/z_carnivalcity.log 2>&1

remote_crontab_list.sh

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
# 会把商品加入购物车的脚本
2+
# 加购有礼
3+
15 12 * * * node /scripts/monk_shop_add_to_car.js >> /scripts/logs/monk_shop_add_to_car.log 2>&1
4+
# 会执行加入会员操作的脚本
5+
# 常规脚本
6+
# interCenter渠道店铺签到
7+
0 0 * * * node /scripts/monk_inter_shop_sign.js >> /scripts/logs/monk_inter_shop_sign.log 2>&1
8+
# 关注有礼
9+
15 15 * * * node /scripts/monk_shop_follow_sku.js >> /scripts/logs/monk_shop_follow_sku.log 2>&1
10+
# 店铺大转盘
11+
3 0,10,23 * * * node /scripts/monk_shop_lottery.js >> /scripts/logs/monk_shop_lottery.log 2>&1

shell_script_mod.sh

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
#!/bin/sh
2+
3+
## 克隆monk-coder仓库
4+
if [ ! -d "/monk/" ]; then
5+
echo "未检查到monk-coder仓库脚本,初始化下载相关脚本..."
6+
git clone https://github.com/monk-coder/dust /monk
7+
else
8+
echo "更新monk-coder脚本相关文件..."
9+
git -C /monk reset --hard
10+
git -C /monk pull origin main --rebase
11+
fi
12+
cp -f /monk/car/*_*.js /scripts
13+
cp -f /monk/i-chenzhe/*_*.js /scripts
14+
cp -f /monk/member/*_*.js /scripts
15+
cp -f /monk/normal/*_*.js /scripts
16+
17+
## 合并monk&i-chenzhe大师脚本进入crontab列表
18+
cat /monk/i-chenzhe/remote_crontab_list.sh /monk/remote_crontab_list.sh >> /scripts/docker/merged_list_file.sh

0 commit comments

Comments
 (0)