上传图片到七牛无效
发布于 5 年前 作者 hexia 8652 次浏览 来自 问答
for (var item in tempFilePaths){
          qiniuUploader.upload(tempFilePaths[item], function (res) {
            var imgUrl = _this.data.imgUrl;
            imgUrl.push(res.imageURL);
            _this.setData({
              imgUrl: imgUrl
            });
          }, function (error) {
            wx.showToast({
              title: error,
              icon: 'success',
              duration: 2000
            })
          }, {
            region: 'ECN',
            domain: 'https://up.qbox.me',
            uptoken: _this.data.uptoken,
          })
        }
回到顶部