mirror of
https://gitee.com/ulthon/ulthon_admin.git
synced 2026-07-06 01:52:48 +08:00
新增定时任务功能;
This commit is contained in:
10
app/common/command/timer/config.php
Normal file
10
app/common/command/timer/config.php
Normal file
@@ -0,0 +1,10 @@
|
||||
<?php
|
||||
|
||||
return [
|
||||
[
|
||||
'name'=>'http_demo', // 定时任务的名称,不能重複
|
||||
'type'=>'site', // 定时任务的类型,默认只支持site,你也可以重写定时器命令行以支持其他命令
|
||||
'target'=>'/tools/timer.ResetPassword/do', // 要访问的地址,如果不是以https开头,那么以后台的系统配置中读取相关配置,如果没有配置则不执行
|
||||
'frequency'=>600 // 执行频率,单位:秒,填写10,则每10秒过后执行一次
|
||||
]
|
||||
];
|
||||
Reference in New Issue
Block a user