xios.post('https://api.weixin.qq.com/wxa/getwxacode?access_token=n2YU3BUVMVOt0ybzBQOGarD_J6pljc79Ywiz97M94v4BgZvbZ__5G6Gf97xy-xcHXQyktU1-qzRiZGrDkOPIOnCZW1DLYoQUCTKoVCXCBKYMwFLUszhEEssWGqElL2D2XYFgAEAJKR',jsonInfo,{
responseType:'arraybuffer'
}).then (function (res,next){
console.log('开始上传图片')
var imageFile = new AV.File('qrcode.png',res.data);
imageFile.save().then( function(file) {
var file = file.url()
console.log('图片上传完成返回url')
console.log(file)
var qrcode = AV.Object.extend('qrcode');
var qrcode = new qrcode()
qrcode.set('qrcod', file);
qrcode.save().then(function () {
console.log('上传图片url')
});
依然无解,麻烦再帮我看看吧这是没修改的代码,按你那样改过之后图片都传不上去了