|
@@ -58,15 +58,15 @@ public class NetExamServiceImpl implements NetExamService {
|
|
|
|
|
|
@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/offline_exam/getOfflineCourse", propertyService.getNetExamUrl());
|
|
|
|
|
|
+ //封装请求参数
|
|
|
|
+ final String requestUrl = String.format("%s/api/ecs_oe_student/offlineExam/getOfflineCourse", propertyService.getNetExamUrl());
|
|
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/offline_exam/start?examStudentId=%s", propertyService.getNetExamUrl(), examStudentId);
|
|
|
|
|
|
+ //封装请求参数
|
|
|
|
+ final String requestUrl = String.format("%s/api/ecs_oe_student/offlineExam/startOfflineExam?examStudentId=%s", propertyService.getNetExamUrl(), examStudentId);
|
|
return HttpUtils.doGet(requestUrl, key, token);
|
|
return HttpUtils.doGet(requestUrl, key, token);
|
|
}
|
|
}
|
|
|
|
|
|
@@ -81,8 +81,8 @@ public class NetExamServiceImpl implements NetExamService {
|
|
if (fileBytes.length == 0) {
|
|
if (fileBytes.length == 0) {
|
|
throw new ApiException("File must be not empty.");
|
|
throw new ApiException("File must be not empty.");
|
|
}
|
|
}
|
|
- //封装请求参数
|
|
|
|
- final String requestUrl = String.format("%s/api/offline_exam/%s/submit", propertyService.getNetExamUrl(), examRecordId);
|
|
|
|
|
|
+ //封装请求参数
|
|
|
|
+ final String requestUrl = String.format("%s/api/ecs_oe_student/offlineExam/submitPaper?examRecordDataId=%s", propertyService.getNetExamUrl(), 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);
|