Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
M
middleLayer_for_JJ_F
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_JJ_F
Commits
9ee305a1
Commit
9ee305a1
authored
Apr 11, 2024
by
limingzhe
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: debug
parent
17319ced
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
0 deletions
+4
-0
middleLayer.ts
assets/middleLayer_for_JJ_F/script/middleLayer.ts
+3
-0
middleLayerBase.ts
assets/middleLayer_for_JJ_F/script/middleLayerBase.ts
+1
-0
No files found.
assets/middleLayer_for_JJ_F/script/middleLayer.ts
View file @
9ee305a1
...
@@ -139,6 +139,9 @@ export default class NewClass extends middleLayerBase {
...
@@ -139,6 +139,9 @@ export default class NewClass extends middleLayerBase {
cc
.
game
.
removePersistRootNode
(
this
.
node
);
cc
.
game
.
removePersistRootNode
(
this
.
node
);
if
(
this
.
token
&&
data
)
{
if
(
this
.
token
&&
data
)
{
console
.
log
(
'
data str:
'
,
JSON
.
stringify
(
data
));
this
.
callNetworkApiPost
(
`api/dige/v1/user/report`
,
{
this
.
callNetworkApiPost
(
`api/dige/v1/user/report`
,
{
token
:
this
.
token
,
token
:
this
.
token
,
syllabus_id
:
this
.
courseItem
.
course_id
,
syllabus_id
:
this
.
courseItem
.
course_id
,
...
...
assets/middleLayer_for_JJ_F/script/middleLayerBase.ts
View file @
9ee305a1
...
@@ -72,6 +72,7 @@ export abstract class middleLayerBase extends cc.Component {
...
@@ -72,6 +72,7 @@ export abstract class middleLayerBase extends cc.Component {
xhr
.
setRequestHeader
(
'
content-type
'
,
'
application/json
'
);
xhr
.
setRequestHeader
(
'
content-type
'
,
'
application/json
'
);
xhr
.
onreadystatechange
=
()
=>
{
xhr
.
onreadystatechange
=
()
=>
{
if
(
xhr
.
readyState
==
4
)
{
if
(
xhr
.
readyState
==
4
)
{
console
.
log
(
"
xhr.responseText:
"
,
xhr
.
responseText
);
callBack
(
JSON
.
parse
(
xhr
.
responseText
));
callBack
(
JSON
.
parse
(
xhr
.
responseText
));
}
}
}
}
...
...
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