|
@@ -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();
|
|
|
}
|
|
|
|