|
@@ -130,35 +130,55 @@ public class NetExamService {
|
|
|
}
|
|
|
|
|
|
public Result submitPracticeExamRecord(String key, String token, String examRecordId) throws Exception {
|
|
|
- return null;
|
|
|
+ //封装请求参数
|
|
|
+ final String requestUrl = String.format("%s/api/exam_control/submit?examRecordId=%s", propertyService.getNetExamUrl(), examRecordId);
|
|
|
+ return HttpUtils.doGet(requestUrl, key, token);
|
|
|
}
|
|
|
|
|
|
public Result checkOnlineExamRecord(String key, String token) throws Exception {
|
|
|
- return null;
|
|
|
+ //封装请求参数
|
|
|
+ final String requestUrl = String.format("%s/api/exam_record/checkExam", propertyService.getNetExamUrl());
|
|
|
+ return HttpUtils.doGet(requestUrl, key, token);
|
|
|
}
|
|
|
|
|
|
public Result getExamRecordPracticeTotalInfo(String key, String token, String examStudentId) throws Exception {
|
|
|
- return null;
|
|
|
+ //封装请求参数
|
|
|
+ final String requestUrl = String.format("%s/api/practice_course/%s", propertyService.getNetExamUrl(), examStudentId);
|
|
|
+ return HttpUtils.doGet(requestUrl, key, token);
|
|
|
}
|
|
|
|
|
|
public Result getExamRecordPracticeHistoryList(String key, String token, String examStudentId) throws Exception {
|
|
|
- return null;
|
|
|
+ //封装请求参数
|
|
|
+ final String requestUrl = String.format("%s/api/practice_record?examStudentId=%s", propertyService.getNetExamUrl(), examStudentId);
|
|
|
+ return HttpUtils.doGet(requestUrl, key, token);
|
|
|
}
|
|
|
|
|
|
public Result getExamRecordTotalInfo(String key, String token, String examRecordId) throws Exception {
|
|
|
- return null;
|
|
|
+ //封装请求参数
|
|
|
+ final String requestUrl = String.format("%s/api/practice_detail?examRecordId=%s", propertyService.getNetExamUrl(), examRecordId);
|
|
|
+ return HttpUtils.doGet(requestUrl, key, token);
|
|
|
}
|
|
|
|
|
|
public Result getExamRecordQuestionDetailList(String key, String token, String examRecordId) throws Exception {
|
|
|
- return null;
|
|
|
+ //封装请求参数
|
|
|
+ final String requestUrl = String.format("%s/api/ecs_oe/report/exam_detail_report/paper_question?exam_record_id=%s", propertyService.getNetExamUrl(), examRecordId);
|
|
|
+ return HttpUtils.doGet(requestUrl, key, token);
|
|
|
}
|
|
|
|
|
|
public Result getExamRecordQuestionAudioPlayTimes(String key, String token, String questionId) throws Exception {
|
|
|
- return null;
|
|
|
+ //封装请求参数
|
|
|
+ final String requestUrl = String.format("%s/api/exam_question_playtimes?questionId=%s", propertyService.getNetExamUrl(), questionId);
|
|
|
+ return HttpUtils.doGet(requestUrl, key, token);
|
|
|
}
|
|
|
|
|
|
public Result updateExamRecordQuestionAudioPlayTimes(String key, String token, String questionId, String mediaName) throws Exception {
|
|
|
- return null;
|
|
|
+ //封装请求参数
|
|
|
+ final String requestUrl = String.format("%s/api/exam_question_playtimes", propertyService.getNetExamUrl());
|
|
|
+ RequestBody formBody = new FormBody.Builder()
|
|
|
+ .add("questionId", questionId)
|
|
|
+ .add("mediaName", mediaName)
|
|
|
+ .build();
|
|
|
+ return HttpUtils.doPost(requestUrl, formBody, key, token);
|
|
|
}
|
|
|
|
|
|
}
|