无论是在桌面客户端真机调试,还是在华为手机上,还是在开发者工具里面,都没法打开相机。另外, 你们能在文档中备注一下,哪些方法,可以在电脑端使用吗? 比如chooseMessageFile在电脑就没法用。 我可以看到 takePhoto的日志 takePhoto() { console.log("takePhoto"); const cameraCtx = wx.createCameraContext(); cameraCtx.takePhoto({ quality: 'high', success: res => { let tempImagePath = res.tempImagePath; //TODO: save image console.log("take photo", res); } }); },
CameraContext.takePhoto(Object object)?无法调起相机在真机模式下,无法调起照相机,苹果手机 const ctx = wx.createCameraContext() console.log('..................................', ctx) ctx.takePhoto({ quality: "high", success:(res)=>{ console.log('输出照相机实例', res) } })
2024-04-07