# Why To get the phone created by `CameraContext.takePhoto` we have to use `res.tempImagePath`. For example, the [official demo](https://developers.weixin.qq.com/s/VBZ3Jim26zYu) from [this page](https://developers.weixin.qq.com/miniprogram/dev/api/media/camera/CameraContext.html) used that API. # What went wrong After [this commit](https://github.com/wechat-miniprogram/api-typings/commit/1428227e24b5b51b26954c4716e386b64e623871#diff-2bc80e81787d294041b1b460b8c77b62L4692), it was removed.  # How to fix it 1. Should re-add the `tempImagePath` to `TakePhotoSuccessCallbackResult` 2. Should also fix the document https://developers.weixin.qq.com/miniprogram/dev/api/media/camera/CameraContext.takePhoto.html 