Skip to content

Commit 6dc7cc4

Browse files
committed
chore: Loon 插件支持修改定时任务 cron
1 parent 533fffb commit 6dc7cc4

1 file changed

Lines changed: 5 additions & 2 deletions

File tree

config/Loon.plugin

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,15 @@
11
#!name=Sub-Store
2-
#!desc=高级订阅管理工具. 定时任务默认为每天 23 点 55 分. 定时任务指定时将订阅/文件上传到私有 Gist. 在前端, 叫做 '同步' 或 '同步配置'
2+
#!desc=高级订阅管理工具. 定时任务默认为每天 23 点 55 分, 可在插件设置中自定义. 定时任务指定时将订阅/文件上传到私有 Gist. 在前端, 叫做 '同步' 或 '同步配置'
33
#!openUrl=https://sub.store
44
#!author=Peng-YM
55
#!homepage=https://github.com/sub-store-org/Sub-Store
66
#!icon=https://raw.githubusercontent.com/58xinian/icon/master/Sub-Store1.png
77
#!select = 节点缓存有效期,1分钟,5分钟,10分钟,30分钟,1小时,2小时,3小时,6小时,12小时,24小时,48小时,72小时,参数传入
88
#!select = 响应头缓存有效期,1分钟,5分钟,10分钟,30分钟,1小时,2小时,3小时,6小时,12小时,24小时,48小时,72小时,参数传入
99

10+
[Argument]
11+
cron=input, "55 23 * * *", tag=定时参数, desc=这里需要输入符合CRON表达式的参数
12+
1013
[Rule]
1114
DOMAIN,sub-store.vercel.app,PROXY
1215

@@ -17,4 +20,4 @@ hostname=sub.store
1720
http-request ^https?:\/\/sub\.store\/((download)|api\/(preview|sync|(utils\/node-info))) script-path=https://github.com/sub-store-org/Sub-Store/releases/latest/download/sub-store-1.min.js, requires-body=true, timeout=120, tag=Sub-Store Core
1821
http-request ^https?:\/\/sub\.store script-path=https://github.com/sub-store-org/Sub-Store/releases/latest/download/sub-store-0.min.js, requires-body=true, timeout=120, tag=Sub-Store Simple
1922

20-
cron "55 23 * * *" script-path=https://github.com/sub-store-org/Sub-Store/releases/latest/download/cron-sync-artifacts.min.js, timeout=120, tag=Sub-Store Sync
23+
cron {cron} script-path=https://github.com/sub-store-org/Sub-Store/releases/latest/download/cron-sync-artifacts.min.js, timeout=120, tag=Sub-Store Sync

0 commit comments

Comments
 (0)