Commit 4e5755e2 authored by 范雪寒's avatar 范雪寒

feat: closeRecognitionCamera

parent d8a34880
...@@ -804,7 +804,7 @@ cc.Class({ ...@@ -804,7 +804,7 @@ cc.Class({
} }
let openRecognitionCamera = window.courseware.openRecognitionCamera; let openRecognitionCamera = window.courseware.openRecognitionCamera;
if (!openRecognitionCamera) { if (!openRecognitionCamera) {
console.log('openRecognitionCamera not found') console.log('openRecognitionCamera not found')
...@@ -999,6 +999,12 @@ cc.Class({ ...@@ -999,6 +999,12 @@ cc.Class({
showPhotoSuccess() { showPhotoSuccess() {
console.log(' in showPhotoSuccess') console.log(' in showPhotoSuccess')
this.hidePhotoBtn(); this.hidePhotoBtn();
if (window && window.courseware && window.courseware.closeRecognitionCamera) {
window.courseware.closeRecognitionCamera();
} else {
console.log('没有closeRecognitionCamera!!!');
}
}, },
getPhotoData(cb) { getPhotoData(cb) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment