lideyin 5 年之前
父节点
当前提交
cb536249b8

+ 6 - 1
examcloud-core-oe-student-service/src/main/java/cn/com/qmth/examcloud/core/oe/student/service/impl/FaceBiopsyServiceImpl.java

@@ -186,12 +186,17 @@ public class FaceBiopsyServiceImpl implements FaceBiopsyService {
             throw new StatusException("201005", "检测结果不允许为空");
         }
         for (FaceBiopsyStepInfo stepInfo : verifySteps) {
+            //如果检测结果为空,则直接跳过
+            if (stepInfo.getResult() == null) {
+                continue;
+            }
+
             if (!stepInfo.getResult()) {
                 errorMsg = stepInfo.getErrorMsg();
             }
 
             //整个检测步骤中只要有一次失败,则认为整个活检失败
-            if (null != stepInfo.getResult() && !stepInfo.getResult()) {
+            if (!stepInfo.getResult()) {
                 finalIsSuccess = false;
             }