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