求教:
再IDE模拟器上没有发生异常现象,但真机调试出现异常。很难找到问题原因:
代码如下:
that.data.housePicturePaths.map(tempFilePath => () => new AV.File('filename', {
blob: {
uri: tempFilePath,
},
}).save()).reduce(
console.log("01"),
(m, p) => m.then(v => AV.Promise.all([...v, p()])),
console.log("02"),
AV.Promise.resolve([]),
console.log("03"),
).then(function(files){
console.log("04");
todo.files = files;
// for(var i = 0;i<files.length;i++){
// that.data.housePicturePaths[i] = files[i].url();
// console.log(that.data.housePicturePaths[i]);
// }
todo.setACL(acl).save().then((todo) => {
// this.setTodos([todo, ...this.data.todos]);
console.log("05");
that.back();
}).catch(console.error);
console.log("06");
// this.setData({
// draft: ''
// });
}).catch(console.error);
console.log("05");
},
真机异常截图: