- 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) }) }) }, [图片] 这个小程序中,我是有配置订阅消息的 [图片]
2020-08-21 - cloud init error: Error: errCode: -1 啥原因呢?
VM109:1 cloud init error: Error: errCode: -1 | errMsg: systerm error. at new u (VM115 WAService.js:2) at Function.success (VM115 WAService.js:2) at h (VM115 WAService.js:2) at Object.success (VM115 WAService.js:2) at y (VM115 WAService.js:2) at b (VM115 WAService.js:2) at VM115 WAService.js:2 at e. (VM113 asdebug.js:1) at h (VM115 WAService.js:2) at VM115 WAService.js:2
2020-08-21