Skip to content

Commit a8ac196

Browse files
authored
Merge pull request #15932 from licunhao1/main
fix: 部分API不支持,修改为继承h5
2 parents 7093934 + bc5f615 commit a8ac196

File tree

7 files changed

+6
-200
lines changed

7 files changed

+6
-200
lines changed

examples/mini-program-example/src/pages/api/device/wifi/index.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -160,6 +160,7 @@ export default class Index extends React.Component {
160160
password: 'lwh123456',
161161
},
162162
func: (apiIndex, data) => {
163+
TestConsole.consoleTest('connectWifi')
163164
Taro.connectWifi({
164165
...data,
165166
success: (res) => {

packages/taro-platform-harmony-hybrid/build/config/harmony-definition.json

Lines changed: 5 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -667,13 +667,7 @@
667667
"tcpNoDelay": true
668668
}
669669
},
670-
"connectWifi": {
671-
"object": {
672-
"SSID": true,
673-
"password": true,
674-
"BSSID": true
675-
}
676-
},
670+
"connectWifi": false,
677671
"console": {
678672
"debug": true,
679673
"error": true,
@@ -1237,7 +1231,7 @@
12371231
}
12381232
},
12391233
"getWeRunData": false,
1240-
"getWifiList": true,
1234+
"getWifiList": false,
12411235
"getWindowInfo": {
12421236
"return": {
12431237
"pixelRatio": true,
@@ -1331,13 +1325,7 @@
13311325
}
13321326
},
13331327
"navigateToBookshelf": false,
1334-
"navigateToMiniProgram": {
1335-
"object": {
1336-
"appId": true,
1337-
"path": true,
1338-
"extraData": true
1339-
}
1340-
},
1328+
"navigateToMiniProgram": false,
13411329
"nextTick": true,
13421330
"notifyBLECharacteristicValueChange": {
13431331
"object": {
@@ -1979,7 +1967,7 @@
19791967
"resultJSONSignature": true
19801968
}
19811969
},
1982-
"startWifi": true,
1970+
"startWifi": false,
19831971
"stopAccelerometer": true,
19841972
"stopBackgroundAudio": false,
19851973
"stopBeaconDiscovery": false,
@@ -1994,7 +1982,7 @@
19941982
"stopPullDownRefresh": true,
19951983
"stopRecord": false,
19961984
"stopVoice": false,
1997-
"stopWifi": true,
1985+
"stopWifi": false,
19981986
"subscribeService": false,
19991987
"subscribeVoIPVideoMembers": false,
20001988
"switchTab": {

packages/taro-platform-harmony-hybrid/src/api/apis/device/wifi/connectWifi.ts

Lines changed: 0 additions & 80 deletions
This file was deleted.

packages/taro-platform-harmony-hybrid/src/api/apis/device/wifi/getWifiList.ts

Lines changed: 0 additions & 33 deletions
This file was deleted.

packages/taro-platform-harmony-hybrid/src/api/apis/device/wifi/index.ts

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,10 @@
1-
export * from './connectWifi'
21
export * from './getConnectedWifi'
3-
export * from './getWifiList'
42
export * from './offGetWifiList'
53
export * from './offWifiConnected'
64
export * from './offWifiConnectedWithPartialInfo'
75
export * from './onGetWifiList'
86
export * from './onWifiConnected'
97
export * from './onWifiConnectedWithPartialInfo'
10-
export * from './startWifi'
11-
export * from './stopWifi'
128

139
/**
1410
* Wifi 信息(native 返回)

packages/taro-platform-harmony-hybrid/src/api/apis/device/wifi/startWifi.ts

Lines changed: 0 additions & 33 deletions
This file was deleted.

packages/taro-platform-harmony-hybrid/src/api/apis/device/wifi/stopWifi.ts

Lines changed: 0 additions & 33 deletions
This file was deleted.

0 commit comments

Comments
 (0)