no message

This commit is contained in:
hellcat 2025-04-04 15:43:30 +08:00
parent 86e1f97241
commit f362601d18
3 changed files with 5 additions and 4 deletions

View File

@ -207,7 +207,7 @@ final class HookController
$r = @json_decode($oHttp->send(), true); $r = @json_decode($oHttp->send(), true);
// 不论失败成功都清除step // 不论失败成功都清除 step
$oTgStep->clearByFromId($aUpdate["message"]["from"]["id"]); $oTgStep->clearByFromId($aUpdate["message"]["from"]["id"]);
if ($r["ret"] == 1) { if ($r["ret"] == 1) {

View File

@ -700,7 +700,8 @@ final class Cron
$oDucksRow->today_width, $oDucksRow->today_width,
$oDucksRow->use_width, $oDucksRow->use_width,
$oDucksRow->max_width, $oDucksRow->max_width,
$iWidthResetDay $iWidthResetDay,
$oDucksRow->memo
); );
} }

View File

@ -30,7 +30,7 @@ final class TgSendFormat
} }
public function rowAdd($sName, $iFlowToday, $iUseWidth, $iMaxWidth, $iLimitDay = false) { public function rowAdd($sName, $iFlowToday, $iUseWidth, $iMaxWidth, $iLimitDay = false, $sMemo = false) {
$iUseWidth = Tools::flowToGB($iUseWidth); $iUseWidth = Tools::flowToGB($iUseWidth);
$iMaxWidth = Tools::flowToGB($iMaxWidth); $iMaxWidth = Tools::flowToGB($iMaxWidth);
@ -49,7 +49,7 @@ final class TgSendFormat
} }
// $sFlowMix = $sFlowEmoji.' '.(100 - $sFlowRate)."%".$iMaxWidth."g - ".$iUseWidth."g = ".$iMaxWidth - $iUseWidth."g【 今:".$iFlowToday."g 】"; // $sFlowMix = $sFlowEmoji.' '.(100 - $sFlowRate)."%".$iMaxWidth."g - ".$iUseWidth."g = ".$iMaxWidth - $iUseWidth."g【 今:".$iFlowToday."g 】";
$sFlowMix = $sFlowEmoji.' '.(100 - $sFlowRate)."%"; $sFlowMix = $sFlowEmoji.'@'.$sMemo.' '.(100 - $sFlowRate)."%";
$sFlowMix .= " [ "; $sFlowMix .= " [ ";