收藏
回答

openapi.subscribeMessage.getTemplateList({}) 返回为空?

// 云函数获取小程序配置的所有订阅消息
  app.router('getSubscribeMsgList', async (ctx, next) => {
    try {
      ctx.body = await cloud.openapi.subscribeMessage.getTemplateList({})
        .then((res) => {
          console.log(res.data)
          return res.data
        })
    } catch (err) {
      return err
    }
  })


这个调用云函数的,下午突然返回为空了,几乎什么都没改

// 查询当前小程序的订阅消息列表,调用云函数
  _getsubscribeMessageList() {
    return new Promise(resolve => {
      wx.cloud.callFunction({
        name: 'subscribeMessage',
        data: {
          $url: 'getSubscribeMsgLst'
        }
      }).then((res) => {
        console.log('小程序中配置的订阅消息列表', res)
        this.setData({
          subMsgList: res.result,
        })
        resolve(res.result)
      })
    })
  },


这个小程序中,我是有配置订阅消息的

回答关注问题邀请回答
收藏

2 个回答

  • Riven.
    Riven.
    2020-08-24

    你好,麻烦提供出现问题的具体机型、微信版本号、系统版本号,以及能复现问题的代码片段(https://developers.weixin.qq.com/miniprogram/dev/devtools/minicode.html

    2020-08-24
    有用
    回复
  • 成壑
    成壑
    2020-08-21

    直接调用这个接口,返回:

    errCode: 45009
    errMsg: "openapi.subscribeMessage.getTemplateList:fail reach max api daily quota limit rid: 5f3fc91a-7739f2e1-5c131e59"
    

    是我调用的次数超过限制了么? 那么这个限制是多少呢? reach max api daily quota limit rid

    2020-08-21
    有用
    回复
登录 后发表内容
问题标签