提交 05685d06 编写于 作者: lizhongyi_'s avatar lizhongyi_

fix: WiFi模块GloabInfo增加前缀,避免可能的命名冲突

上级 373c2733
......@@ -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",
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册