no message
This commit is contained in:
parent
e4ed419a6f
commit
3bf652ee5d
@ -80,6 +80,12 @@ final class Cron
|
|||||||
|
|
||||||
echo $sMsg;
|
echo $sMsg;
|
||||||
|
|
||||||
|
$sMsg = "";
|
||||||
|
$sMsg .= "--- cron 异常 ---\n";
|
||||||
|
$sMsg .= "类型: " . get_class($e) . "\n";
|
||||||
|
$sMsg .= "信息: " . $e->getMessage() . "\n";
|
||||||
|
$sMsg .= "文件: " . $e->getFile() . " 在第 " . $e->getLine() . " 行\n";
|
||||||
|
|
||||||
TeleSlave::fail()->send($sMsg);
|
TeleSlave::fail()->send($sMsg);
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
@ -253,7 +253,12 @@ final class FreenodeCrawl
|
|||||||
// 确保文件头是 UTF-8(可选)
|
// 确保文件头是 UTF-8(可选)
|
||||||
$content = "\xEF\xBB\xBF" . $content; // 如果需要 BOM,可以加上
|
$content = "\xEF\xBB\xBF" . $content; // 如果需要 BOM,可以加上
|
||||||
|
|
||||||
return file_put_contents($filename, $content) !== false;
|
|
||||||
|
file_put_contents($filename, $content);
|
||||||
|
|
||||||
|
@chmod($filename, 0777);
|
||||||
|
|
||||||
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@ -211,6 +211,8 @@ final class FreenodeMerge
|
|||||||
$sFilePath = $sFileDir."/".$sDate.".txt"; // 都是txt,解析的时候另处理
|
$sFilePath = $sFileDir."/".$sDate.".txt"; // 都是txt,解析的时候另处理
|
||||||
file_put_contents($sFilePath, $sMerge);
|
file_put_contents($sFilePath, $sMerge);
|
||||||
|
|
||||||
|
@chmod($filename, 0777);
|
||||||
|
|
||||||
echo " - base::".$sFilePath." 已保存 \n";
|
echo " - base::".$sFilePath." 已保存 \n";
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -310,6 +312,8 @@ final class FreenodeMerge
|
|||||||
|
|
||||||
file_put_contents($sFileSavePath, $sFeedContent);
|
file_put_contents($sFileSavePath, $sFeedContent);
|
||||||
|
|
||||||
|
@chmod($filename, 0777);
|
||||||
|
|
||||||
echo " - fn的".$aSiteMapRow["code"]."的{$sClient}的{$sDate} 保存成功 \n";
|
echo " - fn的".$aSiteMapRow["code"]."的{$sClient}的{$sDate} 保存成功 \n";
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user