seven 4 dni temu
rodzic
commit
29d361029c
1 zmienionych plików z 1 dodań i 2 usunięć
  1. 1 2
      app/Services/GameplayRuleService.php

+ 1 - 2
app/Services/GameplayRuleService.php

@@ -183,8 +183,7 @@ class GameplayRuleService extends BaseService
     public static function validateInput($input)
     {
          // 获取所有玩法
-        $allRules = self::model()::pluck('keywords');
-        
+        $allRules = self::model()::pluck('keywords')->toArray();
 
         // 玩法正则(防止玩法里有特殊符号出错)
         $rulesPattern = implode('|', array_map('preg_quote', $allRules));