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