From 05685d068eb97b58d8571a1db5eb1f67fc354303 Mon Sep 17 00:00:00 2001 From: m0_75226990 Date: Sat, 3 Dec 2022 19:26:10 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20WiFi=E6=A8=A1=E5=9D=97GloabInfo=E5=A2=9E?= =?UTF-8?q?=E5=8A=A0=E5=89=8D=E7=BC=80=EF=BC=8C=E9=81=BF=E5=85=8D=E5=8F=AF?= =?UTF-8?q?=E8=83=BD=E7=9A=84=E5=91=BD=E5=90=8D=E5=86=B2=E7=AA=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- uni_modules/uni-wifi/utssdk/app-ios/index.uts | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/uni_modules/uni-wifi/utssdk/app-ios/index.uts b/uni_modules/uni-wifi/utssdk/app-ios/index.uts index 03e0459..7bf2025 100644 --- a/uni_modules/uni-wifi/utssdk/app-ios/index.uts +++ b/uni_modules/uni-wifi/utssdk/app-ios/index.uts @@ -181,7 +181,7 @@ function fetchConnectedWifiWithLocationPromise(option: GetConnectedWifiOptions) /* * 保存全局数据信息 */ -class GloabInfo { +class UniWiFiModuleGloabInfo { static alreadyStartWifi: boolean } @@ -193,7 +193,7 @@ class GloabInfo { * 初始化wifi模块 */ export function startWifi(option: WifiOption) { - GloabInfo.alreadyStartWifi = true + UniWiFiModuleGloabInfo.alreadyStartWifi = true let res = { errCode: 0, errMsg: "startWifi: ok" @@ -206,7 +206,7 @@ export function startWifi(option: WifiOption) { * 停止wifi模块 */ export function stopWifi() { - GloabInfo.alreadyStartWifi = false + UniWiFiModuleGloabInfo.alreadyStartWifi = false LocationPromiseService.promiseCompletionHandler = [] } @@ -248,7 +248,7 @@ export function getConnectedWifi(option: GetConnectedWifiOptions) { wifiInfo.signalStrength = 0 wifiInfo.frequency = 0 - if (GloabInfo.alreadyStartWifi == false) { + if (UniWiFiModuleGloabInfo.alreadyStartWifi == false) { let res = { errCode: 12000, errMsg: "not invoke startWifi", -- GitLab