瀏覽代碼

fix: get reset day

tokumeikoi 4 年之前
父節點
當前提交
2979003b6f
共有 2 個文件被更改,包括 3 次插入0 次删除
  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