上传图片到七牛无效
发布于 6 年前 作者 hexia 8661 次浏览 来自 问答
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,
          })
        }
回到顶部