mzx16822 6 anni fa
parent
commit
0fafc6a603
1 ha cambiato i file con 1 aggiunte e 1 eliminazioni
  1. 1 1
      resources/views/home/user.blade.php

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

@@ -243,8 +243,8 @@ function daoshu(argument) {
                   $(".cur_answer").addClass("cur_error");
                 }
               }else{
+                 var score = parseInt($("#py2_score").html());
                 if(data.is_true == 1){
-                  var score = parseInt($("#py2_score").html());
                   var s=score+300*(sum/10);
                   if(s<0)s=0;
                   $("#py2_score").html(s);