云函数收不到用户发送的小程序卡片信息
发布于 5 年前 作者 minqiao 8103 次浏览 来自 官方Issues

接收不到用户发送的小程序卡片信息

代码如下

if (event.MsgType === 'miniprogrampage') {
    console.log(event.MsgType);
    await cloud.openapi.customerServiceMessage.send({
      touser: wxContext.OPENID,
      msgtype: 'link',
      link: {
        title: '任务办理集合页',
        description: '融e行、融e联APP、支付宝,微信手工绑卡,黄金微定投',
        url: 'https://web.zj.icbc.com.cn/'
      }
    });
    await cloud.openapi.customerServiceMessage.send({
      touser: wxContext.OPENID,
      msgtype: 'miniprogrampage',
      miniprogrampage: {
        "title": "工银微金融微信绑卡",
        "appid": "xxxx",
        "pagepath": "pages/spike/loginLanding/loginLxanding",
        "thumb_media_id": "xxxx-LpH4rXrYas6D22dFklyFk4FqfKKIwBPJky23vdvzSjlECClsx"
      }
    });
    await cloud.openapi.customerServiceMessage.send({
      touser: wxContext.OPENID,
      msgtype: 'miniprogrampage',
      miniprogrampage: {
        "title": "经营贷款(温州)",
        "appid": "xxx",
        "pagepath": "pages/spike/loginLanding/loginLandi",
        "thumb_media_id": "HKc5tePvM5wfPc-xxxx-9JEIq5FgXxIJAQ45AQzI2vVqmE0v9hziKpf0"
      }
    });
  }
1 回复

出错信息是什么?

回到顶部