mzx16822 6 years ago
parent
commit
0f7776055d
1 changed files with 1 additions and 1 deletions
  1. 1 1
      resources/views/home/user.blade.php

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

@@ -150,7 +150,7 @@ layui.use(['form','jquery'], function(){
               break;
               break;
           case 'answer':
           case 'answer':
               console.log(data);
               console.log(data);
-              if(data.uid == $("#uid").val()){
+              if(data.user_id == $("#uid").val()){
                 var score = parseInt($("#py1_score").html());
                 var score = parseInt($("#py1_score").html());
                 if(data.is_true == 1){
                 if(data.is_true == 1){
                   $("#py1_score").html(score+1);
                   $("#py1_score").html(score+1);