Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
S
SSAPP2501
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
SSAPP2501
Commits
c1833d42
Commit
c1833d42
authored
Aug 13, 2025
by
Tt
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix(SSAPP2501): 检查录音问题ID匹配并更新测试数据分数
parent
ec2255ab
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
39 deletions
+5
-39
SSAPP2501.ts
assets/SSAPP2501/scene/SSAPP2501.ts
+5
-39
No files found.
assets/SSAPP2501/scene/SSAPP2501.ts
View file @
c1833d42
...
...
@@ -808,6 +808,10 @@ export default class SceneComponent extends MyCocosSceneComponent {
// 获取最后一次录音数据
const
lastVoice
=
Game
.
getIns
().
player
.
getLastVoice
();
if
(
lastVoice
.
questionId
!=
this
.
touchData
.
id
)
{
this
.
onFireFail
();
return
;
}
// 如果有录音数据,则使用其分数
if
(
lastVoice
&&
lastVoice
.
result
)
{
const
score
=
lastVoice
.
result
.
overall
;
...
...
@@ -965,7 +969,7 @@ export default class SceneComponent extends MyCocosSceneComponent {
"
fluency
"
:
84
,
"
integrity
"
:
100
,
"
kernel_version
"
:
"
3.7.1
"
,
"
overall
"
:
1
1
,
"
overall
"
:
2
1
,
"
pronunciation
"
:
88
,
"
resource_version
"
:
"
2.3.11
"
,
"
rhythm
"
:
46
,
...
...
@@ -1025,44 +1029,6 @@ export default class SceneComponent extends MyCocosSceneComponent {
},
"
tokenId
"
:
"
632be7a73327935c2b000005
"
}
testData
=
{
"
audioUrl
"
:
"
http://staging-teach.cdn.ireadabc.com/oxford_voice/b24a6c27b9ff2557/1754926351482.mp3
"
,
"
eof
"
:
1
,
"
file
"
:
"
/storage/emulated/0/Android/data/com.example.oxford/cache/shengtong/gradeVoice.mp3
"
,
"
result
"
:
{
"
duration
"
:
"
2.350
"
,
"
fluency
"
:
0
,
"
integrity
"
:
0
,
"
kernel_version
"
:
"
3.7.1
"
,
"
overall
"
:
0
,
"
pronunciation
"
:
0
,
"
resource_version
"
:
"
2.3.12
"
,
"
rhythm
"
:
0
,
"
sentences
"
:
[
{
"
beginIndex
"
:
0
,
"
details
"
:
[
{
"
charType
"
:
0
,
"
end
"
:
0
,
"
overall
"
:
0
,
"
prominence
"
:
0
,
"
start
"
:
0
,
"
word
"
:
"
hat
"
}
],
"
end
"
:
0
,
"
endIndex
"
:
0
,
"
overall
"
:
0
,
"
sentence
"
:
"
hat
"
,
"
start
"
:
0
}
],
"
speed
"
:
0
},
"
tokenId
"
:
"
689a0d0c332793307e000004
"
,
"
questionId
"
:
5
}
if
(
!
courseware
)
{
await
this
.
recrodEnd
(
testData
)
resolve
(
testData
)
...
...
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