# wmpf.Channel.invokeSync(Object object)

同步触发第三方 App 服务指令

## 参数

### Object object

| 属性    | 类型   | 默认值 | 必填 | 说明                                      |
| ------- | ------ | ------ | ---- | ----------------------------------------- |
| command | string |        | 是   | 小程序经 wmpf 透传给第三方 app 的指令名   |
| data    | Object |        | 否   | 小程序经 wmpf 透传给第三方 app 的指令参数 |

### object.success 回调函数

#### 参数

#### Object res

| 属性 | 类型   | 说明                                          |
| ---- | ------ | --------------------------------------------- |
| data | string | 第三方 app 经 wmpf 透传给小程序的调用返回结果 |

## 示例代码

```js
try {
  const res = wmpf.Channel.invokeSync({
    command: 'test'
  })
  console.log(res.data)
} catch (e) {}
```
