|
|
@@ -151,13 +151,17 @@ public class NotaryDomainImpl implements NotaryDomain {
|
|
|
return ResultCode.LIVE_VIDEO_INVALID;
|
|
|
}
|
|
|
//要做照片比对
|
|
|
- if (!compareImage(base, id, redisCount, count)) {
|
|
|
+ /*if (!compareImage(base, id, redisCount, count)) {
|
|
|
return ResultCode.LIVE_VIDEO_INVALID;
|
|
|
- }
|
|
|
+ }*/
|
|
|
+
|
|
|
+ ResultCode resultCode = compareImage(base, id, redisCount, count);
|
|
|
+
|
|
|
if (count != null) {
|
|
|
redis.del(redisCount);
|
|
|
}
|
|
|
- return ResultCode.SUCCESS;
|
|
|
+
|
|
|
+ return resultCode;
|
|
|
|
|
|
}
|
|
|
|
|
|
@@ -290,15 +294,18 @@ public class NotaryDomainImpl implements NotaryDomain {
|
|
|
if (!ObjectUtils.isEmpty(compareImageId)) {
|
|
|
id = compareImageId;
|
|
|
}
|
|
|
- if (!ObjectUtils.isEmpty(id)) {
|
|
|
- if (!compareImage(base, id, redisCount, count)) {
|
|
|
- return ResultCode.LIVE_VIDEO_INVALID;
|
|
|
- }
|
|
|
- }
|
|
|
+ //要做照片比对
|
|
|
+ /*if (!compareImage(base, id, redisCount, count)) {
|
|
|
+ return ResultCode.LIVE_VIDEO_INVALID;
|
|
|
+ }*/
|
|
|
+
|
|
|
+ ResultCode resultCode = compareImage(base, id, redisCount, count);
|
|
|
+
|
|
|
if (count != null) {
|
|
|
redis.del(redisCount);
|
|
|
}
|
|
|
- return ResultCode.SUCCESS;
|
|
|
+
|
|
|
+ return resultCode;
|
|
|
}
|
|
|
|
|
|
|