diff --git a/lib/main/lockDetail/lockDetail/lockDetail_page.dart b/lib/main/lockDetail/lockDetail/lockDetail_page.dart index 91cd15a5..5e5a253c 100755 --- a/lib/main/lockDetail/lockDetail/lockDetail_page.dart +++ b/lib/main/lockDetail/lockDetail/lockDetail_page.dart @@ -1584,11 +1584,12 @@ class _LockDetailPageState extends State if (mac != null && mac.isNotEmpty) { final DeviceNetwork deviceNetworkInfo = await ApiRepository.to .getDeviceNetwork(deviceType: 2, deviceMac: mac); - if (deviceNetworkInfo.data?.wifiName == null) { + if (deviceNetworkInfo.data?.wifiName == null || + deviceNetworkInfo.data?.wifiName == '') { return; } else { final peerId = deviceNetworkInfo?.data?.peerId; - if (peerId == null || peerId.isEmpty) { + if (peerId == null || peerId.isEmpty || peerId == '') { throw Exception('设备peerId为空'); } // 设置锁的peerID diff --git a/lib/network/api_provider.dart b/lib/network/api_provider.dart index e31b9522..855df195 100755 --- a/lib/network/api_provider.dart +++ b/lib/network/api_provider.dart @@ -2747,6 +2747,7 @@ class ApiProvider extends BaseProvider { 'deviceMac': deviceMac, }), isShowNetworkErrorMsg: false, + isShowErrMsg: false, isUnShowLoading: true); }