|
@@ -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());
|
|
|
}
|