Browse Source

考试接口

lizhen_gitee 8 months ago
parent
commit
c79e213434
2 changed files with 3 additions and 0 deletions
  1. 2 0
      addons/exam/controller/Paper.php
  2. 1 0
      application/api/controller/Index.php

+ 2 - 0
addons/exam/controller/Paper.php

@@ -215,6 +215,8 @@ class Paper extends Base
                     'status' => 2,
                     'finish_time' => time(),
                 ]);
+            unset($update['pass_score']);
+            unset($update['start_time']);
 
             $rs = Db::name('exam_grade')->where('id',$grade_id)->update($update);
             if($rs === false){

+ 1 - 0
application/api/controller/Index.php

@@ -35,6 +35,7 @@ class Index extends Api
         $this->success('', $papers);
     }
 
+    //在线考试
     //我的考试
     //可参加考试
     //我的试卷