|
@@ -121,7 +121,7 @@ class Collection extends Backend
|
|
|
if(empty($sim)){
|
|
|
$this->error('未找到模拟器,不可考试');
|
|
|
}
|
|
|
- $this->exam_model->where('exam_id',$info['exam_id'])->update(['seat_id'=>$this->auth->seat_id,'sim_id'=>$sim['sim_id']]);
|
|
|
+// $this->exam_model->where('exam_id',$info['exam_id'])->update(['seat_id'=>$this->auth->seat_id,'sim_id'=>$sim['sim_id']]);
|
|
|
$info['seat_id'] = $this->auth->seat_id;
|
|
|
$sim_text = '';
|
|
|
if(!empty($sim)){
|
|
@@ -159,6 +159,7 @@ class Collection extends Backend
|
|
|
$this->view->assign('row', $row);
|
|
|
$this->assignConfig('exam_id', $info['exam_id']);
|
|
|
$this->assignConfig('url_type', config('site.url_type'));
|
|
|
+ $this->assignConfig('server_ip', $this->auth->server_ip);
|
|
|
$this->assignConfig('is_fault', Env::get('app.is_fault'));
|
|
|
return $this->view->fetch();
|
|
|
}
|