Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
M
middleLayer_for_debug
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
template admin
middleLayer_for_debug
Commits
f9bdbc38
Commit
f9bdbc38
authored
Jun 08, 2022
by
liujiangnan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat: debug
parent
3961f5f3
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
3 deletions
+14
-3
air.js
assets/middleLayer_for_debug/script/air.js
+14
-3
No files found.
assets/middleLayer_for_debug/script/air.js
View file @
f9bdbc38
...
@@ -28,6 +28,7 @@ export function initAir(_this) {
...
@@ -28,6 +28,7 @@ export function initAir(_this) {
startScanCodeCallback
:
null
,
startScanCodeCallback
:
null
,
needUpdateCallback
:
null
,
needUpdateCallback
:
null
,
getEngineInfoCallback
:
null
,
getEngineInfoCallback
:
null
,
takePictureCallBack
:
null
,
configurationPortraitCallback
:
null
,
configurationPortraitCallback
:
null
,
configurationLandscapeCallback
:
null
,
configurationLandscapeCallback
:
null
,
recognitionCameraCallBack
:
null
,
recognitionCameraCallBack
:
null
,
...
@@ -153,14 +154,24 @@ export function initAir(_this) {
...
@@ -153,14 +154,24 @@ export function initAir(_this) {
};
};
window
.
courseware
.
callOcMethod
(
"
stopTest
"
,
{});
window
.
courseware
.
callOcMethod
(
"
stopTest
"
,
{});
},
},
openRecognitionCamera
(
callback
)
{
// 拍照
takePicture
(
callback
)
{
_this
.
log
(
`===成功调用takePicture===`
);
window
.
air
.
takePictureCallBack
=
(
res
)
=>
{
callback
&&
callback
(
JSON
.
stringify
(
res
));
window
.
air
.
takePictureCallBack
=
null
;
};
window
.
courseware
.
callOcMethod
(
"
takePicture
"
,
{});
},
openRecognitionCamera
(
params
=
{},
callback
)
{
window
.
courseware
.
hasCalledOpenRecognitionCamera
=
true
;
window
.
courseware
.
hasCalledOpenRecognitionCamera
=
true
;
_this
.
log
(
`===成功调用openRecognitionCamera===`
);
_this
.
log
(
`===成功调用openRecognitionCamera===
${
JSON
.
stringify
(
params
)}
`
);
window
.
air
.
recognitionCameraCallBack
=
(
res
)
=>
{
window
.
air
.
recognitionCameraCallBack
=
(
res
)
=>
{
callback
&&
callback
(
JSON
.
stringify
(
res
));
callback
&&
callback
(
JSON
.
stringify
(
res
));
window
.
air
.
recognitionCameraCallBack
=
null
;
window
.
air
.
recognitionCameraCallBack
=
null
;
};
};
window
.
courseware
.
callOcMethod
(
"
openRecognitionCamera
"
,
{}
);
window
.
courseware
.
callOcMethod
(
"
openRecognitionCamera
"
,
params
);
},
},
closeRecognitionCamera
()
{
closeRecognitionCamera
()
{
window
.
courseware
.
hasCalledOpenRecognitionCamera
=
false
;
window
.
courseware
.
hasCalledOpenRecognitionCamera
=
false
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment