no message

This commit is contained in:
hellcat 2025-04-04 17:50:12 +08:00
parent acd38870ca
commit bfae910688

View File

@ -657,12 +657,18 @@ final class Cron
$targetDate = new DateTime($oZhuanfasRow->end_date); $targetDate = new DateTime($oZhuanfasRow->end_date);
$interval = $today->diff($targetDate); $interval = $today->diff($targetDate);
if ($today > $targetDate) {
$iDiffDay = -$interval->days;
} else {
$iDiffDay = $interval->days;
}
$oTgSendFormat->rowAdd( $oTgSendFormat->rowAdd(
$oZhuanfasRow->name, $oZhuanfasRow->name,
$oZhuanfasRow->today_width, $oZhuanfasRow->today_width,
$oZhuanfasRow->use_width, $oZhuanfasRow->use_width,
$oZhuanfasRow->max_width, $oZhuanfasRow->max_width,
$interval->days $iDiffDay
); );
} }