|
@@ -274,18 +274,19 @@ public class OrgServiceImpl implements OrgService {
|
|
|
public void saveOrgProperties(Long orgId, Map<String, String> properties) {
|
|
|
if (MapUtils.isNotEmpty(properties)) {
|
|
|
String clientEnabled = properties.get("PC_CLIENT_ENABLED");
|
|
|
- String faceType = properties.get("IDENTIFICATION_OF_LIVING_BODY_SCHEME");
|
|
|
-
|
|
|
- // 校验客户端所选的活体方案
|
|
|
- if ("true".equalsIgnoreCase(clientEnabled)) {
|
|
|
- if (!FaceBiopsyScheme.FACE_CLIENT.getCode().equals(faceType)) {
|
|
|
- log.warn("PC_CLIENT_ENABLED = " + clientEnabled + ", faceType = " + faceType);
|
|
|
- throw new StatusException("请选择可用的活体检测方案");
|
|
|
- }
|
|
|
- } else {
|
|
|
- if (FaceBiopsyScheme.FACE_CLIENT.getCode().equals(faceType)) {
|
|
|
- log.warn("PC_CLIENT_ENABLED = " + clientEnabled + ", faceType = " + faceType);
|
|
|
- throw new StatusException("请选择可用的活体检测方案");
|
|
|
+ if (StringUtils.isNotEmpty(clientEnabled)) {
|
|
|
+ // 校验客户端所选的活体方案
|
|
|
+ String faceType = properties.get("IDENTIFICATION_OF_LIVING_BODY_SCHEME");
|
|
|
+ log.info("PC_CLIENT_ENABLED = {}, faceType = {}", clientEnabled, faceType);
|
|
|
+
|
|
|
+ if ("true".equalsIgnoreCase(clientEnabled)) {
|
|
|
+ if (!FaceBiopsyScheme.FACE_CLIENT.getCode().equals(faceType)) {
|
|
|
+ throw new StatusException("请选择可用的活体检测方案");
|
|
|
+ }
|
|
|
+ } else {
|
|
|
+ if (FaceBiopsyScheme.FACE_CLIENT.getCode().equals(faceType)) {
|
|
|
+ throw new StatusException("请选择可用的活体检测方案");
|
|
|
+ }
|
|
|
}
|
|
|
}
|
|
|
}
|