数据预拉取接口,wx.setBackgroundFetchToken 中 token 不能为空?

发布于 5 年前作者 ming227187 次浏览最后编辑 5 年前来自 issues

文档:https://developers.weixin.qq.com/miniprogram/dev/framework/ability/pre-fetch.html

 wx.setBackgroundFetchToken({ token: 'xxx' })

由文档可知,当 wx.setBackgroundFetchToken 为空时, wx.getBackgroundFetchData() 可以获得 code

实际在上 wx.setBackgroundFetchToken 无论是没有token字段还是 token为空字符串均报错

0 回复
暂无回复