mzx16822 6 년 전
부모
커밋
e1da5ddd44
1개의 변경된 파일2개의 추가작업 그리고 1개의 파일을 삭제
  1. 2 1
      public/h5/datigame/js/common.js

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

@@ -70,7 +70,8 @@ common={
    //          $("#py1_avatar").html('<img src="' + data.info.user.avatar+ '" class="layui-circle">');
    //          $("#py1_username").html(data.info.user.name + '(我)');
    //      }
-        if(data.info.user.user_id){
+   this.tips(data.info.user.name+"加入了房间")
+        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);