|
@@ -61,14 +61,14 @@ public class CoreOeServiceImpl implements CoreOeService {
|
|
@Override
|
|
@Override
|
|
public Result getOfflineExamCourseList(String key, String token) throws Exception {
|
|
public Result getOfflineExamCourseList(String key, String token) throws Exception {
|
|
//封装请求参数
|
|
//封装请求参数
|
|
- final String requestUrl = String.format("%s/api/ecs_oe_admin/offlineExam/getOfflineCourse", sysProperty.getCoreOeStudentUrl());
|
|
|
|
|
|
+ final String requestUrl = String.format("%s/api/ecs_oe_admin/offlineExam/getOfflineCourse", sysProperty.getCoreOeAdminUrl());
|
|
return HttpUtils.doGet(requestUrl, key, token);
|
|
return HttpUtils.doGet(requestUrl, key, token);
|
|
}
|
|
}
|
|
|
|
|
|
@Override
|
|
@Override
|
|
public Result startOfflineExamRecord(String key, String token, String examStudentId) throws Exception {
|
|
public Result startOfflineExamRecord(String key, String token, String examStudentId) throws Exception {
|
|
//封装请求参数
|
|
//封装请求参数
|
|
- final String requestUrl = String.format("%s/api/ecs_oe_admin/offlineExam/startOfflineExam?examStudentId=%s", sysProperty.getCoreOeStudentUrl(), examStudentId);
|
|
|
|
|
|
+ final String requestUrl = String.format("%s/api/ecs_oe_admin/offlineExam/startOfflineExam?examStudentId=%s", sysProperty.getCoreOeAdminUrl(), examStudentId);
|
|
return HttpUtils.doGet(requestUrl, key, token);
|
|
return HttpUtils.doGet(requestUrl, key, token);
|
|
}
|
|
}
|
|
|
|
|
|
@@ -84,7 +84,7 @@ public class CoreOeServiceImpl implements CoreOeService {
|
|
throw new ApiException("File must be not empty.");
|
|
throw new ApiException("File must be not empty.");
|
|
}
|
|
}
|
|
//封装请求参数
|
|
//封装请求参数
|
|
- final String requestUrl = String.format("%s/api/ecs_oe_admin/offlineExam/submitPaper?examRecordDataId=%s", sysProperty.getCoreOeStudentUrl(), examRecordId);
|
|
|
|
|
|
+ final String requestUrl = String.format("%s/api/ecs_oe_admin/offlineExam/submitPaper?examRecordDataId=%s", sysProperty.getCoreOeAdminUrl(), examRecordId);
|
|
MultipartBody.Builder form = new MultipartBody.Builder().setType(MultipartBody.FORM);
|
|
MultipartBody.Builder form = new MultipartBody.Builder().setType(MultipartBody.FORM);
|
|
RequestBody body = RequestBody.create(MediaType.parse("application/octet-stream"), fileBytes);
|
|
RequestBody body = RequestBody.create(MediaType.parse("application/octet-stream"), fileBytes);
|
|
form.addFormDataPart("file", fileName, body);
|
|
form.addFormDataPart("file", fileName, body);
|
|
@@ -96,7 +96,7 @@ public class CoreOeServiceImpl implements CoreOeService {
|
|
@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/ecs_oe_admin/practice/queryPracticeCourseList?examId=%s", sysProperty.getCoreOeStudentUrl(), examId);
|
|
|
|
|
|
+ final String requestUrl = String.format("%s/api/ecs_oe_admin/practice/queryPracticeCourseList?examId=%s", sysProperty.getCoreOeAdminUrl(), examId);
|
|
return HttpUtils.doGet(requestUrl, key, token);
|
|
return HttpUtils.doGet(requestUrl, key, token);
|
|
}
|
|
}
|
|
|
|
|
|
@@ -166,14 +166,14 @@ public class CoreOeServiceImpl implements CoreOeService {
|
|
@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/ecs_oe_admin/practice/queryPracticeRecordList?examStudentId=%s", sysProperty.getCoreOeStudentUrl(), examStudentId);
|
|
|
|
|
|
+ final String requestUrl = String.format("%s/api/ecs_oe_admin/practice/queryPracticeRecordList?examStudentId=%s", sysProperty.getCoreOeAdminUrl(), examStudentId);
|
|
return HttpUtils.doGet(requestUrl, key, token);
|
|
return HttpUtils.doGet(requestUrl, key, token);
|
|
}
|
|
}
|
|
|
|
|
|
@Override
|
|
@Override
|
|
public Result getExamRecordTotalInfo(String key, String token, String examRecordId) throws Exception {
|
|
public Result getExamRecordTotalInfo(String key, String token, String examRecordId) throws Exception {
|
|
//封装请求参数
|
|
//封装请求参数
|
|
- final String requestUrl = String.format("%s/api/ecs_oe_admin/practice/getPracticeDetailInfo?examRecordDataId=%s", sysProperty.getCoreOeStudentUrl(), examRecordId);
|
|
|
|
|
|
+ final String requestUrl = String.format("%s/api/ecs_oe_admin/practice/getPracticeDetailInfo?examRecordDataId=%s", sysProperty.getCoreOeAdminUrl(), examRecordId);
|
|
return HttpUtils.doGet(requestUrl, key, token);
|
|
return HttpUtils.doGet(requestUrl, key, token);
|
|
}
|
|
}
|
|
|
|
|