|
@@ -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']){
|
|
|
$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;
|
|
|
// $sim = Db::name('sim')->where('seat_id',$this->auth->seat_id)->find();
|
|
|
$sim = Db::name('sim')->where('sim_type',$info['sim_type'])->find();
|