xiongzhu il y a 3 ans
Parent
commit
2223c2c9a8

+ 3 - 1
src/main/java/com/izouma/nineth/service/CollectionService.java

@@ -420,7 +420,9 @@ public class CollectionService {
             retry++;
             if (userId == 3453161L || userId == 7194L || userId == 134613L) {
                 winItem = items.stream().filter(i -> i.getName().contains("SSR") && i.getStock() > 0).findFirst().orElse(null);
-                continue;
+                if (winItem != null) {
+                    continue;
+                }
             }
             int rand = RandomUtils.nextInt(0, sum + 1);
             for (Map.Entry<BlindBoxItem, Range<Integer>> entry : randomRange.entrySet()) {