This commit is contained in:
Daisy 2023-10-21 14:29:53 +08:00
commit dd7a428b1d
2 changed files with 6 additions and 5 deletions

View File

@ -40,7 +40,7 @@
</Testables>
</TestAction>
<LaunchAction
buildConfiguration = "Release"
buildConfiguration = "Debug"
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
launchStyle = "0"

View File

@ -337,10 +337,10 @@ class LockDetailLogic extends BaseGetXController{
//
Future<void> 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();
}