ソースを参照

更新问题错误问题

郑晓宇 6 年 前
コミット
658cb76512
共有1 個のファイルを変更した1 個の追加1 個の削除を含む
  1. 1 1
      app/Home/Controllers/GameController.php

+ 1 - 1
app/Home/Controllers/GameController.php

@@ -49,7 +49,7 @@ class GameController extends Controller
             $info['question'] = $question; 
             $info['options'] = $options; 
             $info['questions_count'] = count($questions) + 1; 
-            array_merge($questions, $info); 
+            $questions[] = $info;
             Redis::set($room_id . '_questions', json_encode($questions));
             $response['info'] = $info;
         }