Explorar o código

Merge branch 'master' of http://192.168.32.253:3000/Software/android-cloud-H5

heyang %!s(int64=4) %!d(string=hai) anos
pai
achega
8059b27632
Modificáronse 2 ficheiros con 22 adicións e 2 borrados
  1. 4 2
      screenAndroid/WXtrialInterface.html
  2. 18 0
      screenIos/WXtrialInterface.html

+ 4 - 2
screenAndroid/WXtrialInterface.html

@@ -347,11 +347,13 @@
 					var state = CheckScreenDirection(input.slice(24, 24 + 8));
 
 					if (state == 1) {
-						//竖屏处理
 						console.log("安卓卡此时竖屏");
+						//竖屏处理
+						resolving = 0;
 					} else {
-						//横屏处理
 						console.log("安卓卡此时横屏");
+						//横屏处理
+						resolving = 1;
 					}
 				}
 				if (input[23] == 0x0b) {

+ 18 - 0
screenIos/WXtrialInterface.html

@@ -472,6 +472,24 @@
 			if (input[0] == 0 && input[1] == 0 && input[2] == 0 && input[3] == 1) {
 				decodeWoker.postMessage(event.data);
 			}
+			if (input[0] == 0x68) {
+				if (input[23] == 0x05) { //横竖屏标识
+					var state = CheckScreenDirection(input.slice(24, 24 + 8));
+
+					if (state == 1) {
+						console.log("安卓卡此时竖屏");
+						//竖屏处理
+						resolving = 0;
+					} else {
+						console.log("安卓卡此时横屏");
+						//横屏处理
+						resolving = 1;
+					}
+				}
+				if (input[23] == 0x0b) {
+					console.log("多端登陆");
+				}
+			}
 			if (event.data === 'close') {
 				webSocketWorker.postMessage('restart');
 			}