mzx16822 vor 6 Jahren
Ursprung
Commit
e90430be6d
1 geänderte Dateien mit 2 neuen und 2 gelöschten Zeilen
  1. 2 2
      public/h5/datigame/js/common.js

+ 2 - 2
public/h5/datigame/js/common.js

@@ -74,7 +74,7 @@ common={
         if(data.info.user.user_id!=this.userInfo.user_id){
         	 $("#py2_avatar").html('<img src="' + data.info.user.avatar+ '" class="layui-circle">');
             $("#py2_username").html(data.info.user.name);
-            _this.data.playerId=data.info.user.user_id;
+            _this.userInfo.playerId=data.info.user.user_id;
      }
  		 
  	},round_end:function(data){
@@ -135,7 +135,7 @@ common={
           case "answer":
           if(_this.userInfo.user_id==data.user_id){
           	_this.increment($("#py1_score"),data.score);
-          }else if(_this.data.playerId==data.user_id){
+          }else if(_this.userInfo.playerId==data.user_id){
           	_this.increment($("#py2_score"),data.score);
           }
           break;