Browse Source

20250210 优化调整

贾小兵 2 weeks ago
parent
commit
4b87973578
1 changed files with 2 additions and 2 deletions
  1. 2 2
      application/admin/controller/student/Collection.php

+ 2 - 2
application/admin/controller/student/Collection.php

@@ -726,8 +726,8 @@ class Collection extends Backend
             $this->error('未找到记录');
         }
         // 计算差值
-        $time = strtotime(date('Y-m-d H:i:s', strtotime('+10 minute',$row->countdown_time)));
-        $diff = $time-time();
+        // $time = strtotime(date('Y-m-d H:i:s', strtotime('+10 minute',$row->countdown_time)));
+        $diff = $row->countdown_time-time();
         // 将差值转换为秒
         $seconds = $diff;
         $minutes = floor($seconds / 60);