deason há 2 anos atrás
pai
commit
df6bf22421

+ 2 - 2
examcloud-core-oe-student-service/src/main/java/cn/com/qmth/examcloud/core/oe/student/service/impl/ExamCaptureServiceImpl.java

@@ -178,11 +178,11 @@ public class ExamCaptureServiceImpl implements ExamCaptureService {
         boolean useBaiduApi = false;
         Double baiduExpectFaceCompareScore = null;
         OrgPropertyCacheBean property1 = CacheHelper.getOrgProperty(student.getRootOrgId(), Constants.FACE_VERIFY_API_PROVIDER);
-        if (FaceApiProvider.BAIDU.name().equals(property1.getValue())) {
+        if (property1.getHasValue() && FaceApiProvider.BAIDU.name().equals(property1.getValue())) {
             useBaiduApi = true;
         }
         OrgPropertyCacheBean property2 = CacheHelper.getOrgProperty(student.getRootOrgId(), Constants.BAIDU_EXPECT_FACE_COMPARE_SCORE);
-        if (StringUtils.isNotEmpty(property2.getValue())) {
+        if (property2.getHasValue() && StringUtils.isNotEmpty(property2.getValue())) {
             baiduExpectFaceCompareScore = Double.parseDouble(property2.getValue());
         }