no message

This commit is contained in:
hellcat 2025-12-18 17:51:17 +08:00
parent d155f698cd
commit 15caa4faa7

View File

@ -50,7 +50,7 @@ final class FreenodeCrawl
$sUrlSend = "http://".$aFrom["url_base"].$aFrom["url_node"].$sFileName;
$sFileContent = self::curl($sUrlSend) ?? "";
// tomd($sFileContent, 1);
if (!$sFileContent) {
return [];
}
@ -157,9 +157,11 @@ final class FreenodeCrawl
$sMethod = "getFile__".$aFrom["group"];
$aFileList = self::$sMethod($aFrom); // 没有就返回空数组所以不用判断直接foreach
$sMsg = " - CrawlFreenode爬from返回空 -> ".json_encode($aFrom)." \n";
echo $sMsg;
TeleSlave::log()->send($sMsg);
if (empty($aFileList)) {
$sMsg = " - CrawlFreenode爬from返回空 -> ".json_encode($aFrom)." \n";
echo $sMsg;
TeleSlave::log()->send($sMsg);
}
foreach ($aFileList as $sFileRow) {
$sType = $sFileRow["type"];