소스 검색

20250210 优化调整

贾小兵 2 달 전
부모
커밋
4b87973578
1개의 변경된 파일2개의 추가작업 그리고 2개의 파일을 삭제
  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);