郑晓宇 6 years ago
parent
commit
12a0c95733
1 changed files with 1 additions and 0 deletions
  1. 1 0
      app/Home/Controllers/GameController.php

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

@@ -57,6 +57,7 @@ class GameController extends Controller
             $start_at = RoomQuestion::where(["question_id" => $question_id, "room_id" => $room_id])->value('start_at');
             $answer_diff = $answer_time - strtotime($start_at);
             if($request->input('anwser_time')){
+                $anwser_time = (int) $request->input('anwser_time');
                 $answer_diff = abs(10 - $anwser_time);
             }
             switch ($answer_diff) {