diff --git a/star_lock/ios/Runner.xcodeproj/xcshareddata/xcschemes/Runner.xcscheme b/star_lock/ios/Runner.xcodeproj/xcshareddata/xcschemes/Runner.xcscheme index f3d88ace..c87d15a3 100644 --- a/star_lock/ios/Runner.xcodeproj/xcshareddata/xcschemes/Runner.xcscheme +++ b/star_lock/ios/Runner.xcodeproj/xcshareddata/xcschemes/Runner.xcscheme @@ -40,7 +40,7 @@ openDoorAction() async { - if(BlueManage().connectDeviceMacAddress.isEmpty){ - Toast.show(msg: "正在连接设备,请稍等。"); - return; - } + // if(BlueManage().connectDeviceMacAddress.isEmpty){ + // Toast.show(msg: "正在连接设备,请稍等。"); + // return; + // } BlueManage().judgeReconnect(BlueManage().connectDeviceMacAddress, state.keyInfos.value.bluetooth!.bluetoothDeviceName!, (DeviceConnectionState state) async { if (state == DeviceConnectionState.connected){ var privateKey = await Storage.getStringList(saveBluePrivateKey); @@ -455,6 +455,7 @@ class LockDetailLogic extends BaseGetXController{ if(state.lockState.value == 1){ stopConnect(); state.lockState.value = 4; + Toast.show(msg: "连接设备失败,请确保在设备附近,设备未被连接,设备已打开"); state.animationController.reset(); state.animationController.forward(); }