wangwei 6 vuotta sitten
vanhempi
commit
c943f41a88

+ 3 - 1
examcloud-core-basic-service/src/main/java/cn/com/qmth/examcloud/core/basic/service/impl/FaceServiceImpl.java

@@ -3,6 +3,7 @@ package cn.com.qmth.examcloud.core.basic.service.impl;
 import java.util.ArrayList;
 import java.util.Iterator;
 import java.util.List;
+import java.util.Locale;
 
 import javax.persistence.criteria.Predicate;
 
@@ -103,7 +104,8 @@ public class FaceServiceImpl implements FaceService {
 			throw new StatusException("B-680011", "facesetEntity is null");
 		}
 
-		String photoPath = rootOrgId + "/" + UrlUtil.encode(identityNumber) + "/" + photoName;
+		String photoPath = rootOrgId + "/" + UrlUtil.encode(identityNumber).toUpperCase(Locale.US)
+				+ "/" + photoName;
 		studentEntity.setPhotoPath(photoPath);
 
 		StudentFaceEntity studentFaceEntity = studentFaceRepo.findOne(studentId);