deason před 5 roky
rodič
revize
122a6fb4a0

+ 2 - 1
src/main/java/cn/com/qmth/examcloud/app/service/impl/CoreAuthServiceImpl.java

@@ -16,6 +16,7 @@ import cn.com.qmth.examcloud.app.core.utils.ThreadUtils;
 import cn.com.qmth.examcloud.app.model.*;
 import cn.com.qmth.examcloud.app.service.CoreAuthService;
 import cn.com.qmth.examcloud.app.service.RedisService;
+import cn.com.qmth.examcloud.commons.exception.StatusException;
 import okhttp3.*;
 import org.apache.commons.lang3.StringUtils;
 import org.slf4j.Logger;
@@ -83,7 +84,7 @@ public class CoreAuthServiceImpl implements CoreAuthService {
         } catch (Exception e) {
             log.error(e.getMessage(), e);
         }
-        return false;
+        throw new StatusException("500", "考试状态检查异常!");
     }
 
     @Override