|
@@ -75,6 +75,9 @@ public class FaceServiceImpl implements FaceService {
|
|
|
if (StringUtils.isBlank(photoName)) {
|
|
|
throw new StatusException("B-680006", "photoName is null");
|
|
|
}
|
|
|
+ if (!photoName.matches("\\w+\\.\\w+")) {
|
|
|
+ throw new StatusException("B-680006", "photoName is wrong");
|
|
|
+ }
|
|
|
|
|
|
if (StringUtils.isBlank(photoName)) {
|
|
|
throw new StatusException("B-680007", "photoName is null");
|