wx.cloud.CDN is not a function?
发布于 4 年前 作者 yonghuang 4434 次浏览 来自 问答
    wx.cloud.callFunction({
      name: 'test',
      data: {
        test: wx.cloud.CDN({
          type'filePath',
          filePath: wx.base64ToArrayBuffer(res.data),
        })
      },
      success: res => {
      },
      fail: err => {
      },
      complete: res => {
        console.log(res)
      }
    })

Uncaught (in promise) TypeError: wx.cloud.CDN is not a function

怎么解决?

1 回复

可能是调试的SDK版本版本太低,小程序端2.12.0以后才支持

回到顶部