huangxiaojing 3 years ago
parent
commit
4633b064c3
2 changed files with 4 additions and 0 deletions
  1. 3 0
      screenAndroid/WXdraw.js
  2. 1 0
      screenAndroid/WXtrialInterface.html

+ 3 - 0
screenAndroid/WXdraw.js

@@ -188,6 +188,7 @@ var draw_graph = function (graphType, obj) {
     var ping = resolving == 0 ?
       { "data": { "action": 0, "count": ongoingTouches.length, "id": touchfor.identifier, "x": acrossWidthX.toFixed(2), "y": acrossHeightY.toFixed(2) }, "type": "event" } :
       { "data": { "action": 0, "count": ongoingTouches.length, "id": touchfor.identifier, "x": verticalWidthX.toFixed(2), "y": verticalHeightY.toFixed(2) }, "type": "event" };
+      console.log(ping);
     wsss.send(JSON.stringify(ping));
     canDraw = true;
   };
@@ -203,6 +204,7 @@ var draw_graph = function (graphType, obj) {
     var ping = resolving == 0 ?
       { "data": { "action": 1, "count": ongoingTouches.length, "id": touchfor.identifier, "x": acrossWidthX.toFixed(2), "y": acrossHeightY.toFixed(2) }, "type": "event" } :
       { "data": { "action": 1, "count": ongoingTouches.length, "id": touchfor.identifier, "x": verticalWidthX.toFixed(2), "y": verticalHeightY.toFixed(2) }, "type": "event" };
+      console.log(ping);
     wsss.send(JSON.stringify(ping));
     ongoingTouches.splice(touchfor.identifier, 1);
     canDraw = false;
@@ -224,6 +226,7 @@ var draw_graph = function (graphType, obj) {
     var ping = resolving == 0 ?
       { "data": { "action": 2, "count": ongoingTouches.length, "id": touchfor.identifier, "x": acrossWidthX.toFixed(2), "y": acrossHeightY.toFixed(2) }, "type": "event" } :
       { "data": { "action": 2, "count": ongoingTouches.length, "id": touchfor.identifier, "x": verticalWidthX.toFixed(2), "y": verticalHeightY.toFixed(2) }, "type": "event" };
+      console.log(ping);
     wsss.send(JSON.stringify(ping));
   };
 

+ 1 - 0
screenAndroid/WXtrialInterface.html

@@ -114,6 +114,7 @@
   <script type="text/javascript" src="WXdraw.js?v=110"></script>
   <script type="text/javascript" src="jmuxer.js"></script>
   <script>
+    new VConsole();
     var isAudioPlay = false;
 		if(navigator.userAgent.toLowerCase().includes('toutiaomicroapp')){
 			var video = document.getElementById("playerVideo");