From 8a894a9a322b8d05e0bf8279070b2fa73dbe7547 Mon Sep 17 00:00:00 2001 From: tokumeikoi Date: Mon, 30 Nov 2020 12:04:00 +0800 Subject: [PATCH] update: reset day --- app/Http/Controllers/User/UserController.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/Http/Controllers/User/UserController.php b/app/Http/Controllers/User/UserController.php index 6d72a405..b418ec04 100755 --- a/app/Http/Controllers/User/UserController.php +++ b/app/Http/Controllers/User/UserController.php @@ -165,7 +165,7 @@ class UserController extends Controller { if ($user->expired_at <= time() || $user->expired_at === NULL) return null; $day = date('d', $user->expired_at); - $today = date('d'); + $today = date('d', strtotime('-1 day')); $lastDay = date('d', strtotime('last day of +0 months')); if ((int)config('v2board.reset_traffic_method') === 0) {