Selaa lähdekoodia

提交极速游戏

lip 2 viikkoa sitten
vanhempi
sitoutus
471670af14
1 muutettua tiedostoa jossa 1 lisäystä ja 1 poistoa
  1. 1 1
      app/Models/JisuGameplay.php

+ 1 - 1
app/Models/JisuGameplay.php

@@ -8,7 +8,7 @@ class JisuGameplay extends BaseModel
     protected $fillable = [ 'game', 'game_en', 'gameplay', 'gameplay_en', 'number', 'number_en', 'odds','type','maxinum','mininum'];
     
     public static function getGame($type) {
-        $list = JisuGameplay::where('type',$type)->select()->toArray();
+        $list = JisuGameplay::where('type',$type)->get()->toArray();
         $tree = [];
         foreach($list as $item) {
             if (!isset($tree[$item['gameplay']])) {