seven hai 4 días
pai
achega
29d361029c
Modificáronse 1 ficheiros con 1 adicións e 2 borrados
  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));