|
@@ -82,6 +82,10 @@ public class FaceServiceImpl implements FaceService {
|
|
if (!photoName.matches("\\w+\\.\\w+")) {
|
|
if (!photoName.matches("\\w+\\.\\w+")) {
|
|
throw new StatusException("680006", "photoName is wrong");
|
|
throw new StatusException("680006", "photoName is wrong");
|
|
}
|
|
}
|
|
|
|
+
|
|
|
|
+ if (StringUtils.isBlank(photoName)) {
|
|
|
|
+ throw new StatusException("680015", "photoTreatyPath is null");
|
|
|
|
+ }
|
|
|
|
|
|
if (null == faceCount) {
|
|
if (null == faceCount) {
|
|
throw new StatusException("680008", "faceCount is null");
|
|
throw new StatusException("680008", "faceCount is null");
|
|
@@ -106,7 +110,8 @@ public class FaceServiceImpl implements FaceService {
|
|
throw new StatusException("680011", "facesetEntity is null");
|
|
throw new StatusException("680011", "facesetEntity is null");
|
|
}
|
|
}
|
|
|
|
|
|
- String photoPath = rootOrgId + "/" + studentId + "/" + photoName;
|
|
|
|
|
|
+// String photoPath = rootOrgId + "/" + studentId + "/" + photoName;
|
|
|
|
+ String photoPath =info.getPhotoTreatyPath();
|
|
studentEntity.setPhotoPath(photoPath);
|
|
studentEntity.setPhotoPath(photoPath);
|
|
|
|
|
|
StudentFaceEntity studentFaceEntity = GlobalHelper.getEntity(studentFaceRepo, studentId,
|
|
StudentFaceEntity studentFaceEntity = GlobalHelper.getEntity(studentFaceRepo, studentId,
|