Explorar el Código

区分开考时、抓拍时人脸API开关

deason hace 2 años
padre
commit
9b8becb675

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

@@ -72,11 +72,11 @@ public class ExamCaptureQueueServiceImpl implements ExamCaptureQueueService {
         // 获取学校人脸API方案配置
         boolean useBaiduApi = false;
         Double baiduExpectFaceCompareScore = null;
-        OrgPropertyCacheBean property1 = CacheHelper.getOrgProperty(studentCache.getRootOrgId(), "FACE_API_PROVIDER");
+        OrgPropertyCacheBean property1 = CacheHelper.getOrgProperty(studentCache.getRootOrgId(), Constants.FACE_COMPARE_API_PROVIDER);
         if (FaceApiProvider.BAIDU.name().equals(property1.getValue())) {
             useBaiduApi = true;
         }
-        OrgPropertyCacheBean property2 = CacheHelper.getOrgProperty(studentCache.getRootOrgId(), "BAIDU_EXPECT_FACE_COMPARE_SCORE");
+        OrgPropertyCacheBean property2 = CacheHelper.getOrgProperty(studentCache.getRootOrgId(), Constants.BAIDU_EXPECT_FACE_COMPARE_SCORE);
         if (StringUtils.isNotEmpty(property2.getValue())) {
             baiduExpectFaceCompareScore = Double.parseDouble(property2.getValue());
         }