From 71a285f1d2bf7435265fdb52fd9b265c5a090bf4 Mon Sep 17 00:00:00 2001
From: libai <libai@yazhai.co>
Date: Tue, 22 Nov 2022 17:34:49 +0800
Subject: [PATCH] 测试

---
 mTest/room/liveRoom.html | 13 +++++++------
 1 file changed, 7 insertions(+), 6 deletions(-)

diff --git a/mTest/room/liveRoom.html b/mTest/room/liveRoom.html
index 2a5735e..b149334 100644
--- a/mTest/room/liveRoom.html
+++ b/mTest/room/liveRoom.html
@@ -577,8 +577,8 @@ $(function(){
     var dHeight=$(document).height()
     $(".touch-box").css("height",dHeight/2+"px")
     $(".touch-box").css("margin-top",-dHeight/5+"px")
-    var topRoomId
-    var BottomRoomId
+    var topRoomId=0
+    var BottomRoomId=0
     localStorage.canvasCode="phone"
     var giftMd5=null;
     var loadT=null;
@@ -1121,11 +1121,12 @@ $(function(){
                             BottomRoomId=list.roomId
                         }
                         
-                    }else{
-                        topRoomId=data.roomList[0].roomId
-                        BottomRoomId=data.roomList[1].roomId
                     }
                 }
+                if(topRoomId=0){
+                    topRoomId=data.roomList[0].roomId
+                    BottomRoomId=data.roomList[1].roomId
+                }
 
                 
             }
@@ -2307,7 +2308,7 @@ $(function(){
        
    })
     $(".touch-box").on("touchmove",function(e){
-        if(topRoomId==undefined)return;
+        if(topRoomId==0)return;
         if(touchOk==false)return;
         event.preventDefault()
         if(touchX==null){
--
libgit2 0.25.0