Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
M
middleLayer_for_NJ_lite
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_NJ_lite
Commits
fbaf44e4
Commit
fbaf44e4
authored
Aug 29, 2022
by
李维
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
添加日志信息
parent
81d0f341
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
0 deletions
+4
-0
middleLayer.ts
assets/middleLayer_for_NJ_lite/script/middleLayer.ts
+3
-0
middleLayerBase.ts
assets/middleLayer_for_NJ_lite/script/middleLayerBase.ts
+1
-0
No files found.
assets/middleLayer_for_NJ_lite/script/middleLayer.ts
View file @
fbaf44e4
...
...
@@ -569,6 +569,8 @@ export default class NewClass extends middleLayerBase {
const
kidDataStr
=
await
this
.
asyncCallNetworkApiGet
(
'
/api/oxford/v1/kid/info
'
,
{
token
:
token
});
console
.
log
(
"
[middleLayer_for_NJ_lite] start kidDataStr=
"
,
kidDataStr
)
const
kidData
=
JSON
.
parse
(
kidDataStr
);
if
(
kidData
.
code
==
200
)
{
this
.
loadOnlineBundle
(
'
NJ_YouLeChang
'
);
...
...
@@ -589,6 +591,7 @@ export default class NewClass extends middleLayerBase {
(
<
any
>
window
).
courseware
.
freeAllOcMethod
();
const
syllabusPath
=
this
.
getData
(
"
syllabus_path
"
);
console
.
log
(
"
[middleLayer_for_NJ_lite] onClickExitBtn syllabusPath=
"
,
JSON
.
stringify
(
syllabusPath
))
if
(
!
syllabusPath
)
{
this
.
loadOnlineBundle
(
'
NJ_YouLeChang
'
);
return
;
...
...
assets/middleLayer_for_NJ_lite/script/middleLayerBase.ts
View file @
fbaf44e4
...
...
@@ -137,6 +137,7 @@ export abstract class middleLayerBase extends cc.Component {
async
loadBundle
(
sceneName
,
version
,
bondleUrl
,
callback
=
null
)
{
this
.
currentBundleInfo
=
{
sceneName
,
version
,
bondleUrl
};
console
.
log
(
"
[middleLayer_for_NJ_lite] loadBundle currentBundleInfo=
"
,
JSON
.
stringify
(
this
.
currentBundleInfo
))
this
.
showMask
();
this
.
showWaitingLetters
();
...
...
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