This commit is contained in:
Your Name
2026-04-23 18:12:23 +08:00
parent c1ac050c6a
commit 04242363a8
2 changed files with 7 additions and 2 deletions

View File

@@ -27,7 +27,7 @@ use app\task\logic\VideoSeoLogic;
class PlanTask
{
public static function scanPlanTask($arrData)
public static function scanPlanTask($arrData = [])
{
ProcessSanitizer::destructConnectSource();

View File

@@ -336,7 +336,12 @@ class ServerManage
private function cleanupPidFile(): void
{
$strPidFile = (string) ($this->arrDynamicConfig['service']['pid_file'] ?? '');
if ($strPidFile !== '' && is_file($strPidFile)) {
if ($strPidFile === '' || !is_file($strPidFile)) {
return;
}
$intPid = (int) trim((string) @file_get_contents($strPidFile));
if ($intPid === posix_getpid()) {
@unlink($strPidFile);
}
}