为什么subscribeMessage.send没有“查看详情”和进入小程序?
发布于 6 年前 作者 juan59 11841 次浏览 来自 官方Issues

在云函数里写了调用:

async function send(event){

  try {

    const result = await cloud.openapi.subscribeMessage.send({

        touser: event.openid,

        templateId: event.formid,

        page: 'pages/cup/cup',

        data: {

          thing1: {

            value: event.thing1

          },

          thing2: {

            value: event.thing2

          },

          thing4: {

            value: event.thing4

          }

        },        

        miniprogramState: 'developer'

      })

    return result

  } catch (err{

    return err

  }

}

收到的消息没有page的调转项,page页是从app.jspn里粘贴过来的。

回到顶部