Ver Fonte

20250326 优化调整

贾小兵 há 1 mês atrás
pai
commit
4acca4ea0c

+ 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'){