no message

This commit is contained in:
hellcat 2025-04-03 19:58:51 +08:00
parent d9089690e9
commit 8c7c11f84a
2 changed files with 7 additions and 5 deletions

View File

@ -600,7 +600,9 @@ final class Cron
if ($oNodeRow->node_bandwidth <= 1242880) {
$sMsg .= $oNodeRow->name."1小时消耗流量不足1mb可能存在异常。\n";
$sMsg .= "🚨🚨🚨🚨🚨🚨🚨🚨\n\n";
$sMsg .= '【'.$oNodeRow->name."】1小时消耗流量不足1mb可能存在异常。\n";
}
@ -647,7 +649,7 @@ final class Cron
// 流量报告,转发
$oTgSendFormat = new TgSendFormat();
$oTgSendFormat->sTitleEmoji = "⚡️⚡️⚡️⚡️⚡️⚡️";
$oTgSendFormat->sTitleEmoji = "\n\n";
$oTgSendFormat->sTitle = "# 转发流量";
$today = new DateTime();

View File

@ -32,8 +32,8 @@ final class TgSendFormat
public function rowAdd($sName, $iFlowToday, $iUseWidth, $iMaxWidth, $iLimitDay = false) {
$iUseWidth = Tools::flowToTB($iUseWidth);
$iMaxWidth = Tools::flowToTB($iMaxWidth);
$iUseWidth = Tools::flowToGB($iUseWidth);
$iMaxWidth = Tools::flowToGB($iMaxWidth);
$iFlowToday = Tools::flowToGB($iFlowToday);
if ($iMaxWidth <= 0) {
@ -48,7 +48,7 @@ final class TgSendFormat
$sFlowEmoji = '🔋';
}
$sFlowMix = $sFlowEmoji.' '.(100 - $sFlowRate)."%".$iMaxWidth." - ".$iUseWidth." = ".$iMaxWidth - $iUseWidth.")【 消耗".$iFlowToday."g 】";
$sFlowMix = $sFlowEmoji.' '.(100 - $sFlowRate)."%".$iMaxWidth."g总 - ".$iUseWidth."g用 = ".$iMaxWidth - $iUseWidth."g余【 今日".$iFlowToday."g 】";
if ($iLimitDay > 0) {
$sFlowMix .= "【 离重置:".$iLimitDay." 天 】";