getAppInfo 返回版本号

getAppInfo ^7.10

返回版本号,有升级策略返回策略版本,没有返回当前版本

#请求参数

N/A

#引入接口模块

import bridge from '@minix-iot/etsbridge-sdk'

#接口调用示例

bridge
  .getAppNewVersion()
  .then((res) => {
    console.log(res)
  })
  .catch((err) => {
    console.log(err)
  })

#接口返回示例

  • 成功时返回
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'
}
posted on 2024-12-27 09:29  AtlasLapetos  阅读(6)  评论(0)    收藏  举报