请扫码查看示例
 # getAppInfo ^7.10
按升级策略进行升级,如跳转应用市场或者应用内下载,无升级策略返回异常信息。
# 请求参数
N/A
# 引入接口模块
import bridge from '@minix-iot/etsbridge-sdk'
1
# 接口调用示例
bridge
  .upgradeApp()
  .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 | 
| msg | String | success | 
- 失败时返回(api 为空或者没有)
| Prop | Type | Value | 
|---|---|---|
| code | Number | -1 | 
| msg | String | no upgrad | 
# 返回示例
{
  code: true //true or false,
  msg: 'success'
}
1
2
3
4
2
3
4