更新时间:2022-10-26 16:08:30
Both your capturePhoto()
and capturePhotoEdit()
functions need to have the destinationType
updated.
navigator.camera.getPicture(
onPhotoDataSuccess,
onFail,
{
quality: 50,
destinationType.DATA_URL
}
);
should be like this,
navigator.camera.getPicture(
onPhotoDataSuccess,
onFail,
{
quality: 50,
destinationType: destinationType.DATA_URL
}
);