# getDevicePluginInfo ^6.8

获取指定家电id的插件下载与否和版本信息

# 请求参数

Prop Type Default Comment
deviceSubType String N/A
deviceType String N/A
deviceSn8 String N/A
deviceId String N/A 家电id

# 接口调用示例

const params = {
  deviceId: '', //家电id,
  deviceSn8: 'xxx',
  deviceType: 'xxx',
  deviceSubType: 'xx',
}
this.$bridge
  .getDevicePluginInfo(params)
  .then(res => {
    this.$alert(res)
  })
  .catch(err => {
    this.$toast(err)
  })
1
2
3
4
5
6
7
8
9
10
11
12
13
14

# 返回参数

  • 成功时返回
Prop Type Default Description
isExist String N/A 插件是否已经下载
pluginVersion String N/A 下载的插件的版本号,如果本地没有存储,就会返回“0”
pluginPath String N/A 插件本地完整路径,获取不到即为空字符串
  • 失败时返回
Prop Type Default Description
errorCode Number N/A 错误码 -1 插件版本信息获取失败
errorMessage String N/A
更新时间: 7/27/2021, 11:23:45 AM