Commit c2b30325 authored by 李维's avatar 李维

fix: 去掉逐个单词评分检查

parent 92d8b6bc
......@@ -1170,6 +1170,7 @@ export default class SceneComponent extends MyCocosSceneComponent {
// 80分及以上,显示优秀提示(3星)
this.updateTips(TIPS_STATE.EXCELLENT);
pg.hw.playLocalAudio('score_success');
} else if (score >= 60) {
// 60-80分,显示不错提示(2星)
this.updateTips(TIPS_STATE.NICE);
......@@ -1280,15 +1281,15 @@ export default class SceneComponent extends MyCocosSceneComponent {
* @returns 如果所有单词发音正确,返回true;否则返回false
*/
private checkWords(data) {
const sentences = data.result.sentences;
for (let i = 0; i < sentences.length; i++) {
const details = sentences[i].details;
// 如果有任何单词的评分低于40,则认为发音不正确
const isSuccess = details.some(item => item.overall <= 40);
if (isSuccess) {
return false;
}
}
// const sentences = data.result.sentences;
// for (let i = 0; i < sentences.length; i++) {
// const details = sentences[i].details;
// // 如果有任何单词的评分低于40,则认为发音不正确
// const isSuccess = details.some(item => item.overall <= 40);
// if (isSuccess) {
// return false;
// }
// }
return true;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment