From 8c7c11f84a9afe711a9693cbced21f48d3ba0980 Mon Sep 17 00:00:00 2001 From: hellcat <> Date: Thu, 3 Apr 2025 19:58:51 +0800 Subject: [PATCH] no message --- src/Services/Cron.php | 6 ++++-- src/Services/TomTool/TgSendFormat.php | 6 +++--- 2 files changed, 7 insertions(+), 5 deletions(-) diff --git a/src/Services/Cron.php b/src/Services/Cron.php index ea85dd99..251f7c79 100755 --- a/src/Services/Cron.php +++ b/src/Services/Cron.php @@ -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(); diff --git a/src/Services/TomTool/TgSendFormat.php b/src/Services/TomTool/TgSendFormat.php index e28b39dd..0116146f 100755 --- a/src/Services/TomTool/TgSendFormat.php +++ b/src/Services/TomTool/TgSendFormat.php @@ -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." 天 】";