deason 2 yıl önce
ebeveyn
işleme
30f3e7aa2b

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

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