|
@@ -50,7 +50,7 @@ public class CoreOeServiceImpl implements CoreOeService {
|
|
@Override
|
|
@Override
|
|
public Result getCurrentTime(String key, String token) throws Exception {
|
|
public Result getCurrentTime(String key, String token) throws Exception {
|
|
//封装请求参数
|
|
//封装请求参数
|
|
- final String requestUrl = String.format("%s/api/ecs_oe_student/examControl/currentTime", sysProperty.getCoreOeStudentUrl());
|
|
|
|
|
|
+ final String requestUrl = String.format("%s/api/ecs_oe_student/examControl/currentTime", sysProperty.getApiDomain());
|
|
Result<String> result = HttpUtils.doGet(requestUrl, key, token);
|
|
Result<String> result = HttpUtils.doGet(requestUrl, key, token);
|
|
if (result.isSuccess()) {
|
|
if (result.isSuccess()) {
|
|
//转换日期格式
|
|
//转换日期格式
|
|
@@ -62,14 +62,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/branch_ecs_oe_admin/offlineExam/getOfflineCourse", sysProperty.getCoreOeAdminUrl());
|
|
|
|
|
|
+ final String requestUrl = String.format("%s/api/branch_ecs_oe_admin/offlineExam/getOfflineCourse", sysProperty.getApiDomain());
|
|
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/branch_ecs_oe_admin/offlineExam/startOfflineExam?examStudentId=%s", sysProperty.getCoreOeAdminUrl(), examStudentId);
|
|
|
|
|
|
+ final String requestUrl = String.format("%s/api/branch_ecs_oe_admin/offlineExam/startOfflineExam?examStudentId=%s", sysProperty.getApiDomain(), examStudentId);
|
|
return HttpUtils.doGet(requestUrl, key, token);
|
|
return HttpUtils.doGet(requestUrl, key, token);
|
|
}
|
|
}
|
|
|
|
|
|
@@ -87,7 +87,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/branch_ecs_oe_admin/offlineExam/submitPaper?examRecordDataId=%s", sysProperty.getCoreOeAdminUrl(), examRecordId);
|
|
|
|
|
|
+ final String requestUrl = String.format("%s/api/branch_ecs_oe_admin/offlineExam/submitPaper?examRecordDataId=%s", sysProperty.getApiDomain(), 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);
|
|
@@ -99,21 +99,21 @@ 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/branch_ecs_oe_admin/practice/queryPracticeCourseList?examId=%s", sysProperty.getCoreOeAdminUrl(), examId);
|
|
|
|
|
|
+ final String requestUrl = String.format("%s/api/branch_ecs_oe_admin/practice/queryPracticeCourseList?examId=%s", sysProperty.getApiDomain(), examId);
|
|
return HttpUtils.doGet(requestUrl, key, token);
|
|
return HttpUtils.doGet(requestUrl, key, token);
|
|
}
|
|
}
|
|
|
|
|
|
@Override
|
|
@Override
|
|
public Result getExamRecordHeartbeat(String key, String token) throws Exception {
|
|
public Result getExamRecordHeartbeat(String key, String token) throws Exception {
|
|
//封装请求参数
|
|
//封装请求参数
|
|
- final String requestUrl = String.format("%s/api/ecs_oe_student/examControl/examHeartbeat", sysProperty.getCoreOeStudentUrl());
|
|
|
|
|
|
+ final String requestUrl = String.format("%s/api/ecs_oe_student/examControl/examHeartbeat", sysProperty.getApiDomain());
|
|
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/ecs_oe_student/examControl/startExam?examStudentId=%s", sysProperty.getCoreOeStudentUrl(), examStudentId);
|
|
|
|
|
|
+ final String requestUrl = String.format("%s/api/ecs_oe_student/examControl/startExam?examStudentId=%s", sysProperty.getApiDomain(), examStudentId);
|
|
return HttpUtils.doGet(requestUrl, key, token);
|
|
return HttpUtils.doGet(requestUrl, key, token);
|
|
}
|
|
}
|
|
|
|
|
|
@@ -122,37 +122,37 @@ public class CoreOeServiceImpl implements CoreOeService {
|
|
//封装请求参数
|
|
//封装请求参数
|
|
String requestUrl=null;
|
|
String requestUrl=null;
|
|
if("1".equals(fromCache)) {
|
|
if("1".equals(fromCache)) {
|
|
- requestUrl = String.format("%s/api/branch_ecs_oe_admin/examRecordPaperStruct/getExamRecordPaperStruct?fromCache=1&examRecordDataId=%s", sysProperty.getCoreOeAdminUrl(), examRecordId);
|
|
|
|
|
|
+ requestUrl = String.format("%s/api/branch_ecs_oe_admin/examRecordPaperStruct/getExamRecordPaperStruct?fromCache=1&examRecordDataId=%s", sysProperty.getApiDomain(), examRecordId);
|
|
}else {
|
|
}else {
|
|
- requestUrl = String.format("%s/api/branch_ecs_oe_admin/examRecordPaperStruct/getExamRecordPaperStruct?examRecordDataId=%s", sysProperty.getCoreOeAdminUrl(), examRecordId);
|
|
|
|
|
|
+ requestUrl = String.format("%s/api/branch_ecs_oe_admin/examRecordPaperStruct/getExamRecordPaperStruct?examRecordDataId=%s", sysProperty.getApiDomain(), examRecordId);
|
|
}
|
|
}
|
|
return HttpUtils.doGet(requestUrl, key, token);
|
|
return HttpUtils.doGet(requestUrl, key, token);
|
|
}
|
|
}
|
|
@Override
|
|
@Override
|
|
public Result getStudentExamPaperStructList(String key, String token, String examRecordId) throws Exception {
|
|
public Result getStudentExamPaperStructList(String key, String token, String examRecordId) throws Exception {
|
|
//封装请求参数
|
|
//封装请求参数
|
|
- String requestUrl = String.format("%s/api/ecs_oe_student/examRecordPaperStruct/getExamRecordPaperStruct?fromCache=1&examRecordDataId=%s", sysProperty.getCoreOeStudentUrl(), examRecordId);
|
|
|
|
|
|
+ String requestUrl = String.format("%s/api/ecs_oe_student/examRecordPaperStruct/getExamRecordPaperStruct?fromCache=1&examRecordDataId=%s", sysProperty.getApiDomain(), examRecordId);
|
|
return HttpUtils.doGet(requestUrl, key, token);
|
|
return HttpUtils.doGet(requestUrl, key, token);
|
|
}
|
|
}
|
|
|
|
|
|
@Override
|
|
@Override
|
|
public Result getExamRecordPaperQuestionList(String key, String token) throws Exception {
|
|
public Result getExamRecordPaperQuestionList(String key, String token) throws Exception {
|
|
//封装请求参数
|
|
//封装请求参数
|
|
- final String requestUrl = String.format("%s/api/ecs_oe_student/examQuestion/findExamQuestionList", sysProperty.getCoreOeStudentUrl());
|
|
|
|
|
|
+ final String requestUrl = String.format("%s/api/ecs_oe_student/examQuestion/findExamQuestionList", sysProperty.getApiDomain());
|
|
return HttpUtils.doGet(requestUrl, key, token);
|
|
return HttpUtils.doGet(requestUrl, key, token);
|
|
}
|
|
}
|
|
|
|
|
|
@Override
|
|
@Override
|
|
public Result getExamRecordPaperQuestionDetail(String key, String token, String questionId, String examRecordId) throws Exception {
|
|
public Result getExamRecordPaperQuestionDetail(String key, String token, String questionId, String examRecordId) throws Exception {
|
|
//封装请求参数
|
|
//封装请求参数
|
|
- final String requestUrl = String.format("%s/api/ecs_oe_student/examQuestion/getQuestionContent?questionId=%s&exam_record_id=%s", sysProperty.getCoreOeStudentUrl(), questionId, examRecordId);
|
|
|
|
|
|
+ final String requestUrl = String.format("%s/api/ecs_oe_student/examQuestion/getQuestionContent?questionId=%s&exam_record_id=%s", sysProperty.getApiDomain(), questionId, examRecordId);
|
|
return HttpUtils.doGet(requestUrl, key, token);
|
|
return HttpUtils.doGet(requestUrl, key, token);
|
|
}
|
|
}
|
|
|
|
|
|
@Override
|
|
@Override
|
|
public Result updateExamRecordPaperQuestionAnswer(String key, String token, Integer order, String studentAnswer,String audioPlayTimes) throws Exception {
|
|
public Result updateExamRecordPaperQuestionAnswer(String key, String token, Integer order, String studentAnswer,String audioPlayTimes) throws Exception {
|
|
//封装请求参数
|
|
//封装请求参数
|
|
- final String requestUrl = String.format("%s/api/ecs_oe_student/examQuestion/submitQuestionAnswer", sysProperty.getCoreOeStudentUrl());
|
|
|
|
|
|
+ final String requestUrl = String.format("%s/api/ecs_oe_student/examQuestion/submitQuestionAnswer", sysProperty.getApiDomain());
|
|
List<Map> paramsList = new ArrayList<Map>();
|
|
List<Map> paramsList = new ArrayList<Map>();
|
|
Map<String, Object> params = new HashMap<>();
|
|
Map<String, Object> params = new HashMap<>();
|
|
params.put("order", order);
|
|
params.put("order", order);
|
|
@@ -167,21 +167,21 @@ public class CoreOeServiceImpl implements CoreOeService {
|
|
@Override
|
|
@Override
|
|
public Result submitPracticeExamRecord(String key, String token) throws Exception {
|
|
public Result submitPracticeExamRecord(String key, String token) throws Exception {
|
|
//封装请求参数
|
|
//封装请求参数
|
|
- final String requestUrl = String.format("%s/api/ecs_oe_student/examControl/endExam", sysProperty.getCoreOeStudentUrl());
|
|
|
|
|
|
+ final String requestUrl = String.format("%s/api/ecs_oe_student/examControl/endExam", sysProperty.getApiDomain());
|
|
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/ecs_oe_student/examControl/checkExamInProgress", sysProperty.getCoreOeStudentUrl());
|
|
|
|
|
|
+ final String requestUrl = String.format("%s/api/ecs_oe_student/examControl/checkExamInProgress", sysProperty.getApiDomain());
|
|
return HttpUtils.doGet(requestUrl, key, token);
|
|
return HttpUtils.doGet(requestUrl, key, token);
|
|
}
|
|
}
|
|
|
|
|
|
@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/branch_ecs_oe_admin/practice/queryPracticeRecordList?examStudentId=%s", sysProperty.getCoreOeAdminUrl(), examStudentId);
|
|
|
|
|
|
+ final String requestUrl = String.format("%s/api/branch_ecs_oe_admin/practice/queryPracticeRecordList?examStudentId=%s", sysProperty.getApiDomain(), examStudentId);
|
|
return HttpUtils.doGet(requestUrl, key, token);
|
|
return HttpUtils.doGet(requestUrl, key, token);
|
|
}
|
|
}
|
|
|
|
|
|
@@ -190,9 +190,9 @@ public class CoreOeServiceImpl implements CoreOeService {
|
|
//封装请求参数
|
|
//封装请求参数
|
|
String requestUrl=null;
|
|
String requestUrl=null;
|
|
if("1".equals(fromCache)) {
|
|
if("1".equals(fromCache)) {
|
|
- requestUrl = String.format("%s/api/branch_ecs_oe_admin/practice/getPracticeDetailInfo?fromCache=1&examRecordDataId=%s", sysProperty.getCoreOeAdminUrl(), examRecordId);
|
|
|
|
|
|
+ requestUrl = String.format("%s/api/branch_ecs_oe_admin/practice/getPracticeDetailInfo?fromCache=1&examRecordDataId=%s", sysProperty.getApiDomain(), examRecordId);
|
|
}else {
|
|
}else {
|
|
- requestUrl = String.format("%s/api/branch_ecs_oe_admin/practice/getPracticeDetailInfo?examRecordDataId=%s", sysProperty.getCoreOeAdminUrl(), examRecordId);
|
|
|
|
|
|
+ requestUrl = String.format("%s/api/branch_ecs_oe_admin/practice/getPracticeDetailInfo?examRecordDataId=%s", sysProperty.getApiDomain(), examRecordId);
|
|
}
|
|
}
|
|
return HttpUtils.doGet(requestUrl, key, token);
|
|
return HttpUtils.doGet(requestUrl, key, token);
|
|
}
|
|
}
|
|
@@ -200,21 +200,21 @@ public class CoreOeServiceImpl implements CoreOeService {
|
|
@Override
|
|
@Override
|
|
public Result getExamRecordQuestionDetailList(String key, String token, String examRecordId) throws Exception {
|
|
public Result getExamRecordQuestionDetailList(String key, String token, String examRecordId) throws Exception {
|
|
//封装请求参数
|
|
//封装请求参数
|
|
- final String requestUrl = String.format("%s/api/ecs_oe/report/exam_detail_report/paper_question?exam_record_id=%s", sysProperty.getCoreOeStudentUrl(), examRecordId);
|
|
|
|
|
|
+ final String requestUrl = String.format("%s/api/ecs_oe/report/exam_detail_report/paper_question?exam_record_id=%s", sysProperty.getApiDomain(), examRecordId);
|
|
return HttpUtils.doGet(requestUrl, key, token);
|
|
return HttpUtils.doGet(requestUrl, key, token);
|
|
}
|
|
}
|
|
|
|
|
|
@Override
|
|
@Override
|
|
public Result getExamRecordQuestionAudioPlayTimes(String key, String token, String questionId) throws Exception {
|
|
public Result getExamRecordQuestionAudioPlayTimes(String key, String token, String questionId) throws Exception {
|
|
//封装请求参数
|
|
//封装请求参数
|
|
- final String requestUrl = String.format("%s/api/exam_question_playtimes?questionId=%s", sysProperty.getCoreOeStudentUrl(), questionId);
|
|
|
|
|
|
+ final String requestUrl = String.format("%s/api/exam_question_playtimes?questionId=%s", sysProperty.getApiDomain(), questionId);
|
|
return HttpUtils.doGet(requestUrl, key, token);
|
|
return HttpUtils.doGet(requestUrl, key, token);
|
|
}
|
|
}
|
|
|
|
|
|
@Override
|
|
@Override
|
|
public Result updateExamRecordQuestionAudioPlayTimes(String key, String token, String questionId, String mediaName) throws Exception {
|
|
public Result updateExamRecordQuestionAudioPlayTimes(String key, String token, String questionId, String mediaName) throws Exception {
|
|
//封装请求参数
|
|
//封装请求参数
|
|
- final String requestUrl = String.format("%s/api/exam_question_playtimes", sysProperty.getCoreOeStudentUrl());
|
|
|
|
|
|
+ final String requestUrl = String.format("%s/api/exam_question_playtimes", sysProperty.getApiDomain());
|
|
RequestBody formBody = new FormBody.Builder()
|
|
RequestBody formBody = new FormBody.Builder()
|
|
.add("questionId", questionId)
|
|
.add("questionId", questionId)
|
|
.add("mediaName", mediaName)
|
|
.add("mediaName", mediaName)
|
|
@@ -227,9 +227,9 @@ public class CoreOeServiceImpl implements CoreOeService {
|
|
//封装请求参数
|
|
//封装请求参数
|
|
String requestUrl=null;
|
|
String requestUrl=null;
|
|
if("1".equals(fromCache)) {
|
|
if("1".equals(fromCache)) {
|
|
- requestUrl = String.format("%s/api/branch_ecs_oe_admin/exam/record/data/findExamRecordDataEntity?fromCache=1&examRecordDataId=%s", sysProperty.getCoreOeAdminUrl(), examRecordDataId);
|
|
|
|
|
|
+ requestUrl = String.format("%s/api/branch_ecs_oe_admin/exam/record/data/findExamRecordDataEntity?fromCache=1&examRecordDataId=%s", sysProperty.getApiDomain(), examRecordDataId);
|
|
}else {
|
|
}else {
|
|
- requestUrl = String.format("%s/api/branch_ecs_oe_admin/exam/record/data/findExamRecordDataEntity?examRecordDataId=%s", sysProperty.getCoreOeAdminUrl(), examRecordDataId);
|
|
|
|
|
|
+ requestUrl = String.format("%s/api/branch_ecs_oe_admin/exam/record/data/findExamRecordDataEntity?examRecordDataId=%s", sysProperty.getApiDomain(), examRecordDataId);
|
|
}
|
|
}
|
|
Result<String> result = HttpUtils.doGet(requestUrl, key, token);
|
|
Result<String> result = HttpUtils.doGet(requestUrl, key, token);
|
|
if (result.isSuccess()) {
|
|
if (result.isSuccess()) {
|
|
@@ -244,9 +244,9 @@ public class CoreOeServiceImpl implements CoreOeService {
|
|
//封装请求参数
|
|
//封装请求参数
|
|
String requestUrl=null;
|
|
String requestUrl=null;
|
|
if("1".equals(fromCache)) {
|
|
if("1".equals(fromCache)) {
|
|
- requestUrl = String.format("%s/api/branch_ecs_oe_admin/examRecordQuestions/getExamRecordQuestions?fromCache=1&examRecordDataId=%s", sysProperty.getCoreOeAdminUrl(), examRecordDataId);
|
|
|
|
|
|
+ requestUrl = String.format("%s/api/branch_ecs_oe_admin/examRecordQuestions/getExamRecordQuestions?fromCache=1&examRecordDataId=%s", sysProperty.getApiDomain(), examRecordDataId);
|
|
}else {
|
|
}else {
|
|
- requestUrl = String.format("%s/api/branch_ecs_oe_admin/examRecordQuestions/getExamRecordQuestions?examRecordDataId=%s", sysProperty.getCoreOeAdminUrl(), examRecordDataId);
|
|
|
|
|
|
+ requestUrl = String.format("%s/api/branch_ecs_oe_admin/examRecordQuestions/getExamRecordQuestions?examRecordDataId=%s", sysProperty.getApiDomain(), examRecordDataId);
|
|
}
|
|
}
|
|
Result<String> result = HttpUtils.doGet(requestUrl, key, token);
|
|
Result<String> result = HttpUtils.doGet(requestUrl, key, token);
|
|
if (result.isSuccess()) {
|
|
if (result.isSuccess()) {
|
|
@@ -259,14 +259,14 @@ public class CoreOeServiceImpl implements CoreOeService {
|
|
@Override
|
|
@Override
|
|
public Result getExamPropertyFromCacheByStudentSession(String key, String token,Long examId,String keys) throws Exception {
|
|
public Result getExamPropertyFromCacheByStudentSession(String key, String token,Long examId,String keys) throws Exception {
|
|
//封装请求参数
|
|
//封装请求参数
|
|
- final String requestUrl = String.format("%s/api/ecs_exam_work/exam/getExamPropertyFromCacheByStudentSession/"+examId+"/"+keys, sysProperty.getCoreExamWorkUrl());
|
|
|
|
|
|
+ final String requestUrl = String.format("%s/api/ecs_exam_work/exam/getExamPropertyFromCacheByStudentSession/"+examId+"/"+keys, sysProperty.getApiDomain());
|
|
Result<String> result = HttpUtils.doGet(requestUrl, key, token);
|
|
Result<String> result = HttpUtils.doGet(requestUrl, key, token);
|
|
return result;
|
|
return result;
|
|
}
|
|
}
|
|
|
|
|
|
@Override
|
|
@Override
|
|
public Result getPaperById(String key, String token, String paperId) throws Exception {
|
|
public Result getPaperById(String key, String token, String paperId) throws Exception {
|
|
- final String requestUrl = String.format("%s/api/branch_ecs_ques/paper/"+paperId, sysProperty.getCoreQuestionUrl());
|
|
|
|
|
|
+ final String requestUrl = String.format("%s/api/branch_ecs_ques/paper/"+paperId, sysProperty.getApiDomain());
|
|
Result<String> result = HttpUtils.doGet(requestUrl, key, token);
|
|
Result<String> result = HttpUtils.doGet(requestUrl, key, token);
|
|
return result;
|
|
return result;
|
|
}
|
|
}
|
|
@@ -274,7 +274,7 @@ public class CoreOeServiceImpl implements CoreOeService {
|
|
@Override
|
|
@Override
|
|
public Result getYunSignature(String key, String token, GetYunSignatureReq req) throws Exception {
|
|
public Result getYunSignature(String key, String token, GetYunSignatureReq req) throws Exception {
|
|
//封装请求参数
|
|
//封装请求参数
|
|
- final String requestUrl = String.format("%s/api/ecs_oe_student/examControl/yunSignature", sysProperty.getCoreOeStudentUrl());
|
|
|
|
|
|
+ final String requestUrl = String.format("%s/api/ecs_oe_student/examControl/yunSignature", sysProperty.getApiDomain());
|
|
Builder b= new FormBody.Builder()
|
|
Builder b= new FormBody.Builder()
|
|
.add("examRecordDataId", req.getExamRecordDataId())
|
|
.add("examRecordDataId", req.getExamRecordDataId())
|
|
.add("order", req.getOrder())
|
|
.add("order", req.getOrder())
|
|
@@ -290,25 +290,25 @@ public class CoreOeServiceImpl implements CoreOeService {
|
|
|
|
|
|
@Override
|
|
@Override
|
|
public Result queryExamList(String key, String token) throws Exception {
|
|
public Result queryExamList(String key, String token) throws Exception {
|
|
- final String requestUrl = String.format("%s/api/branch_ecs_oe_admin/examControl/queryExamList", sysProperty.getCoreOeAdminUrl());
|
|
|
|
|
|
+ final String requestUrl = String.format("%s/api/branch_ecs_oe_admin/examControl/queryExamList", sysProperty.getApiDomain());
|
|
return HttpUtils.doGet(requestUrl, key, token);
|
|
return HttpUtils.doGet(requestUrl, key, token);
|
|
}
|
|
}
|
|
|
|
|
|
@Override
|
|
@Override
|
|
public Result getEndExamInfo(String key, String token, Long examRecordDataId) throws Exception {
|
|
public Result getEndExamInfo(String key, String token, Long examRecordDataId) throws Exception {
|
|
- final String requestUrl = String.format("%s/api/ecs_oe_student/examControl/getEndExamInfo?examRecordDataId="+examRecordDataId, sysProperty.getCoreOeStudentUrl());
|
|
|
|
|
|
+ final String requestUrl = String.format("%s/api/ecs_oe_student/examControl/getEndExamInfo?examRecordDataId="+examRecordDataId, sysProperty.getApiDomain());
|
|
return HttpUtils.doGet(requestUrl, key, token);
|
|
return HttpUtils.doGet(requestUrl, key, token);
|
|
}
|
|
}
|
|
|
|
|
|
@Override
|
|
@Override
|
|
public Result queryObjectiveScoreList(String key, String token, Long examStudentId) throws Exception {
|
|
public Result queryObjectiveScoreList(String key, String token, Long examStudentId) throws Exception {
|
|
- final String requestUrl = String.format("%s/api/branch_ecs_oe_admin/exam/score/queryObjectiveScoreList?examStudentId="+examStudentId, sysProperty.getCoreOeAdminUrl());
|
|
|
|
|
|
+ final String requestUrl = String.format("%s/api/branch_ecs_oe_admin/exam/score/queryObjectiveScoreList?examStudentId="+examStudentId, sysProperty.getApiDomain());
|
|
return HttpUtils.doGet(requestUrl, key, token);
|
|
return HttpUtils.doGet(requestUrl, key, token);
|
|
}
|
|
}
|
|
|
|
|
|
@Override
|
|
@Override
|
|
public Result startAnswer(String key, String token, Long examRecordDataId) throws Exception {
|
|
public Result startAnswer(String key, String token, Long examRecordDataId) throws Exception {
|
|
- final String requestUrl = String.format("%s/api/ecs_oe_student/examControl/startAnswer", sysProperty.getCoreOeStudentUrl());
|
|
|
|
|
|
+ final String requestUrl = String.format("%s/api/ecs_oe_student/examControl/startAnswer", sysProperty.getApiDomain());
|
|
RequestBody formBody = new FormBody.Builder()
|
|
RequestBody formBody = new FormBody.Builder()
|
|
.add("examRecordDataId", examRecordDataId.toString())
|
|
.add("examRecordDataId", examRecordDataId.toString())
|
|
.build();
|
|
.build();
|
|
@@ -324,7 +324,7 @@ public class CoreOeServiceImpl implements CoreOeService {
|
|
throw new ApiException("FileType must be zip,pdf,jpg,jpeg,png.");
|
|
throw new ApiException("FileType must be zip,pdf,jpg,jpeg,png.");
|
|
}
|
|
}
|
|
//封装请求参数
|
|
//封装请求参数
|
|
- final String requestUrl = String.format("%s/api/branch_ecs_oe_admin/offlineExam/batchSubmitPaper?examRecordDataId="+examRecordDataId+"&fileType="+fileType, sysProperty.getCoreOeAdminUrl());
|
|
|
|
|
|
+ final String requestUrl = String.format("%s/api/branch_ecs_oe_admin/offlineExam/batchSubmitPaper?examRecordDataId="+examRecordDataId+"&fileType="+fileType, sysProperty.getApiDomain());
|
|
MultipartBody.Builder form = new MultipartBody.Builder().setType(MultipartBody.FORM);
|
|
MultipartBody.Builder form = new MultipartBody.Builder().setType(MultipartBody.FORM);
|
|
for(MultipartFile file:fileArray) {
|
|
for(MultipartFile file:fileArray) {
|
|
RequestBody body = RequestBody.create(MediaType.parse("application/octet-stream"), file.getBytes());
|
|
RequestBody body = RequestBody.create(MediaType.parse("application/octet-stream"), file.getBytes());
|