Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Z
z_05_xcx
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
z_05_xcx
Commits
c9ecd9a7
Commit
c9ecd9a7
authored
Sep 24, 2020
by
Li Mingzhe
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat: test
parent
d5dbb507
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
3 deletions
+3
-3
n_xuan1.js
play/assets/tmpGame/scene_2/n_xuan1.js
+1
-1
utils.js
play/assets/tmpGame/script/utils.js
+2
-2
No files found.
play/assets/tmpGame/scene_2/n_xuan1.js
View file @
c9ecd9a7
...
...
@@ -1134,7 +1134,7 @@ cc.Class({
sendData
(
id
,
data
)
{
// localStorage.setItem(id, JSON.stringify(data));
http
(
'
GE
T
'
,
'
http://staging-teach.ireadabc.com/api/dashboard/v1/studyinfo?courseid=
'
+
this
.
courseid
,
data
).
then
((
resStr
)
=>
{
http
(
'
POS
T
'
,
'
http://staging-teach.ireadabc.com/api/dashboard/v1/studyinfo?courseid=
'
+
this
.
courseid
,
data
).
then
((
resStr
)
=>
{
const
res
=
JSON
.
parse
(
resStr
)
console
.
log
(
'
res:
'
,
res
);
});
...
...
play/assets/tmpGame/script/utils.js
View file @
c9ecd9a7
...
...
@@ -176,7 +176,7 @@ export async function http(type, url, data) {
}
};
xhr
.
open
(
type
,
url
,
true
);
xhr
.
setRequestHeader
(
"
Content-Type
"
,
"
application/x-www-form-urlencoded
; charset=utf-8
"
);
xhr
.
send
(
data
);
// xhr.setRequestHeader("Content-Type","application/json
; charset=utf-8");
xhr
.
send
(
JSON
.
stringify
(
data
)
);
});
}
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