소스 검색

20250326 优化调整

贾小兵 1 개월 전
부모
커밋
4acca4ea0c
2개의 변경된 파일6개의 추가작업 그리고 6개의 파일을 삭제
  1. 3 3
      application/admin/controller/student/Collection.php
  2. 3 3
      application/admin/controller/student/Practice.php

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

@@ -118,9 +118,9 @@ class Collection extends Backend
                 $this->error('已在其他座号有开始的考试,不允许换座号');
             }
             $sim = Db::name('seat')->where('seat_num',$this->auth->seat_id)->find();
-            if(empty($sim['current_sim_id']) && Env::get('app.is_fault')){
-                $this->error('未找到模拟器,不可考试');
-            }
+//            if(empty($sim['current_sim_id']) && Env::get('app.is_fault')){
+//                $this->error('未找到模拟器,不可考试');
+//            }
             $info['seat_id'] = $this->auth->seat_id;
             $sim_text = '';
             if($info['sim_type']=='0001'){

+ 3 - 3
application/admin/controller/student/Practice.php

@@ -102,9 +102,9 @@ class Practice extends Backend
                 $this->error('已在其他座号有开始的训练,不允许换座号');
             }
             $sim = Db::name('seat')->where('seat_num',$this->auth->seat_id)->find();
-            if(empty($sim['current_sim_id']) && Env::get('app.is_fault')){
-                $this->error('未找到模拟器,不可考试');
-            }
+//            if(empty($sim['current_sim_id']) && Env::get('app.is_fault')){
+//                $this->error('未找到模拟器,不可考试');
+//            }
             $info['seat_id'] = $this->auth->seat_id;
             $sim_text = '';
             if($info['sim_type']=='0001'){