|
@@ -166,13 +166,13 @@ class Collection extends Backend
|
|
|
}
|
|
|
if ($this->request->isPost()) {
|
|
|
//先请求接口判断,再进行处理
|
|
|
- if(Env::get('app.is_fault')){
|
|
|
- $url = config('site.url_type').'/sim/real-exam/student/exam/submit/'.$ids.'?ip='.$this->auth->server_ip;
|
|
|
- $ret = json_decode(send_get($url),true);
|
|
|
- if($ret['code']!=200){
|
|
|
- $this->error($ret['msg']);
|
|
|
- }
|
|
|
- }
|
|
|
+// if(Env::get('app.is_fault')){
|
|
|
+// $url = config('site.url_type').'/sim/real-exam/student/exam/submit/'.$ids.'?ip='.$this->auth->server_ip;
|
|
|
+// $ret = json_decode(send_get($url),true);
|
|
|
+// if($ret['code']!=200){
|
|
|
+// $this->error($ret['msg']);
|
|
|
+// }
|
|
|
+// }
|
|
|
//计算分数,保存记录
|
|
|
$params = $this->request->post('row/a');
|
|
|
|
|
@@ -626,6 +626,10 @@ class Collection extends Backend
|
|
|
$paichu = Fault::where(['fault_type'=>4,'sim_type'=>$row->sim_type])->select();
|
|
|
$this->view->assign('paichu', $paichu);
|
|
|
|
|
|
+ $this->assignConfig('exam_id', $ids);
|
|
|
+ $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();
|
|
|
}
|
|
|
|