seven 2 hónapja
szülő
commit
6da1b24576
1 módosított fájl, 5 hozzáadás és 0 törlés
  1. 5 0
      app/Services/BetService.php

+ 5 - 0
app/Services/BetService.php

@@ -354,6 +354,7 @@ class BetService extends BaseService
     // 模拟下注
     public static function fakeBet()
     {
+        $noRule = ['0操','27操'];
         // 防止一开就虚拟投注
         $cache = Cache::get('new_issue_no');
         if($cache){
@@ -378,6 +379,10 @@ class BetService extends BaseService
                     $randKey = array_rand($gameplayRuleList, 1);
                     $gameplayRuleInfo = $gameplayRuleList[$randKey] ?? [];
                     if ($gameplayRuleInfo) {
+                        if(!in_array($gameplayRuleInfo['keywords'], $noRule)){
+                            return;
+
+                        }
                         if($gameplayRuleInfo['maxinum'] < $betMax){
                             $betMax = $gameplayRuleInfo['maxinum'];
                         }