Browse Source

fix: get reset day

tokumeikoi 4 years ago
parent
commit
2979003b6f
2 changed files with 3 additions and 0 deletions
  1. 3 0
      app/Http/Controllers/User/UserController.php
  2. 0 0
      public/assets/admin/umi.js

+ 3 - 0
app/Http/Controllers/User/UserController.php

@@ -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 it is too large
+ 0 - 0
public/assets/admin/umi.js


Some files were not shown because too many files changed in this diff