seven 2 月之前
父節點
當前提交
e2836d3d15
共有 1 個文件被更改,包括 7 次插入0 次删除
  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;