|
@@ -31,7 +31,6 @@ import cn.com.qmth.examcloud.support.redis.RedisKeyHelper;
|
|
|
import cn.com.qmth.examcloud.web.bootstrap.PropertyHolder;
|
|
|
import cn.com.qmth.examcloud.web.helpers.GlobalHelper;
|
|
|
import cn.com.qmth.examcloud.web.redis.RedisClient;
|
|
|
-
|
|
|
import com.google.common.collect.Lists;
|
|
|
import com.mysql.cj.util.StringUtils;
|
|
|
import org.apache.commons.lang3.RandomUtils;
|
|
@@ -156,6 +155,12 @@ public class FaceBiopsyServiceImpl implements FaceBiopsyService {
|
|
|
throw new StatusException("201010", "找不到相关考试记录数据");
|
|
|
}
|
|
|
examRecordData.setFaceVerifyResult(resp.getVerifyResult() ? IsSuccess.SUCCESS : IsSuccess.FAILED);
|
|
|
+
|
|
|
+ //活检失败,则认为违纪
|
|
|
+ if (!resp.getVerifyResult()) {
|
|
|
+ examRecordData.setIsIllegality(true);
|
|
|
+ }
|
|
|
+
|
|
|
examRecordDataService.saveExamRecordDataCache(req.getExamRecordDataId(), examRecordData);
|
|
|
|
|
|
return resp;
|