|
@@ -73,8 +73,11 @@ public class BackPolicyUtil {
|
|
|
String[] temp = backRate.split(":");
|
|
|
int backCount = Integer.parseInt(temp[0]);
|
|
|
int ignoreCount = Integer.parseInt(temp[1]);
|
|
|
+ if (ignoreCount == 0) {
|
|
|
+ return true;
|
|
|
+ }
|
|
|
int isBackCount = lastBackFunction.apply(backCount + ignoreCount - 1);
|
|
|
- return isBackCount >= backCount;
|
|
|
+ return isBackCount < backCount;
|
|
|
} else if (Objects.equals(backType, GameBackPolicy.POLICY_TYPE_RANDOM_RATE)) {
|
|
|
// 随机概率回传
|
|
|
return RandomUtils.nextInt(0, 100) <= Integer.parseInt(backRate);
|