收藏
回答

小程序ios上传视频接口报404 安卓正常,求解?

chooseVideo() {
    let _this = this
    let fileList = this.data.fileList
    wx.chooseVideo({
      success(res) {
        wx.uploadFile({
          url: kamoUtils.networkApiUrl + '/UserShare/IndividuationVideoUpload ',
          filePath: res.tempFilePath,
          name: 'video',
          header: {
            "access_token": wx.getStorageSync('access_token')
          },
          success(res) {
            console.log(res)
            let data = res.data
            data = JSON.parse(data)
            fileList.push({
              path: data.data.relative_path,
              file_type: 2
            })
            _this.setData({
              videoUrl: data.data.url,
              fileList
            })
            _this.checkIsShow()
          },
          fail(e) {
            console.log(e)
          }
        })
      }
    })
  },

上传代码是这样的 然后开发工具和安卓端都没问题 但是ios真机调试 扫开发二维码调试都不行 求教为什么

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

1 个回答

登录 后发表内容
问题标签