Bläddra i källkod

20250103 调整

贾小兵 3 månader sedan
förälder
incheckning
5e8e460743
1 ändrade filer med 5 tillägg och 6 borttagningar
  1. 5 6
      application/admin/controller/student/Collection.php

+ 5 - 6
application/admin/controller/student/Collection.php

@@ -66,16 +66,15 @@ class Collection extends Backend
     {
         $isset = $this->model->alias('z')
         ->join('real_exam r','z.exam_collection_id=r.exam_collection_id','left')
-        ->where('z.exam_collection_type=3 and z.exam_collection_state=2 and r.user_id='.$this->auth->id)->find();
+        ->where('z.exam_collection_type=3 and z.exam_collection_state=2 and r.endtime=0 and r.user_id='.$this->auth->id)->find();
        if(empty($isset)){
             //提示页面,没有开始的考试
             return $this->view->fetch('tishi');
        }else{
-//             halt('22222');
-            $this->redirect('/ZQOtIMLKud.php/student/collection/examing/ids/'.$isset['exam_id'].'?ref=addtabs');
-//             echo "<script>location.href='/lAoJtOcmYN.php/hotelmanage/room/displayindex/ids/".$this->auth->street_id."';</script>";
-//             //$this->redirect('/hotelmanage/room/displayindex/ids/1');
-//             exit();
+//             $this->redirect('/ZQOtIMLKud.php/student/collection/examing/ids/'.$isset['exam_id'].'?ref=addtabs');
+            echo "<script>location.href='/ZQOtIMLKud.php/student/collection/examing/ids/".$isset['exam_id']."';</script>";
+            //$this->redirect('/hotelmanage/room/displayindex/ids/1');
+            exit();
        }
         die();
         //设置过滤方法