Pārlūkot izejas kodu

Merge remote-tracking branch 'origin/dev' into dev

LiChengjin 2 mēneši atpakaļ
vecāks
revīzija
8e8bb1282a
1 mainītis faili ar 4 papildinājumiem un 5 dzēšanām
  1. 4 5
      mixins/bluetoothMixin.js

+ 4 - 5
mixins/bluetoothMixin.js

@@ -25,7 +25,6 @@ export const bluetooth = {
 			allowedOpenDoor: 2,
 			isOpeningDoor: false,
 			loadingContent: "初始化蓝牙中...",
-			hotelId: null,
 			openDoorInfo: {
 				gatewayDeviceId: "",
 				bluetoothDeviceId: "",
@@ -49,13 +48,13 @@ export const bluetooth = {
 			 */
 			const bluetoothLifeData = {
 				name: this.openDoorInfo.bluetoothName, // 蓝牙门锁名称
-				hotelId: this.hotelId,
+				hotelId: this.currentHotel.hotelId,
 				operationType: 1,
 				isBluetoothOpened: null, // 蓝牙开关是否打开
 				bluetoothConnected: false, // 蓝牙是否连接上
 				deviceId: null, // 进行连接时,蓝牙的deviceId。安卓可以计算出来,iOS需要扫描
-				serviceId: "0000FFF0-0000-1000-8000-00805F9B34FB", // 蓝牙交互服务的service的UUID
-				characteristicId: "0000FFF1-0000-1000-8000-00805F9B34FB", // 特征值的UUID
+				serviceId: "0000FFF0-0000-1000-8000-00805F9B34FB", // 蓝牙交互服务的service的UUID。苹果端支付宝侧有点特殊,下面进行了处理
+				characteristicId: "0000FFF1-0000-1000-8000-00805F9B34FB", // 特征值的UUID。苹果端支付宝侧有点特殊,下面进行了处理
 				initBluetoothAdapterTime: null, // 进行蓝牙初始化时的时间
 				startBluetoothDiscoveryTime: null, // 蓝牙初始化完成同时开始探索蓝牙  gap1蓝牙初始化
 				targetBluetoothFoundTime: null, // 目标蓝牙被找到,同时开始蓝牙的连接 gap2探索目标蓝牙
@@ -158,7 +157,7 @@ export const bluetooth = {
 			 */
 			const timeoutValue = {
 				findDevice: vueComponent.openDoorInfo.openDoorParam.androidScanTimeout ?
-					vueComponent.openDoorInfo.openDoorParam.androidScanTimeout : 10000, // 探索发现设备的超时时间
+					vueComponent.openDoorInfo.openDoorParam.androidScanTimeout : 6000, // 探索发现设备的超时时间
 				connectBLE: 5000, // 连接蓝牙的超时时间
 				requestSessionKey: 3000, // 请求秘钥的超时时间
 				openDoor: 4000, // 请求开门的超时时间