From 2636f19619b3a7d8b80d63974f27fcb75c13612f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=AD=8F=E5=B0=91=E9=98=B3?= <786612630@qq.com> Date: Sat, 14 Dec 2024 09:20:21 +0800 Subject: [PATCH] =?UTF-8?q?fix:=201=E3=80=81=E8=BF=9B=E5=85=A5=E4=BF=AE?= =?UTF-8?q?=E6=94=B9=E5=9B=BD=E9=99=85=E5=8C=96=E8=AF=AD=E8=A8=80=E7=95=8C?= =?UTF-8?q?=E9=9D=A2=E9=87=8D=E5=90=AFAPP=E7=95=8C=E9=9D=A2=E5=8F=98?= =?UTF-8?q?=E7=81=B0=E9=97=AE=E9=A2=98=E3=80=822=E3=80=81wifi=E5=AF=86?= =?UTF-8?q?=E7=A0=81=E8=BE=93=E9=94=99=E4=B8=80=E6=AC=A1=E5=86=8D=E6=AC=A1?= =?UTF-8?q?=E6=8F=90=E4=BA=A4=E6=B2=A1=E5=8F=8D=E5=BA=94=E7=9A=84=E9=97=AE?= =?UTF-8?q?=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- lib/app.dart | 3 +-- .../gatewayConfigurationWifi_logic.dart | 2 +- lib/network/request_interceptor.dart | 3 +-- pubspec.yaml | 2 +- 4 files changed, 4 insertions(+), 6 deletions(-) diff --git a/lib/app.dart b/lib/app.dart index d4ae7596..c81290a1 100755 --- a/lib/app.dart +++ b/lib/app.dart @@ -86,8 +86,7 @@ class _MyAppState extends State with WidgetsBindingObserver, BaseWidget { locale: StoreService.to.getLanguageCode()!.isNotEmpty ? appDept.deptSupportedLocales .where((Locale element) => - element.languageCode.toString() == - StoreService.to.getLanguageCode()) + element.toString() == StoreService.to.getLanguageCode()) .first : Get.deviceLocale, // locale: Get.deviceLocale, diff --git a/lib/mine/gateway/addGateway/gatewayConfigurationWifi/gatewayConfigurationWifi_logic.dart b/lib/mine/gateway/addGateway/gatewayConfigurationWifi/gatewayConfigurationWifi_logic.dart index 2f8f208e..1cf70a9e 100644 --- a/lib/mine/gateway/addGateway/gatewayConfigurationWifi/gatewayConfigurationWifi_logic.dart +++ b/lib/mine/gateway/addGateway/gatewayConfigurationWifi/gatewayConfigurationWifi_logic.dart @@ -88,10 +88,10 @@ class GatewayConfigurationWifiLogic extends BaseGetXController { // WIFI配网结果 Future _replySenderConfiguringWifiResult(Reply reply) async { final int status = reply.data[2]; + state.sureBtnState.value = 0; switch (status) { case 0x00: //成功 - state.sureBtnState.value = 0; cancelBlueConnetctToastTimer(); dismissEasyLoading(); final int secretKeyJsonLength = (reply.data[3] << 8) + reply.data[4]; diff --git a/lib/network/request_interceptor.dart b/lib/network/request_interceptor.dart index d40188a8..95617873 100755 --- a/lib/network/request_interceptor.dart +++ b/lib/network/request_interceptor.dart @@ -39,8 +39,7 @@ String getLanguageCode() { final Locale locale = StoreService.to.getLanguageCode()!.isNotEmpty ? appDept.deptSupportedLocales .where((Locale element) => - element.languageCode.toString() == - StoreService.to.getLanguageCode()) + element.toString() == StoreService.to.getLanguageCode()) .first : Get.locale!; // Get.deviceLocale; String languageCode = diff --git a/pubspec.yaml b/pubspec.yaml index 6b1cb9ef..2d34dcf6 100755 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -104,7 +104,7 @@ publish_to: 'none' # Remove this line if you wish to publish to pub.dev # 1.0.85+2024120301:完善网关功能 # 1.0.85+2024120401:修复网关问题,打包给谢敬调试 -version: 1.0.85+2024121201 +version: 1.0.85+2024121301 environment: sdk: '>=2.12.0 <3.0.0'