From a8414d187664a444129fdd81e4c154437952e27c Mon Sep 17 00:00:00 2001 From: anfe <448468458@qq.com> Date: Mon, 8 Jul 2024 17:25:26 +0800 Subject: [PATCH] =?UTF-8?q?fix:=E4=BF=AE=E5=A4=8D=E9=94=81=E5=8D=87?= =?UTF-8?q?=E7=BA=A7=E5=9B=A0=E4=B8=BA=E4=B8=8D=E5=85=BC=E5=AE=B9=E9=97=AE?= =?UTF-8?q?=E9=A2=98=EF=BC=8C=E5=AF=BC=E8=87=B4=E6=97=A0=E6=B3=95=E5=8D=87?= =?UTF-8?q?=E7=BA=A7=E3=80=82=E6=8F=90=E9=AB=98=E4=BA=86=E5=AF=B9=20?= =?UTF-8?q?=E5=9B=BA=E4=BB=B6=20json=20=E7=BB=93=E6=9E=84=E7=9A=84?= =?UTF-8?q?=E8=A7=A3=E6=9E=90?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../lockSet/lockEscalation/lockEscalation_logic.dart | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/main/lockDetail/lockSet/lockEscalation/lockEscalation_logic.dart b/lib/main/lockDetail/lockSet/lockEscalation/lockEscalation_logic.dart index 47e04211..63c8a0a5 100755 --- a/lib/main/lockDetail/lockSet/lockEscalation/lockEscalation_logic.dart +++ b/lib/main/lockDetail/lockSet/lockEscalation/lockEscalation_logic.dart @@ -76,7 +76,7 @@ class LockEscalationLogic extends BaseGetXController { } //蓝牙操作 ota 升级 - void blueOTAUpgrade(Map data, List token) { + void blueOTAUpgrade(Map data, List token) { BlueManage().blueSendData(BlueManage().connectDeviceName, (BluetoothConnectionState deviceConnectionState) async { if (deviceConnectionState == BluetoothConnectionState.connected) { @@ -92,8 +92,8 @@ class LockEscalationLogic extends BaseGetXController { lockID: BlueManage().connectDeviceName, userID: uid, keyID: BlueManage().connectDeviceName, - platform: int.tryParse(data['platform']) ?? 0, - product: int.tryParse(data['product']) ?? 0, + platform: int.tryParse(data['platform'] ?? '0'), + product: int.tryParse(data['product'] ?? '0'), hwVersion: data['hwVersion'], fwVersion: data['fwVersion'], fwSize: data['fwSize'],