{include file="app/manage/view/index/emlog_nav"}

计划任务 新增自定义任务 运行令牌

系统任务(商品/资讯/订单采集、订单匹配)由程序自动注册;自定义任务支持 URL 回调 / PHP 代码 / Shell / Python 四种执行方式。在服务器 crontab 中加入 * * * * * curl -s "你的域名/index.php?r=manage/task/run&token=你的令牌" 即可每分钟触发到点任务。
健康检查: {if $cronStatus=='ok'} 正常 {else} 异常 {/if} 最近触发:{$cronLastText} — {$cronMsg}
{if !empty($tasks)} {foreach $tasks as $t} {/foreach} {else} {/if}
任务 类型 执行方式 调度 下次执行 上次结果 操作
{htmlspecialchars($t.title, ENT_QUOTES, 'UTF-8')}
{htmlspecialchars($t.command, ENT_QUOTES, 'UTF-8')}
{if $t.type=='system'}系统{else}自定义{/if} {htmlspecialchars($t.exec_type, ENT_QUOTES, 'UTF-8')} {htmlspecialchars($t.schedule, ENT_QUOTES, 'UTF-8')} {if $t.next_run}{date('m-d H:i', (int)$t.next_run)}{else}—{/if} {if $t.last_run} {date('m-d H:i', (int)$t.last_run)}
{htmlspecialchars(mb_substr($t.last_result,0,30), ENT_QUOTES, 'UTF-8')} {else}未运行 {/if}
{if $t['type']=='custom'} {else} 系统 {/if}
暂无任务
{include file="app/manage/view/index/emlog_footer"}