Merge branch 'master' of https://gitee.com/weishaoyang/star_lock
This commit is contained in:
commit
dd7a428b1d
@ -40,7 +40,7 @@
|
||||
</Testables>
|
||||
</TestAction>
|
||||
<LaunchAction
|
||||
buildConfiguration = "Release"
|
||||
buildConfiguration = "Debug"
|
||||
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
|
||||
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
|
||||
launchStyle = "0"
|
||||
|
||||
@ -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();
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user