Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
M
middleLayer_for_iplayabc
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_iplayabc
Commits
a80d876a
Commit
a80d876a
authored
Oct 29, 2022
by
liujiangnan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat:
parent
8ea88262
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
14 deletions
+3
-14
middleLayer.js
assets/middleLayer_for_iplayabc/script/middleLayer.js
+3
-14
No files found.
assets/middleLayer_for_iplayabc/script/middleLayer.js
View file @
a80d876a
...
...
@@ -93,17 +93,7 @@ cc.Class({
""
);
}
},
saveAnswer
(
data
,
callback
)
{
this
.
callNetworkApiPost
(
`v1/terminal/save/learnresult`
,
{
engineCode
:
this
.
engineCode
,
w_id
:
data
.
w_id
,
word
:
data
.
text_en
,
}).
then
(
callback
);
},
},
// 需要预加载的数量
preloadCount
:
null
,
// 统计已加载的数量
...
...
@@ -112,7 +102,6 @@ cc.Class({
isDev
:
null
,
engineCode
:
null
,
// 机器唯一编码
dataStore
:
null
,
// 内存数据仓库
currentSceneName
:
null
,
// 当前模板名称
// 统一释放异步资源的方法
...
...
@@ -120,7 +109,6 @@ cc.Class({
this
.
preloadCount
=
0
;
this
.
loadedCount
=
0
;
this
.
dataStore
=
{};
initAir
(
this
);
this
.
reWriteAir
();
},
...
...
@@ -143,7 +131,8 @@ cc.Class({
reWriteAir
()
{
window
.
courseware
.
getData
=
async
(
callback
)
=>
{
const
data
=
this
.
dataStore
[
this
.
currentSceneName
];
const
data
=
await
this
.
callNetworkApiGet
(
"
/v1/preference/words
"
,
{
user_code
:
this
.
engineCode
});
callback
&&
callback
(
data
);
}
if
(
!
window
.
air
)
{
...
...
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