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