upgradeApp 升级app

upgradeApp ^8.5

按升级策略进行升级,如跳转应用市场或者应用内下载,无升级策略返回异常信息。

#请求参数

N/A

#接口调用示例

this.$bridge
  .upgradeApp()
  .then(res => {
    this.$alert(res)
  })
  .catch(err => {
    this.$toast(err)
  })

#返回参数

  • 成功时返回 Object res
Prop Type Value
code Number 0
msg String success
  • 失败时返回 Object res
Prop Type Value
code Number -1
msg String no upgrade
posted on 2024-12-16 09:43  AtlasLapetos  阅读(28)  评论(0)    收藏  举报