|
@@ -204,8 +204,9 @@ public class FaceServiceImpl implements FaceService {
|
|
|
throw new StatusException("B-630001", "无可用的faceset");
|
|
|
}
|
|
|
|
|
|
- FacesetBean facesetBean = facesetBeanList
|
|
|
- .get(RandomUtils.nextInt(facesetBeanList.size() - 1));
|
|
|
+ int size = facesetBeanList.size();
|
|
|
+ int index = RandomUtils.nextInt(size);
|
|
|
+ FacesetBean facesetBean = facesetBeanList.get(index);
|
|
|
return facesetBean.getFacesetToken();
|
|
|
}
|
|
|
|