master
wangxinglong 2021-12-20 10:34:24 +08:00
parent c261f15207
commit 325e9eac44
1 changed files with 2 additions and 2 deletions

View File

@ -137,9 +137,9 @@ class Consumer extends Base
$endTime = strtotime($item->end_time); $endTime = strtotime($item->end_time);
if (($endTime - $time) < $weekTime) { if (($endTime - $time) < $weekTime) {
$ExpirationTime = ($endTime - $time) / 86400; $ExpirationTime = ($endTime - $time) / 86400;
$item->ExpirationTime = "还有" . ceil($ExpirationTime) . "到期"; $item->expirationTimeStr = "还有" . ceil($ExpirationTime) . "到期";
} else { } else {
$item->ExpirationTime = ''; $item->expirationTimeStr = '';
} }
}); });