瀏覽代碼

更新问题错误问题

郑晓宇 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;
         }