Explorar o código

更新答题错误

郑晓宇 %!s(int64=6) %!d(string=hai) anos
pai
achega
73630f3489
Modificáronse 1 ficheiros con 1 adicións e 3 borrados
  1. 1 3
      app/Home/Controllers/GameController.php

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

@@ -45,9 +45,7 @@ class GameController extends Controller
         }else{
             $questions_id = [];
             foreach ($questions as $k => $v) {
-                // $response['info'] = $v;
-                $questions_id[] = $v['question'];
-                $response['ext'] = $questions_id;
+                $questions_id[] = $v->question->question_id;
             }
             // $questions_id = array_column($questions, 'question_id');
             $question = Question::inRandomOrder()->select('question_id','title')->where("is_released",1)->whereNotIn("question_id", $questions_id)->first();