|
@@ -19,6 +19,7 @@ import okhttp3.FormBody;
|
|
import okhttp3.MediaType;
|
|
import okhttp3.MediaType;
|
|
import okhttp3.MultipartBody;
|
|
import okhttp3.MultipartBody;
|
|
import okhttp3.RequestBody;
|
|
import okhttp3.RequestBody;
|
|
|
|
+
|
|
import org.apache.commons.io.FilenameUtils;
|
|
import org.apache.commons.io.FilenameUtils;
|
|
import org.slf4j.Logger;
|
|
import org.slf4j.Logger;
|
|
import org.slf4j.LoggerFactory;
|
|
import org.slf4j.LoggerFactory;
|
|
@@ -94,42 +95,42 @@ public class NetExamServiceImpl implements NetExamService {
|
|
@Override
|
|
@Override
|
|
public Result getPracticeExamCourseList(String key, String token, String examId) throws Exception {
|
|
public Result getPracticeExamCourseList(String key, String token, String examId) throws Exception {
|
|
//封装请求参数
|
|
//封装请求参数
|
|
- final String requestUrl = String.format("%s/api/practice_course?examId=%s", propertyService.getNetExamUrl(), examId);
|
|
|
|
|
|
+ final String requestUrl = String.format("%s/api/ecs_oe_student/practice/queryPracticeCourseList?examId=%s", propertyService.getNetExamUrl(), examId);
|
|
return HttpUtils.doGet(requestUrl, key, token);
|
|
return HttpUtils.doGet(requestUrl, key, token);
|
|
}
|
|
}
|
|
|
|
|
|
@Override
|
|
@Override
|
|
- public Result getExamRecordHeartbeat(String key, String token, String examRecordId) throws Exception {
|
|
|
|
|
|
+ public Result getExamRecordHeartbeat(String key, String token) throws Exception {
|
|
//封装请求参数
|
|
//封装请求参数
|
|
- final String requestUrl = String.format("%s/api/exam_control/heartbeat?examRecordId=%s", propertyService.getNetExamUrl(), examRecordId);
|
|
|
|
|
|
+ final String requestUrl = String.format("%s/api/ecs_oe_student/examControl/examHeartbeat", propertyService.getNetExamUrl());
|
|
return HttpUtils.doGet(requestUrl, key, token);
|
|
return HttpUtils.doGet(requestUrl, key, token);
|
|
}
|
|
}
|
|
|
|
|
|
@Override
|
|
@Override
|
|
public Result startPracticeExamRecord(String key, String token, String examStudentId) throws Exception {
|
|
public Result startPracticeExamRecord(String key, String token, String examStudentId) throws Exception {
|
|
//封装请求参数
|
|
//封装请求参数
|
|
- final String requestUrl = String.format("%s/api/exam_control/start?stu_exam_info_id=%s", propertyService.getNetExamUrl(), examStudentId);
|
|
|
|
|
|
+ final String requestUrl = String.format("%s/api/ecs_oe_student/examControl/startExam?examStudentId=%s", propertyService.getNetExamUrl(), examStudentId);
|
|
return HttpUtils.doGet(requestUrl, key, token);
|
|
return HttpUtils.doGet(requestUrl, key, token);
|
|
}
|
|
}
|
|
|
|
|
|
@Override
|
|
@Override
|
|
public Result getExamRecordPaperStructList(String key, String token, String examRecordId) throws Exception {
|
|
public Result getExamRecordPaperStructList(String key, String token, String examRecordId) throws Exception {
|
|
//封装请求参数
|
|
//封装请求参数
|
|
- final String requestUrl = String.format("%s/api/exam_question/paper_struct?exam_record_id=%s", propertyService.getNetExamUrl(), examRecordId);
|
|
|
|
|
|
+ final String requestUrl = String.format("%s/api/ecs_oe_student/examRecordPaperStruct/getExamRecordPaperStruct?examRecordDataId=%s", propertyService.getNetExamUrl(), examRecordId);
|
|
return HttpUtils.doGet(requestUrl, key, token);
|
|
return HttpUtils.doGet(requestUrl, key, token);
|
|
}
|
|
}
|
|
|
|
|
|
@Override
|
|
@Override
|
|
- public Result getExamRecordPaperQuestionList(String key, String token, String examRecordId) throws Exception {
|
|
|
|
|
|
+ public Result getExamRecordPaperQuestionList(String key, String token) throws Exception {
|
|
//封装请求参数
|
|
//封装请求参数
|
|
- final String requestUrl = String.format("%s/api/exam_question?exam_record_id=%s", propertyService.getNetExamUrl(), examRecordId);
|
|
|
|
|
|
+ final String requestUrl = String.format("%s/api/ecs_oe_student/examQuestion/findExamQuestionList", propertyService.getNetExamUrl());
|
|
return HttpUtils.doGet(requestUrl, key, token);
|
|
return HttpUtils.doGet(requestUrl, key, token);
|
|
}
|
|
}
|
|
|
|
|
|
@Override
|
|
@Override
|
|
- public Result getExamRecordPaperQuestionDetail(String key, String token, String questionId) throws Exception {
|
|
|
|
|
|
+ public Result getExamRecordPaperQuestionDetail(String key, String token, String questionId, String examRecordId) throws Exception {
|
|
//封装请求参数
|
|
//封装请求参数
|
|
- final String requestUrl = String.format("%s/api/exam_question/question?question_id=%s", propertyService.getNetExamUrl(), questionId);
|
|
|
|
|
|
+ final String requestUrl = String.format("%s/api/ecs_oe_student/examQuestion/getQuestionContent?questionId=%s&exam_record_id=%s", propertyService.getNetExamUrl(), questionId,examRecordId);
|
|
return HttpUtils.doGet(requestUrl, key, token);
|
|
return HttpUtils.doGet(requestUrl, key, token);
|
|
}
|
|
}
|
|
|
|
|
|
@@ -146,16 +147,16 @@ public class NetExamServiceImpl implements NetExamService {
|
|
}
|
|
}
|
|
|
|
|
|
@Override
|
|
@Override
|
|
- public Result submitPracticeExamRecord(String key, String token, String examRecordId) throws Exception {
|
|
|
|
|
|
+ public Result submitPracticeExamRecord(String key, String token) throws Exception {
|
|
//封装请求参数
|
|
//封装请求参数
|
|
- final String requestUrl = String.format("%s/api/exam_control/submit?examRecordId=%s", propertyService.getNetExamUrl(), examRecordId);
|
|
|
|
|
|
+ final String requestUrl = String.format("%s/api/ecs_oe_student/examControl/endExam", propertyService.getNetExamUrl());
|
|
return HttpUtils.doGet(requestUrl, key, token);
|
|
return HttpUtils.doGet(requestUrl, key, token);
|
|
}
|
|
}
|
|
|
|
|
|
@Override
|
|
@Override
|
|
public Result checkOnlineExamRecord(String key, String token) throws Exception {
|
|
public Result checkOnlineExamRecord(String key, String token) throws Exception {
|
|
//封装请求参数
|
|
//封装请求参数
|
|
- final String requestUrl = String.format("%s/api/exam_record/checkExam", propertyService.getNetExamUrl());
|
|
|
|
|
|
+ final String requestUrl = String.format("%s/api/ecs_oe_student/examControl/checkExamInProgress", propertyService.getNetExamUrl());
|
|
return HttpUtils.doGet(requestUrl, key, token);
|
|
return HttpUtils.doGet(requestUrl, key, token);
|
|
}
|
|
}
|
|
|
|
|
|
@@ -169,7 +170,7 @@ public class NetExamServiceImpl implements NetExamService {
|
|
@Override
|
|
@Override
|
|
public Result getExamRecordPracticeHistoryList(String key, String token, String examStudentId) throws Exception {
|
|
public Result getExamRecordPracticeHistoryList(String key, String token, String examStudentId) throws Exception {
|
|
//封装请求参数
|
|
//封装请求参数
|
|
- final String requestUrl = String.format("%s/api/practice_record?examStudentId=%s", propertyService.getNetExamUrl(), examStudentId);
|
|
|
|
|
|
+ final String requestUrl = String.format("%s/api/ecs_oe_student/practice/queryPracticeRecordList?examStudentId=%s", propertyService.getNetExamUrl(), examStudentId);
|
|
return HttpUtils.doGet(requestUrl, key, token);
|
|
return HttpUtils.doGet(requestUrl, key, token);
|
|
}
|
|
}
|
|
|
|
|