interfaceForThirdParty 调用第三方SDK方法
interfaceForThirdParty ^7.8
提供给前端页面调用插件第三方 SDK 接口
#请求参数
| Prop | Type | Comment |
|---|---|---|
messageType |
String |
第三方 SDK 用来判断接口名称 |
messageContent |
JSON/String |
业务参数,第三方 SDK 用来处理逻辑,格式(JSON/String)不限,由 weex 页面和 SDK 协商 |
#参数代码示例
let params = {
messageType: '', // 第三方SDK用来判断接口名称,
messageContent: '',
}
#接口调用示例
let params = {
messageType: '', // 第三方SDK用来判断接口名称,
messageContent: '',
}
bridge
.interfaceForThirdParty(params)
.then((res) => {
console.log(res)
})
.catch((err) => {
console.log(res)
})
#返回参数
- 成功时返回 N/A
#返回示例
{
code:"xxx",//code:-12 参数错误 code:-13第三方sdk中没这个类,执行失败
msg:""
}
浙公网安备 33010602011771号