mzx16822 преди 6 години
родител
ревизия
4b57df6d9b
променени са 1 файла, в които са добавени 1 реда и са изтрити 4 реда
  1. 1 4
      resources/views/home/user.blade.php

+ 1 - 4
resources/views/home/user.blade.php

@@ -283,10 +283,7 @@ layui.use(['form','jquery'], function(){
   //获取题目
   var getQuestion = function getQuestion(room_id, index) {
     var url = '/Home/Game/Question';
-    $.get(url, {room_id:room_id, cur_question:index},ajaxError:function(){
-      clearInterval(ts)
-      layer.msg("服务器繁忙!"); 
-    }, function(responsedata){
+    $.get(url, {room_id:room_id, cur_question:index}, function(responsedata){
       if(responsedata.code == 0){
        question_id= responsedata.info.question.question_id;
         $("#Jqtitle").html(responsedata.info.question.title );