|
@@ -116,7 +116,7 @@ public class FaceServiceImpl implements FaceService {
|
|
|
request.setPhotoTreatyPath(pi.getRelativePath());
|
|
|
|
|
|
faceCloudService.saveStudentFace(request);
|
|
|
-
|
|
|
+
|
|
|
//操作日志
|
|
|
User accessUser = (User) ServletUtil.getRequest()
|
|
|
.getAttribute(HttpServletRequestAttribute.$_ACCESS_USER.name());
|
|
@@ -149,7 +149,7 @@ public class FaceServiceImpl implements FaceService {
|
|
|
|
|
|
if (times >= 3) {
|
|
|
LOG.error("添加faceToken至faceSet失败. info:{}", JsonUtil.toJson(info));
|
|
|
- return null;
|
|
|
+ throw new StatusException("620005", "人脸信息添加失败");
|
|
|
}
|
|
|
|
|
|
CloseableHttpClient httpClient = HttpClients.createDefault();
|
|
@@ -195,7 +195,7 @@ public class FaceServiceImpl implements FaceService {
|
|
|
times++;
|
|
|
} catch (Exception e) {
|
|
|
times++;
|
|
|
- LOG.error("添加faceToken接口异常. info:{} errCount:{} err:{}" + JsonUtil.toJson(info), times, e.getMessage());
|
|
|
+ LOG.error("添加faceToken接口异常. info:{} errCount:{} err:{}", JsonUtil.toJson(info), times, e.getMessage());
|
|
|
} finally {
|
|
|
HttpClientUtil.close(httpResponse);
|
|
|
}
|