html52.com
我爱小程序-开发者交流社区

小程序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真机调试 扫开发二维码调试都不行 求教为什么

网友回复

是柿子啊:

麻烦提供出现问题的具体机型、微信版本号、系统版本号,以及能复现问题的代码片段https://developers.weixin.qq.com/miniprogram/dev/devtools/minicode.html

评论 抢沙发

  • 昵称 (必填)
  • 邮箱 (必填)
  • 网址

真正的个人免签约支付接口

云免签H5支付