From 4717641c9fbd01417a6322e5a1df195cdf94fa7d Mon Sep 17 00:00:00 2001 From: hellcat <> Date: Fri, 19 Dec 2025 15:40:15 +0800 Subject: [PATCH] no message --- app/Services/Cron.php | 2 +- app/Services/Cron/FreenodeCrawl.php | 5 ++++- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/app/Services/Cron.php b/app/Services/Cron.php index 6c85ca69..cb6b6c12 100644 --- a/app/Services/Cron.php +++ b/app/Services/Cron.php @@ -65,7 +65,7 @@ final class Cron } if ($h == 15 && $i == 3) { - CronFreenodeLog::fromLast(); +// CronFreenodeLog::fromLast(); } } catch (\Throwable $e) { diff --git a/app/Services/Cron/FreenodeCrawl.php b/app/Services/Cron/FreenodeCrawl.php index 3a3b0891..f6d7f909 100644 --- a/app/Services/Cron/FreenodeCrawl.php +++ b/app/Services/Cron/FreenodeCrawl.php @@ -148,6 +148,8 @@ final class FreenodeCrawl { echo "\nCrawlFreenode::run - 开始\n"; + $sDirBase = $_ENV["dir_base"]; + $aFromList = ModelCrawlFreenode::where("status", 1)->get()->toArray(); foreach ($aFromList as $aFrom) { @@ -177,7 +179,8 @@ final class FreenodeCrawl $sFileContent = $sFileRow["file_content"]; - $sDir = "freenode/from/".$aFrom["name"]; + $sDir = $sDirBase."public/freenode/from/".$aFrom["name"]; +// tomd($sDir, 1); $sPath = $sDir."/".$sFileName; if (!is_dir($sDir)) {