瀏覽代碼

http error

kidd3166 1 年之前
父節點
當前提交
67198cffe0
共有 2 個文件被更改,包括 4 次插入1 次删除
  1. 3 0
      lib/application.dart
  2. 1 1
      lib/provider/bluetooth.dart

+ 3 - 0
lib/application.dart

@@ -94,6 +94,9 @@ class Application {
     } catch (e) {
       print(e);
     }
+    infos.forEach((key, value) {
+      infos[key] = Uri.encodeComponent(value);
+    });
     return infos;
   }
 

+ 1 - 1
lib/provider/bluetooth.dart

@@ -259,7 +259,7 @@ class Bluetooth with InjectApi, GameLog {
         autoConnect();
       } else if (state == BleStatus.unknown) {
       } else if (state == BleStatus.poweredOff) {
-        clearDevice(deleteStep: false);
+        // clearDevice(deleteStep: false);
         // ToastUtil.show("蓝牙服务已关闭");
       } else {}
     });