提交 b9a5240f 编写于 作者: W worldants

Signed-off-by: worldants <lixuan40@huawei.com>

上级 78eb6281
...@@ -136,9 +136,9 @@ getNewVersionInfo(callback: AsyncCallback\<NewVersionInfo>): void ...@@ -136,9 +136,9 @@ getNewVersionInfo(callback: AsyncCallback\<NewVersionInfo>): void
``` ```
updater.getNewVersionInfo(info => { updater.getNewVersionInfo(info => {
console.log("getNewVersionInfo success " + info.status); console.log("getNewVersionInfo success " + info.status);
console.log(`info versionName = ` + info.checkResult[0].versionName); console.log(`info versionName = ` + info.checkResults[0].versionName);
console.log(`info versionCode = ` + info.checkResult[0].versionCode); console.log(`info versionCode = ` + info.checkResults[0].versionCode);
console.log(`info verifyInfo = ` + info.checkResult[0].verifyInfo); console.log(`info verifyInfo = ` + info.checkResults[0].verifyInfo);
}); });
``` ```
...@@ -160,9 +160,9 @@ getNewVersionInfo(): Promise\<NewVersionInfo> ...@@ -160,9 +160,9 @@ getNewVersionInfo(): Promise\<NewVersionInfo>
``` ```
updater.getNewVersionInfo().then(value => { updater.getNewVersionInfo().then(value => {
console.log(`info versionName = ` + value.checkResult[0].versionName); console.log(`info versionName = ` + value.checkResults[0].versionName);
console.log(`info versionCode = ` + value.checkResult[0].versionCode); console.log(`info versionCode = ` + value.checkResults[0].versionCode);
console.log(`info verifyInfo = ` + value.checkResult[0].verifyInfo); console.log(`info verifyInfo = ` + value.checkResults[0].verifyInfo);
}).catch(err => { }).catch(err => {
console.log("getNewVersionInfo promise error: " + err.code); console.log("getNewVersionInfo promise error: " + err.code);
}); });
...@@ -187,9 +187,9 @@ checkNewVersion(callback: AsyncCallback\<NewVersionInfo>): void ...@@ -187,9 +187,9 @@ checkNewVersion(callback: AsyncCallback\<NewVersionInfo>): void
``` ```
updater.checkNewVersion(info => { updater.checkNewVersion(info => {
console.log("checkNewVersion success " + info.status); console.log("checkNewVersion success " + info.status);
console.log(`info versionName = ` + info.checkResult[0].versionName); console.log(`info versionName = ` + info.checkResults[0].versionName);
console.log(`info versionCode = ` + info.checkResult[0].versionCode); console.log(`info versionCode = ` + info.checkResults[0].versionCode);
console.log(`info verifyInfo = ` + info.checkResult[0].verifyInfo); console.log(`info verifyInfo = ` + info.checkResults[0].verifyInfo);
}); });
``` ```
...@@ -211,9 +211,9 @@ checkNewVersion(): Promise\<NewVersionInfo> ...@@ -211,9 +211,9 @@ checkNewVersion(): Promise\<NewVersionInfo>
``` ```
updater.checkNewVersion().then(value => { updater.checkNewVersion().then(value => {
console.log(`info versionName = ` + value.checkResult[0].versionName); console.log(`info versionName = ` + value.checkResults[0].versionName);
console.log(`info versionCode = ` + value.checkResult[0].versionCode); console.log(`info versionCode = ` + value.checkResults[0].versionCode);
console.log(`info verifyInfo = ` + value.checkResult[0].verifyInfo); console.log(`info verifyInfo = ` + value.checkResults[0].verifyInfo);
}).catch(err => { }).catch(err => {
console.log("checkNewVersion promise error: " + err.code); console.log("checkNewVersion promise error: " + err.code);
}); });
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册