WANG 6 년 전
부모
커밋
4f16ca85f0

+ 1 - 4
examcloud-exchange-outer-service/src/main/java/cn/com/qmth/examcloud/exchange/outer/service/impl/FaceServiceImpl.java

@@ -6,7 +6,6 @@ import java.util.List;
 import java.util.Map;
 
 import org.apache.commons.collections.CollectionUtils;
-import org.apache.commons.lang.math.RandomUtils;
 import org.apache.http.HttpEntity;
 import org.apache.http.HttpStatus;
 import org.apache.http.client.methods.CloseableHttpResponse;
@@ -204,9 +203,7 @@ public class FaceServiceImpl implements FaceService {
 			throw new StatusException("B-630001", "无可用的faceset");
 		}
 
-		int size = facesetBeanList.size();
-		int index = RandomUtils.nextInt(size);
-		FacesetBean facesetBean = facesetBeanList.get(index);
+		FacesetBean facesetBean = facesetBeanList.get(0);
 		return facesetBean.getFacesetToken();
 	}