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