fix: get reset day

This commit is contained in:
tokumeikoi 2021-02-03 19:03:28 +09:00
parent 2be497b04d
commit 2979003b6f
2 changed files with 4 additions and 1 deletions

View File

@ -195,6 +195,9 @@ class UserController extends Controller
return $lastDay - $today;
}
if ((int)config('v2board.reset_traffic_method') === 1) {
if ((int)$day >= (int)$today && (int)$day >= (int)$lastDay) {
return $lastDay - $today;
}
if ((int)$day >= (int)$today) {
return $day - $today;
} else {

File diff suppressed because one or more lines are too long