Browse Source

20250208 优化调整

贾小兵 2 months ago
parent
commit
c4a8b42037
1 changed files with 1 additions and 1 deletions
  1. 1 1
      application/admin/controller/student/Collection.php

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

@@ -117,7 +117,7 @@ class Collection extends Backend
             if(!empty($this->auth->seat_id) && !empty($info['seat_id']) && $this->auth->seat_id!=$info['seat_id']){
             if(!empty($this->auth->seat_id) && !empty($info['seat_id']) && $this->auth->seat_id!=$info['seat_id']){
                 $this->error('已在其他座号有开始的考试,不允许换座号');
                 $this->error('已在其他座号有开始的考试,不允许换座号');
             }
             }
-            $this->exam_model->where('exam_id',$info['exam_id'])->update(['seat_id'=>$this->auth->seat_id]);
+            $this->exam_model->where('exam_id',$info['exam_id'])->update(['seat_id'=>$this->auth->seat_id,'sim_id'=>$this->auth->sim_id]);
             $info['seat_id'] = $this->auth->seat_id;
             $info['seat_id'] = $this->auth->seat_id;
 //            $sim = Db::name('sim')->where('seat_id',$this->auth->seat_id)->find();
 //            $sim = Db::name('sim')->where('seat_id',$this->auth->seat_id)->find();
             $sim = Db::name('sim')->where('sim_type',$info['sim_type'])->find();
             $sim = Db::name('sim')->where('sim_type',$info['sim_type'])->find();