no message
This commit is contained in:
parent
acd38870ca
commit
bfae910688
@ -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
|
||||||
);
|
);
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user