Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
O
OP53
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
OP53
Commits
7c36ac1b
Commit
7c36ac1b
authored
Jan 11, 2023
by
李维
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
添加分数上报信息
parent
76d712d3
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
1 deletion
+3
-1
OP53.js
assets/OP53/scene/OP53.js
+3
-1
No files found.
assets/OP53/scene/OP53.js
View file @
7c36ac1b
...
...
@@ -872,6 +872,7 @@ cc.Class({
recrodEnd
(
data
)
{
let
score
=
data
.
result
.
overall
;
this
.
_stageData
.
curScore
=
score
;
this
.
_stageData
.
audio_url
=
data
.
audioUrl
;
// score = (score / 100) * 40 + (100 - 40);
// score = 40;
if
(
score
>=
80
)
{
...
...
@@ -946,7 +947,8 @@ cc.Class({
console
.
log
(
'
in pushResultData
'
);
const
word
=
this
.
_stageData
.
word
;
const
score
=
this
.
_stageData
.
curScore
;
this
.
resultArr
.
push
({
word
,
score
});
const
audio_url
=
this
.
_stageData
.
audio_url
;
this
.
resultArr
.
push
({
word
,
score
,
audio_url
});
},
...
...
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