1.更新消息阅读时间
2.修复配置wifi时wifi名称存在空格时配置失败 3.修复门店体验列表刷新失败
This commit is contained in:
@@ -508,9 +508,10 @@ class _DeviceComponentWidgetState extends State<DeviceComponentWidget> {
|
||||
const int maxRetries = 2;
|
||||
const Duration timeout = Duration(seconds: 5);
|
||||
String? macAddress;
|
||||
THapp bledevice = THapp(device: device.scanResult.device);
|
||||
try {
|
||||
// 连接设备
|
||||
THapp bledevice = THapp(device: device.scanResult.device);
|
||||
|
||||
await bledevice.connect();
|
||||
var res2 = bledevice.isConnected;
|
||||
if (!res2) {
|
||||
@@ -545,6 +546,7 @@ class _DeviceComponentWidgetState extends State<DeviceComponentWidget> {
|
||||
print('MAC地址: $macAddress');
|
||||
return macAddress;
|
||||
} catch (e) {
|
||||
bledevice.disconnect();
|
||||
blueteethBindController.currentDeviceMac.value = "";
|
||||
edm.EasyDartModule.logger.error("蓝牙获取MAC失败:$e");
|
||||
DailyLogUtils.printLog("蓝牙获取MAC失败:$e");
|
||||
|
||||
@@ -870,6 +870,8 @@ class _MHTPeopleInfoPageState extends State<MHTPeopleInfoPage> {
|
||||
stringToColor("#84F5FF"),
|
||||
selectedCityColor:
|
||||
stringToColor("#84F5FF"),
|
||||
selectedTextColor:
|
||||
stringToColor("#011D33"),
|
||||
),
|
||||
);
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user