http://developer.qiniu.com/do... wx.uploadFile({ url: 'https://up.qbox.me', filePath: tempFilePaths[0], name: 'file', formData:{ 'key': tempFilePaths[0].split('//')[1], 'token': uptoken }, success: function(res){ var data = JSON.parse(res.data); self.setData({ imageUrl: `https://xxx.qnssl.com/${data.key}` }) //do something }, fail (error) { console.log(error) }, complete (res) { console.log(res) } }) }
http://developer.qiniu.com/do...