lizhen_gitee 8 månader sedan
förälder
incheckning
f6e13a2038
1 ändrade filer med 1 tillägg och 0 borttagningar
  1. 1 0
      addons/exam/controller/Paper.php

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

@@ -151,6 +151,7 @@ class Paper extends Base
 
 
         // 获取试卷题目
         // 获取试卷题目
         $question_data = ExamService::getExamQuestion($paper_id, 0);
         $question_data = ExamService::getExamQuestion($paper_id, 0);
+        $question_data['paper']['limit_time'] = $check['last_time'] - time();//倒计时秒数
         $this->success('', $question_data);
         $this->success('', $question_data);
     }
     }