WANG пре 6 година
родитељ
комит
5ac5b0e7db

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

@@ -3,7 +3,6 @@ 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;
 
@@ -19,7 +18,6 @@ import org.springframework.stereotype.Service;
 import com.google.common.collect.Lists;
 
 import cn.com.qmth.examcloud.commons.base.exception.StatusException;
-import cn.com.qmth.examcloud.commons.base.util.UrlUtil;
 import cn.com.qmth.examcloud.core.basic.dao.FacesetRepo;
 import cn.com.qmth.examcloud.core.basic.dao.StudentFaceRepo;
 import cn.com.qmth.examcloud.core.basic.dao.StudentRepo;
@@ -97,15 +95,12 @@ public class FaceServiceImpl implements FaceService {
 			throw new StatusException("B-680010", "studentId,rootOrgId is not matched");
 		}
 
-		String identityNumber = studentEntity.getIdentityNumber();
-
 		FacesetEntity facesetEntity = facesetRepo.findByFacesetToken(facesetToken);
 		if (null == facesetEntity) {
 			throw new StatusException("B-680011", "facesetEntity is null");
 		}
 
-		String photoPath = rootOrgId + "/" + UrlUtil.encode(identityNumber).toUpperCase(Locale.US)
-				+ "/" + photoName;
+		String photoPath = rootOrgId + "/" + studentId + "/" + photoName;
 		studentEntity.setPhotoPath(photoPath);
 
 		StudentFaceEntity studentFaceEntity = studentFaceRepo.findOne(studentId);