瀏覽代碼

考试接口

lizhen_gitee 8 月之前
父節點
當前提交
c79e213434
共有 2 個文件被更改,包括 3 次插入0 次删除
  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);
     }
 
+    //在线考试
     //我的考试
     //可参加考试
     //我的试卷