소스 검색

20250421 优化调整

贾小兵 6 일 전
부모
커밋
56def32d7f
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      application/admin/controller/Index.php

+ 1 - 1
application/admin/controller/Index.php

@@ -146,7 +146,7 @@ class Index extends Backend
      */
     public function timeout()
     {
-        $where = ['exam_status'=>4,'countdown_time'=>['>',0],'exam_collection_type'=>3,'endtime'=>0];
+        $where = ['exam_status'=>4,'countdown_time'=>['>',time()],'exam_collection_type'=>3,'endtime'=>0];
         $list = Db::name('real_exam')->where($where)->select();
         foreach ($list as $k => $v) {
             $score = 100;