@@ -290,7 +290,7 @@ Component({
sourceType: ['album'],
// camera: 'back',
success(res) {
- const tempFilePaths = res.tempFilePaths[0];
+ const tempFilePaths = res.tempFiles[0].tempFilePath;
that.pushImg(tempFilePaths);
wx.showLoading({
title: '加载中...'
@@ -249,7 +249,7 @@ Page({
});
},
async startImage(imageBuffer) {
- this.sliceDataIntoChunks(imageBuffer, 16);
+ this.sliceDataIntoChunks(imageBuffer, 32);
BtHelper.sendCallBack(BtCmd.wallPaper(1), function (res) {
if (!res) {