seven 2 miesięcy temu
rodzic
commit
e2836d3d15
1 zmienionych plików z 7 dodań i 0 usunięć
  1. 7 0
      app/Services/BetService.php

+ 7 - 0
app/Services/BetService.php

@@ -378,6 +378,13 @@ class BetService extends BaseService
                     $randKey = array_rand($gameplayRuleList, 1);
                     $gameplayRuleInfo = $gameplayRuleList[$randKey] ?? [];
                     if ($gameplayRuleInfo) {
+                        if($gameplayRuleInfo['maxinum'] < $betMax){
+                            $betMax = $gameplayRuleInfo['maxinum'];
+                        }
+                        if($gameplayRuleInfo['mininum'] > $betMini){
+                            $betMini = $gameplayRuleInfo['mininum'];
+                        }
+
                         $amount = rand($betMini, $betMax);
                         $amount = floor($amount / 10) * 10;
                         $input = $gameplayRuleInfo['keywords'] . $amount;