mirror of
https://github.com/v2board/v2board.git
synced 2025-06-13 13:17:52 +08:00
update: laravel 7
This commit is contained in:
@ -196,7 +196,7 @@ class OrderService
|
||||
private function orderIsUsed(Order $order):bool
|
||||
{
|
||||
$month = self::STR_TO_TIME[$order->cycle];
|
||||
$orderExpireDay = strtotime('+' . $month . ' month', $order->created_at->timestamp);
|
||||
$orderExpireDay = strtotime('+' . $month . ' month', $order->created_at);
|
||||
if ($orderExpireDay < time()) return true;
|
||||
return false;
|
||||
}
|
||||
|
Reference in New Issue
Block a user