Compare commits
No commits in common. "325e9eac44365ad9d33fcb7711434f7fc80a435c" and "504c48c71cdddd95be5c35251c287c9e34be9a03" have entirely different histories.
325e9eac44
...
504c48c71c
|
@ -137,9 +137,9 @@ class Consumer extends Base
|
|||
$endTime = strtotime($item->end_time);
|
||||
if (($endTime - $time) < $weekTime) {
|
||||
$ExpirationTime = ($endTime - $time) / 86400;
|
||||
$item->expirationTimeStr = "还有" . ceil($ExpirationTime) . "到期";
|
||||
$item->ExpirationTime = ceil($ExpirationTime);
|
||||
} else {
|
||||
$item->expirationTimeStr = '';
|
||||
$item->ExpirationTime = 0;
|
||||
}
|
||||
});
|
||||
|
||||
|
|
|
@ -115,9 +115,9 @@ class Coupon extends Base
|
|||
$endTime = strtotime($item->endTime);
|
||||
$ExpirationTime = abs(($endTime - $time) / 86400);
|
||||
if (($endTime > $time) ) {
|
||||
$expirationStr = "还有".ceil($ExpirationTime)."天过期期";
|
||||
$expirationStr = ceil($ExpirationTime)."天后到期";
|
||||
} else {
|
||||
$expirationStr = "已过期" . ceil($ExpirationTime) . "天";
|
||||
$expirationStr = "到期" . ceil($ExpirationTime) . "天";
|
||||
}
|
||||
$item->expirationStr =$expirationStr;
|
||||
|
||||
|
|
Loading…
Reference in New Issue