浏览代码

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 {

文件差异内容过多而无法显示
+ 0 - 0
public/assets/admin/umi.js


部分文件因为文件数量过多而无法显示