|
@@ -19,6 +19,7 @@ import cn.com.qmth.examcloud.app.model.Constants;
|
|
import cn.com.qmth.examcloud.app.model.GetYunSignatureReq;
|
|
import cn.com.qmth.examcloud.app.model.GetYunSignatureReq;
|
|
import cn.com.qmth.examcloud.app.model.Result;
|
|
import cn.com.qmth.examcloud.app.model.Result;
|
|
import cn.com.qmth.examcloud.app.service.CoreOeService;
|
|
import cn.com.qmth.examcloud.app.service.CoreOeService;
|
|
|
|
+import cn.com.qmth.examcloud.api.commons.enums.ExamType;
|
|
import cn.com.qmth.examcloud.app.core.SysProperty;
|
|
import cn.com.qmth.examcloud.app.core.SysProperty;
|
|
import okhttp3.FormBody;
|
|
import okhttp3.FormBody;
|
|
import okhttp3.FormBody.Builder;
|
|
import okhttp3.FormBody.Builder;
|
|
@@ -189,10 +190,13 @@ public class CoreOeServiceImpl implements CoreOeService {
|
|
if(bdata!=null) {
|
|
if(bdata!=null) {
|
|
Long examId=bdata.getLong("examId");
|
|
Long examId=bdata.getLong("examId");
|
|
if(examId!=null) {
|
|
if(examId!=null) {
|
|
- ExamPropertyCacheBean es=CacheHelper.getExamProperty(examId, ExamProperties.APP_EXAM_ENABLED.name());
|
|
|
|
- if(!"true".equals(es.getValue())) {
|
|
|
|
- ret.setCode(Constants.CODE_409);
|
|
|
|
- ret.setDesc(Constants.DESC_409);
|
|
|
|
|
|
+ ExamSettingsCacheBean exam=CacheHelper.getExamSettings(examId);
|
|
|
|
+ if(ExamType.ONLINE.name().equals(exam.getExamType())) {
|
|
|
|
+ ExamPropertyCacheBean es=CacheHelper.getExamProperty(examId, ExamProperties.APP_EXAM_ENABLED.name());
|
|
|
|
+ if(!"true".equals(es.getValue())) {
|
|
|
|
+ ret.setCode(Constants.CODE_409);
|
|
|
|
+ ret.setDesc(Constants.DESC_409);
|
|
|
|
+ }
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|