提交 9854345d 编写于 作者: L liwuli

fix error

Signed-off-by: Nliwuli <liwuli@huawei.com>
上级 606093f5
......@@ -470,7 +470,7 @@ let wantTemp = {
};
let appIds = ["com.example.myapplication"];
bundleManager.AddDisallowedInstallBundles(wantTemp, appIds, (error) => {
bundleManager.addDisallowedInstallBundles(wantTemp, appIds, (error) => {
if (error != null) {
console.log("error code:" + error.code + " error message:" + error.message);
}
......@@ -516,7 +516,7 @@ let wantTemp = {
};
let appIds = ["com.example.myapplication"];
bundleManager.AddDisallowedInstallBundles(wantTemp, appIds, 100, (error) => {
bundleManager.addDisallowedInstallBundles(wantTemp, appIds, 100, (error) => {
if (error != null) {
console.log("error code:" + error.code + " error message:" + error.message);
}
......
......@@ -331,7 +331,7 @@ networkManager.isNetworkInterfaceDisabled(wantTemp, "eth0", (error, result) => {
console.log("error code:" + error.code + " error message:" + error.message);
return;
}
console.log(result);
console.log("result:" + result);
});
```
......@@ -377,7 +377,7 @@ let wantTemp = {
abilityName: "EntryAbility",
};
networkManager.isNetworkInterfaceDisabled(wantTemp, "eth0").then((result) => {
console.log(result);
console.log("result:" + result);
}).catch(error => {
console.log("error code:" + error.code + " error message:" + error.message);
});
......
......@@ -53,7 +53,7 @@ wifiManager.isWifiActive(wantTemp, (error, result) => {
console.log("error code:" + error.code + " error message:" + error.message);
return;
}
console.log(result);
console.log("result:" + result);
});
```
......@@ -98,7 +98,7 @@ let wantTemp = {
abilityName: "EntryAbility",
};
wifiManager.isWifiActive(wantTemp).then((result) => {
console.log(result);
console.log("result:" + result);
}).catch(error => {
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.
先完成此消息的编辑!
想要评论请 注册