使用getTempFileURL和request获取云存储文件一直阻塞问题
发布于 6 年前 作者 taoliang 12508 次浏览 来自 问答
var msgFileID = 'cloud://kong-239266.6b6f-kong-239266/msg.txt'
 
wx.cloud.getTempFileURL({
  fileList: [{
    fileID: msgFileID
  }],
  success: function (res1) {
    console.log(res1)
    wx.request({
      url: res1.fileList[loop].tempFileURL,
      method: 'GET',
      success: function (res2) {
        that.showSearchResult(res2.data, that)
      },
      fail: function (res2) {
        that.showSearchResult('Not Found'), that)
      }
    })
  },
  fail: function (res1) {
    console.log('res1: ', res1)
    that.showSearchResult('Not Found'), that)
  }
})

这个代码在发布后,只有自己的微信能用,其他微信帐号就是一直阻塞。

请大家帮忙看一下,是什么原因。

request合法域名已经添加了getTempFileURL返回的URL

https://6b6f-kong-239266-1256492407.tcb.qcloud.la

回到顶部