wmpf.Channel.invokeSync(Object object)

View Markdown

Last edited on 2026-04-06

Synchronously trigger a third-party App service command.

Parameters

Object object

Property Type Default Value Required Description
command string Yes Mini Program Command name passed through wmpf to the third-party app
data Object No Mini Program Command parameters passed through wmpf to the third-party app

object.success callback function

Parameters

Object res

Attribute Type Description
data string The call return result passed through wmpf from a third-party app to Mini Program

Sample Code

try {
  const res = wmpf.Channel.invokeSync({
    command: 'test'
  })
  console.log(res.data)
} catch (e) {}