mirror of
https://github.com/acepanel/panel.git
synced 2026-02-05 10:31:08 +08:00
特性(全局):一波更新
This commit is contained in:
@@ -25,7 +25,7 @@ class Kernel extends ConsoleKernel
|
||||
// 检查文件是否存在,及所有者是否为root
|
||||
if (!file_exists($file) || fileowner($file) != 0) {
|
||||
file_put_contents('/www/server/cron/logs/'.$cron->id.'.log',
|
||||
'耗子Linux面板:检测到脚本文件异常,为确保安全已终止运行,如果你不知道发生了什么,这通常意味着服务器已被入侵。',
|
||||
PHP_EOL.'耗子Linux面板:检测到脚本文件异常,为确保安全已终止运行,如果你不知道发生了什么,这通常意味着服务器已被入侵。'.PHP_EOL,
|
||||
FILE_APPEND);
|
||||
continue;
|
||||
}
|
||||
@@ -37,10 +37,10 @@ class Kernel extends ConsoleKernel
|
||||
$cron->save();
|
||||
})->onSuccess(function () use ($cron) {
|
||||
file_put_contents('/www/server/cron/logs/'.$cron->id.'.log',
|
||||
Carbon::now()->toDateTimeString().' 任务执行成功', FILE_APPEND);
|
||||
PHP_EOL.Carbon::now()->toDateTimeString().' 任务执行成功'.PHP_EOL, FILE_APPEND);
|
||||
})->onFailure(function () use ($cron) {
|
||||
file_put_contents('/www/server/cron/logs/'.$cron->id.'.log',
|
||||
Carbon::now()->toDateTimeString().' 任务执行失败', FILE_APPEND);
|
||||
PHP_EOL.Carbon::now()->toDateTimeString().' 任务执行失败'.PHP_EOL, FILE_APPEND);
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user