forked from ljqailym/jd_scripts
-
Notifications
You must be signed in to change notification settings - Fork 0
/
serverless.yml
81 lines (79 loc) · 3.8 KB
/
serverless.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
# serverless.yml
#组件信息
component: scf # (必选) 组件名称,在该实例中为scf
name: jdscript # (必选) 组件实例名称。
#组件参数配置
inputs:
name: scf-${name} # 云函数名称,默认为 ${name}-${stage}-${app}
enableRoleAuth: true # 默认会尝试创建 SCF_QcsRole 角色,如果不需要配置成 false 即可
src: ./
handler: index.main_handler #入口
runtime: Nodejs12.16 # 运行环境 默认 Nodejs10.15
region: ap-hongkong # 函数所在区域
description: This is a function in ${app} application.
memorySize: 128 # 内存大小,单位MB
timeout: 900 # 超时时间,单位秒
events: # 触发器
- timer: #签到
parameters:
name: beansign
cronExpression: "0 0 0 * * * *"
enable: true
argument: jd_bean_sign
- timer: #东东超市兑换奖品 #摇京豆 #京东汽车兑换
parameters:
name: blueCoin_clublottery_carexchange
cronExpression: "0 0 0 * * * *"
enable: true
argument: jd_blueCoin&jd_club_lottery&jd_car_exchange
- timer: #东东农场 #东东萌宠 #口袋书店 #京喜农场 #签到领现金
parameters:
name: fruit_pet_bookshop_jxnc
cronExpression: "0 5 6-18/6,8 * * * *"
enable: true
argument: jd_fruit&jd_pet&jd_bookshop&jd_jxnc&jd_cash
- timer: #宠汪汪喂食 #宠汪汪 #摇钱树 #京东种豆得豆 #京喜工厂 #东东工厂
parameters:
name: feedPets_joy_moneyTree_plantBean_dreamFactory_jdfactory
cronExpression: "0 3 */1 * * * *"
enable: true
argument: jd_joy_feedPets&jd_joy&jd_moneyTree&jd_plantBean&jd_dreamFactory&jd_jdfactory
- timer: #宠汪汪积分兑换京豆 #宠汪汪偷好友积分与狗粮 #点点券 #东东小窝 #京喜财富岛 #京东直播 #京东国际盲盒
parameters:
name: joyreward_joysteal_cash_necklace_smallhome_cfd_live_globalmh
cronExpression: "0 0 0-16/8,20 * * * *"
enable: true
argument: jd_joy_reward&jd_joy_steal&jd_necklace&jd_small_home&jd_cfd&jd_live&jd_global_mh
- timer: #进店领豆 #取关京东店铺商品 #京东抽奖机 #京东汽车 #京东秒秒币 #小鸽有礼2
parameters:
name: shop_unsubscribe_lotteryMachine_car_ms_xg
cronExpression: "0 10 0 * * * *"
enable: true
argument: jd_shop&jd_unsubscribe&jd_lotteryMachine&jd_car&jd_ms&jd_xgyl
- timer: #京东天天加速 #天天提鹅 #环球挑战赛
parameters:
name: speed_dailyegg_global
cronExpression: "0 8 */3 * * * *"
enable: true
argument: jd_speed&jd_daily_egg&jd_global
- timer: #东东超市
parameters:
name: superMarket
cronExpression: "0 15 */6 * * * *"
enable: true
argument: jd_superMarket
- timer: #京豆变动通知 #疯狂的joy #监控crazyJoy分红 #京东排行榜 #领京豆额外奖励 #京东保价 #闪购盲盒 #京小兑 #京东全民开红包
parameters:
name: beanchange_crazyjoy_crazyjoybonus_rankingList_beanhome_price_sgmh_jxd_redPacket_
cronExpression: "0 30 7 * * * *"
enable: true
argument: jd_bean_change&jd_crazy_joy&jd_crazy_joy_bonus&jd_rankingList&jd_bean_home&jd_price&jd_sgmh&jd_jxd&jd_redPacket
- timer: #金融养猪 #十元街 #京东快递 #京东赚赚 #京喜签到 #京东极速版红包 #女装盲盒
parameters:
name: pigPet_syj_kd_jdzz_sign_speedredpocke_nzmh
cronExpression: "0 3 0 * * * *"
enable: true
argument: jd_pigPet&jd_syj&jd_kd&jd_jdzz&jx_sign&jd_speed_redpocke&jd_nzmh
environment: # 环境变量
variables: # 环境变量对象
AAA: BBB # 不要删除,用来格式化对齐追加的变量的