请扫码查看示例
 # getAppInfo ^7.10
返回版本号,有升级策略返回策略版本,没有返回当前版本
# 请求参数
N/A
# 引入接口模块
import bridge from '@minix-iot/etsbridge-sdk'
1
# 接口调用示例
bridge
  .getAppNewVersion()
  .then((res) => {
    console.log(res)
  })
  .catch((err) => {
    console.log(err)
  })
1
2
3
4
5
6
7
8
2
3
4
5
6
7
8
# 接口返回示例
- 成功时返回
| Prop | Type | Value | 
|---|---|---|
| code | Number | 0 | 
| newVerison | String | 如8.4.0.50 | 
- 失败时返回(api 为空或者没有)
| Prop | Type | Value | 
|---|---|---|
| code | Number | -1 | 
| msg | String | get new version failed | 
# 返回示例
{
  code: true //true or false,
  newVerison: '8.4.0.50'
}
1
2
3
4
2
3
4