支付宝小程序中调用接口chooseImage选择本地图片,支付宝app直接退出了,请教下是什么原因导致的?我该怎么解决?
代码如下:
uni.chooseImage({
sourceType: ["camera", "album"],
sizeType: "compressed",
count: imageCount - this.imageList.length,
success: (res) => {
this.imageList = this.imageList.concat(res.tempFilePaths);
}
})
2 个回复
7***@qq.com (作者)
问题解决了,但是不知道为啥:
不能设置sizeType这个属性,否则就会导致支付宝app退出,应该是支付宝小程序自身问题
Trust - 少说废话
改成支付宝的规范试试,或者换个手机,API 调用就是封装了一层,不会干别的。