未验证 提交 9e4a64d8 编写于 作者: O openharmony_ci 提交者: Gitee

!18406 【EDM】修复示例代码问题

Merge pull request !18406 from 李兀立/master
...@@ -470,7 +470,7 @@ let wantTemp = { ...@@ -470,7 +470,7 @@ let wantTemp = {
}; };
let appIds = ["com.example.myapplication"]; let appIds = ["com.example.myapplication"];
bundleManager.AddDisallowedInstallBundles(wantTemp, appIds, (error) => { bundleManager.addDisallowedInstallBundles(wantTemp, appIds, (error) => {
if (error != null) { if (error != null) {
console.log("error code:" + error.code + " error message:" + error.message); console.log("error code:" + error.code + " error message:" + error.message);
} }
...@@ -516,7 +516,7 @@ let wantTemp = { ...@@ -516,7 +516,7 @@ let wantTemp = {
}; };
let appIds = ["com.example.myapplication"]; let appIds = ["com.example.myapplication"];
bundleManager.AddDisallowedInstallBundles(wantTemp, appIds, 100, (error) => { bundleManager.addDisallowedInstallBundles(wantTemp, appIds, 100, (error) => {
if (error != null) { if (error != null) {
console.log("error code:" + error.code + " error message:" + error.message); console.log("error code:" + error.code + " error message:" + error.message);
} }
......
...@@ -331,7 +331,7 @@ networkManager.isNetworkInterfaceDisabled(wantTemp, "eth0", (error, result) => { ...@@ -331,7 +331,7 @@ networkManager.isNetworkInterfaceDisabled(wantTemp, "eth0", (error, result) => {
console.log("error code:" + error.code + " error message:" + error.message); console.log("error code:" + error.code + " error message:" + error.message);
return; return;
} }
console.log(result); console.log("result:" + result);
}); });
``` ```
...@@ -377,7 +377,7 @@ let wantTemp = { ...@@ -377,7 +377,7 @@ let wantTemp = {
abilityName: "EntryAbility", abilityName: "EntryAbility",
}; };
networkManager.isNetworkInterfaceDisabled(wantTemp, "eth0").then((result) => { networkManager.isNetworkInterfaceDisabled(wantTemp, "eth0").then((result) => {
console.log(result); console.log("result:" + result);
}).catch(error => { }).catch(error => {
console.log("error code:" + error.code + " error message:" + error.message); console.log("error code:" + error.code + " error message:" + error.message);
}); });
......
...@@ -53,7 +53,7 @@ wifiManager.isWifiActive(wantTemp, (error, result) => { ...@@ -53,7 +53,7 @@ wifiManager.isWifiActive(wantTemp, (error, result) => {
console.log("error code:" + error.code + " error message:" + error.message); console.log("error code:" + error.code + " error message:" + error.message);
return; return;
} }
console.log(result); console.log("result:" + result);
}); });
``` ```
...@@ -98,7 +98,7 @@ let wantTemp = { ...@@ -98,7 +98,7 @@ let wantTemp = {
abilityName: "EntryAbility", abilityName: "EntryAbility",
}; };
wifiManager.isWifiActive(wantTemp).then((result) => { wifiManager.isWifiActive(wantTemp).then((result) => {
console.log(result); console.log("result:" + result);
}).catch(error => { }).catch(error => {
console.log("error code:" + error.code + " error message:" + error.message); console.log("error code:" + error.code + " error message:" + error.message);
}); });
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册